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, PHP5 is now the default on most of our servers (Hufflepuff is the only exception to this).

For users on Hufflepuff you should be following the instructions below to test your scripts and applications with PHP5, users of other servers who have reverted back to PHP4 (away from the default PHP5) should be aware that we will stop supporting PHP4 in the coming months and should also be testing with PHP5.

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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Deprecated warnings in PHP5

If you've recently moved servers from a server where PHP4 was the default to a server where...

Increasing upload_max_filesize

If you are using a CMS you may have found that you can't upload larger files because of the...

Processing HTML files with PHP

If you want to add PHP commands to your HTML pages and don't wish to change the file extensions...

Turning magic quotes off

A lot of software now is requiring that "magic quotes" be switched off as it presents a security...