LAMP on Lucid

The apache server installed via apt on Lucid does not meet all my needs. Here is, what I changed.

I am using the mod userdir to safe my small (and the big ones as well) in ~/public_html, but could not open them within my browser. The problem is, that PHP has been disabled in the userdirs. To activate it comment the following lines with a # in /etc/apache2/mods-available/php5.conf:

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

The other big thing that bothered me was, that no PHP-errors are displayed. This makes sense on a productive system, but not on my development machine. To change it set in the file /etc/php5/apache2/php.ini:

display_errors = On

Now restart apache

$ sudo /etc/init.d/apache2 restart

and empty your browser cache.

For all those changes you need to have root access.

Published by

Phylu

Linux User, Programmer and Start-up founder