Apache error 500 after PHP upgrade

When upgrading your server from old PHP release to 5.4 make sure your application does not use deprecated functions such as session_register.
This function may be used in older CMS versions, as Tiger CMS.

To comment out all occurrences of incompatible functions in the code you can use following command:
Example for session_register:

find . -type f -exec sed -i ‘s/session_register/\/\/session_register/g’ {} \;

Generic troubleshooting steps for error 500 in Apache:

1. Check Apache error log

2. Turn on PHP Error reporting in etc/php.ini (/etc/php5/apache2/php.ini)

3. Create an info.php file to test php, with content:



So you can see what version you use and if it is loaded correctly.

Good Luck!