Jump to content
MDDHosting Forums

PHP 5.2 and PHP 5.3 now available on all servers!


Recommended Posts

At MDDHosting we're always working to offer you the best possible service and as a a result we've put hours of server administration into enabling both PHP 5.2 and PHP 5.3 on our servers for you. This means that if your script doesn't work on 5.3 you're not forced to use it and if you need 5.3 for a certain script you have full access to it. You can even run both 5.3 and 5.2 from within the same account at the same time!

 

By default all accounts will have their .php files handled by PHP 5.2 and if you wish a file to be handled by PHP 5.3 you simply need to change the extension of the file to .php53. For example:

 

  • index.php will be handled by PHP 5.2
  • index.php53 will be handled by PHP 5.3

If you wish for all of your .php scripts to be handled by PHP 5.3 you can do this using one of two methods:

 

  1. The quickest way to enable this is to simply open your ".htaccess" file in your /public_html folder and add this line:
    AddType application/x-httpd-php53 .php

  2. The more user-friendly but time consuming method is to add this entry via your cPanel.

    1. Log into your cPanel account.
    2. Access the "Apache Handlers" option under the "Advanced" section.
    3. On the "Apache Handlers" page enter the following information:
       
      • Handler: application/x-httpd-php53
      • Exention(s): php
    4.  

      If you need to access the CLI version of PHP 5.3 such as for a cron job you can do so using the command "/usr/bin/php53".

Link to comment
Share on other sites

1. Is this also the case for VPS clients?

No, if you want PHP 5.3 on a VPS we can just rebuild your VPS with PHP5.3 (it takes about an hour).
2. Is the process the same for clients running Litespeed?

The process *only* works for those on LiteSpeed which is all shared, reseller, and semi-dedicated customers. If you're on a VPS and not running LiteSpeed we can still swap you to PHP 5.3 but you wouldn't have the option to switch between 5.2 and 5.3 at will.
Link to comment
Share on other sites

 Share

×
×
  • Create New...