Page 1 of 1

How do I modify httpd.conf to accept index.php?

Posted: 2018/03/18 16:08:26
by rtcary
I'm not sure what line to add to httpd.conf so index.php is accepted as well as index.html.

Many thanks...

Todd

Re: How do I modify httpd.conf to accept index.php?

Posted: 2018/03/18 18:38:09
by avij
It might be just a matter of running yum install php and systemctl restart httpd.service

Re: How do I modify httpd.conf to accept index.php?

Posted: 2018/03/18 18:41:04
by mghe

Re: How do I modify httpd.conf to accept index.php?

Posted: 2018/03/18 18:50:19
by avij
/etc/httpd/conf.d/php.conf in php.rpm seems to have the necessary definitions in place.

Re: How do I modify httpd.conf to accept index.php?

Posted: 2018/03/19 04:34:18
by hunter86_bg
The php package comes with it's own configuration in '/etc/httpd/conf.d/' which also adds this rule.