PHP4 is showing instead of PHP5(which is installed on server)


> Check the php verion installed on server 
Run: php -v

>>Search for the perticular:
/scripts/whoowns domainname

it will return with username of account.

>>Go into the home directory of the perticular account:
cd /home/~username

>>Check the .htaccess file
>>In.htaccess file look for the line:

# Use PHP4 as default
AddHandler application/x-httpd-php4.php

Replace this line with the following line:

# Use PHP5 as default
AddHandler application/x-httpd-php5 .php

It will run PHP5 by default.

>>Restart the httpd.
Run: /etc/init.d/httpd restart

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: