FAQ: PHP4 and PHP5

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:

  1. Try to diagnose them
  2. Contact the script provider to see if they have a PHP5 compatible version.

Instructions for enabling PHP5

  1. Locate the file “.htaccess” in your public_html folder (note the . at the beginning of the name).
  2. If the .htaccess doesn’t exist then create it.
  3. Add the following lines to your .htaccess:

    AddHandler application/x-httpd-php5 .php

    AddType application/x-httpd-php5 .php

Leave a Reply

Your email address will not be published.