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

General support questions
Post Reply
rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

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

Post by rtcary » 2018/03/18 16:08:26

I'm not sure what line to add to httpd.conf so index.php is accepted as well as index.html.

Many thanks...

Todd

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

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

Post by avij » 2018/03/18 18:38:09

It might be just a matter of running yum install php and systemctl restart httpd.service

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

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

Post by mghe » 2018/03/18 18:41:04


User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

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

Post by avij » 2018/03/18 18:50:19

/etc/httpd/conf.d/php.conf in php.rpm seems to have the necessary definitions in place.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

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

Post by hunter86_bg » 2018/03/19 04:34:18

The php package comes with it's own configuration in '/etc/httpd/conf.d/' which also adds this rule.

Post Reply