to use php 5.3.x

DenRomano

Verified User
Joined
Jan 30, 2011
Messages
28
Location
Vegas and So California
This is my first DA dedicated. When I received it PHP 4.2.17 was installed. I asked my host to upgrade to 5.3.x as 4.2.x is end of life. They said they installed 5.3.x but to use it I have to

add below lines in .htaccess file.

<FilesMatch "\.php$">
AddHandler x-httpd-php6 .php
</FilesMatch>

Does this mean that 5.2.x is still installed and used for other needs. I ask this as I need to be PCI compliant and it will look for any old versions and fail on them

THanks
 
The easiest way to find out is to call a PHP script without those lines in .htaccess.

Code:
<?php phpinfo(); ?>

If you see something, then you still have the old version installed, otherwise they may want you to stick with the CGI version of PHP.
 
I did the phpinfo without any changes to the htaccess and it does show the older version 5.2.17.

I thought I read other messages on this board saying that you can tell direct admin to use 5.3.x by creating a custom build. would that get rid of the old 5.2.x version and replace it with 5.3?
 
Yes, if you use custombuild, you can move from 5.2.x to 5.3.x.
Just make sure all your sites are compatible.
 
Back
Top