Issue in executing PHP file

by Selva 2009-04-10 19:41:27

For some domains there may be issue in running PHP files.When you enter the url,PHP file will be downloaded insteaded of executing.This is because the .htaccess file in the document root of the domain will have AddHandler directive like :

AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml


This is already present in the apache configuration file (/etc/httpd/conf/php.conf which is included in /etc/httpd/conf/httpd.conf) . To overcome this issue just delete the line AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml in .htaccess file.
1358
like
0
dislike
0
mail
flag

You must LOGIN to add comments