A few changes with 10.04 LAMP
Just to save others scratching their heads. With the new system install there are a few changes that are quite important.
MagicQuotes are now OFF

Error reporting is now disabled. This is important as error reporting can give hints to hackers about your system.
To allow those like me, who need error reporting on for development work, they now ship some further information on it.
- Code:
/etc/php5/apache2/php.ini
has the current file (production) for configuring up the php security and has comments as to what is turned on and off between 'production' and 'development'.
As they're real nice people, they have made things even easier and ship both the production and development versions over at
- Code:
/usr/share/doc/php5-common/examples
Simply copy over the one you need from there over to
- Code:
/etc/php5/apache2/php.ini
To switch TO development security
- Code:
sudo cp /usr/share/doc/php5-common/examples/php.ini-development /etc/php5/apache2/php.ini
To switch BACK to production security
- Code:
sudo cp /usr/share/doc/php5-common/examples/php.ini-production /etc/php5/apache2/php.ini
In each case, you need to restart the apache server
- Code:
sudo /etc/init.d/apache2 restart
Regards,
Phill.