When we made the decision to install PHP5 we were made aware of a large number of scripts that weren’t being updated by vendors immediately that would not work with PHP5.
Rather than force all of our users to find new scripts, or face their website being broken we installed PHP5 alongside PHP4 to give users the choice, with a view to phasing out PHP4 over a period of time, this remains our plan.
You will notice that your cPanel and phpinfo() commands will both report PHP4 by default, below are the details to activate PHP5 in your account.
You should be testing PHP5 with your current sites by following the details below, if everything works correctly – continue to run PHP5. If you encounter problems then:
- Try to diagnose them
- Contact the script provider to see if they have a PHP5 compatible version.
Instructions for enabling PHP5
- Locate the file “.htaccess” in your public_html folder (note the . at the beginning of the name).
- If the .htaccess doesn’t exist then create it.
- Add the following lines to your .htaccess:
AddHandler application/x-httpd-php5 .php
AddType application/x-httpd-php5 .php