[CentOS] Need help with httpd.conf not rendering cgi or php files

Brian Mathis brian.mathis at gmail.com
Tue Nov 27 15:21:32 UTC 2007


On Nov 27, 2007 10:05 AM, Scott Ehrlich <scott at mit.edu> wrote:
> On Tue, 27 Nov 2007, Mike Kercher wrote:
>
> > Silly question, but is php installed?  Is SELinux enabled?
>
> Not silly - covering the basics/obvious.
>
> SELinux is disabled, and I ensured ipchains 4 and 6 were disabled under
> services.
>
> To the best of my knowledge php is installed.  yum install *php* reveals
> nothing needs to be added.
>
> Scott


PHP: What is the contents of /etc/httpd/conf.d/php.conf?  Make sure
AddHandler and AddType are not commented out.
CGI: Did you uncomment the line "#AddHandler cgi-script .cgi" in
/etc/httpd/conf/httpd.conf?

Also, make sure you 'restart' httpd, not 'reload'.



More information about the CentOS mailing list