apache2 public_html and php

| December 30th, 2012

To enable php for the public_html folder so all users on your system can run php scripts you will need to edit your /etc/apache2/mods-enabled/php5.conf file and put a comment (put a # in front) php_admin_value engine Off


<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>

Leave a Reply