LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Configuring PHP,apache for development from home directory of non-admin user (https://www.linuxquestions.org/questions/linux-server-73/configuring-php-apache-for-development-from-home-directory-of-non-admin-user-4175560758/)

r19 12-05-2015 10:10 PM

Configuring PHP,apache for development from home directory of non-admin user
 
I have installed LAMP by apt-get install lamp-server^
http://localhost ran fine.

To set up for local development I have changed relevant files in apache2/sites-available/ and apache2.conf and then run a2dissite and a2ensite in admin user according to-
https://help.ubuntu.com/community/Ap...#Virtual_Hosts
I have changed the directory to the home directory of a non-admin user and run a2dissite and a2ensite from admin user. I have followed this to change php.conf:
https://wiki.ubuntu.com/UserDirectoryPHP
by commenting out this -
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>




I have put an html index.html file in the directory but when I try http://localhost I get 403 forbidden error.How can I set up to develop from home directory of non-admin user? I have carefully checked all steps and tried running service apache2 restart many times.

chrism01 12-07-2015 06:41 PM

Have you had a look at this page https://httpd.apache.org/docs/2.4/ho...lic_html.html; specifically the UserDir directive?


All times are GMT -5. The time now is 11:32 AM.