$>whereis phpand the path for php-cgi(/usr/bin/php-cgi):
$>whereis php-cgi
Edit the configuration file for apache2:
$>sudo vi /etc/httpd/conf/httpd.confinsert the lines to accordance postions:
ScriptAlias /local-bin/ /usr/bin/Finally reload apache:
AddType applicatoin/x-httpd-php5 .php
AddHandler application/x-httpd-php5 php
Action application/x-httpd-php5 /local-bin/php-cgi
Order allow,deny
Allow from all
$>sudo /usr/sbin/apachectrl restart/************END*****************/
No comments:
Post a Comment