How to switch to PHP5 in Cpanel based web hosting
Jon Moffet
Some web hosting provider such as e-ruang offers choices of using PHP4 or or PHP5 in their hosting. To avoid conflict with existing scripts, they will usually offer PHP 4 by default.
But for obvious reasons, you may want to use PHP5 as it supports more functionalities and more robust than PHP4. To enable PHP5 for your account, you need to create a .htaccess file containing :
-
AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml
Save the .htaccess file, and upload it to the root directory of your server.
Then upload a php file containing phpinfo() function to test whether PHP5 has been enabled or not. If the modification has not been successful then you should contact your web hosting provider and ask about the appropriate way to activate PHP5 functionality.
Tags: php5, php, web hosting, hosting
Posted in Uncategorized |







