Solution :
open httpd.conf file and make entry
vi /etc/httpd/conf/httpd.conf
<Directory "/var/www/html">
Options -Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
DirectoryIndex index.php index.html
Order allow,deny
Allow from all
</Directory>
If using fastcgi then make entry below mentioned.
<Directory "/var/www/html">
Options -Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi
DirectoryIndex index.php index.html
Order allow,deny
Allow from all
</Directory>
then restart httpd service.
#/etc/init.d/httpd restart
open httpd.conf file and make entry
vi /etc/httpd/conf/httpd.conf
<Directory "/var/www/html">
Options -Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
DirectoryIndex index.php index.html
Order allow,deny
Allow from all
</Directory>
If using fastcgi then make entry below mentioned.
<Directory "/var/www/html">
Options -Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi
DirectoryIndex index.php index.html
Order allow,deny
Allow from all
</Directory>
then restart httpd service.
#/etc/init.d/httpd restart
No comments:
Post a Comment