On my development machine I run Ubuntu 10.04.1 LTS. Following the official documentation, I used the following command to install Apache, MySQL and PHP in one go:
sudo tasksel install lamp-server
Now that I'm testing my PHP scripts, I want to enable "developer mode", if there is one, to enable error reporting and logging. I have read reference to files
php.ini-development that apparently come with some versions of PHP 5, but not the one I have installed.
All I have is
/etc/php5/apache2/php.ini. This configuration does not echo errors or warnings, which makes my scripts hard to debug. I guess I can edit the configuration by hand, but I'd rather just be able to drop in a replacement if that's possible.
So what I'm looking for is an easy way to switch between development and production environments for PHP!