<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">Be sure that php5_module is loaded
and httpd.conf syntax is OK:<br>
<br>
# sudo /usr/sbin/apachectl -t -D DUMP_MODULES<br>
<br>
If not, check if file /etc/httpd/conf.d/php.conf exists and contains
the lines:<br>
<br>
LoadModule php5_module modules/libphp5.so<br>
<br>
AddHandler php5-script .php<br>
AddType text/html .php<br>
<br>
<br>
<br>
Heitor A. M. Cardozo<br>
</font></font><br>
-------- Mensagem original --------<br>
Assunto: Re:[CentOS] Need help with httpd.conf not rendering cgi or php
files<br>
De: Scott Ehrlich <a class="moz-txt-link-rfc2396E" href="mailto:scott@MIT.EDU"><scott@MIT.EDU></a><br>
Para: CentOS mailing list <a class="moz-txt-link-rfc2396E" href="mailto:centos@centos.org"><centos@centos.org></a><br>
Data: terça-feira, 27 de novembro de 2007 13:05:45<br>
<blockquote
 cite="mid:Pine.GSO.4.64L.0711271004410.5099@scrubbing-bubbles.mit.edu"
 type="cite">On Tue, 27 Nov 2007, Mike Kercher wrote:
  <br>
  <br>
  <blockquote type="cite">Silly question, but is php installed?  Is
SELinux enabled?
    <br>
  </blockquote>
  <br>
Not silly - covering the basics/obvious.
  <br>
  <br>
SELinux is disabled, and I ensured ipchains 4 and 6 were disabled under
services.
  <br>
  <br>
To the best of my knowledge php is installed.  yum install *php*
reveals nothing needs to be added.
  <br>
  <br>
Scott
  <br>
  <br>
  <blockquote type="cite"><br>
Mike
    <br>
    <br>
    <br>
________________________________
    <br>
    <br>
From: <a class="moz-txt-link-abbreviated" href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</a> on behalf of Scott Ehrlich
    <br>
Sent: Tue 11/27/2007 8:34 AM
    <br>
To: <a class="moz-txt-link-abbreviated" href="mailto:centos@centos.org">centos@centos.org</a>
    <br>
Subject: [CentOS] Need help with httpd.conf not rendering cgi or php
    <br>
files
    <br>
    <br>
    <br>
    <br>
I got this working perfectly at home - what should be exact same
setups-
    <br>
    <br>
- Fresh install of CentOS 5 32-bit from DVD
    <br>
- yum update & upgrade
    <br>
- Reboot
    <br>
- yum install mysql-server
    <br>
- Download phpmyadmin and bugzilla from their respective home pages
    <br>
- Move both to /var/www/html, naming the extracted phpmyadmin directory
    <br>
as
    <br>
phpmyadmin, the same with bugzilla
    <br>
- Copy my working httpd.conf file from home and replacing the work one,
    <br>
then restarting httpd - sudo /etc/init.d/httpd restart
    <br>
- Verify mysql is running - sudo /etc/init.d/mysqld restart
    <br>
    <br>
Call up firefox via an ssh x session and visit
    <br>
<a class="moz-txt-link-freetext" href="http://localhost/phpmyadmin/index.php">http://localhost/phpmyadmin/index.php</a>.  Instead of showing a rendered
    <br>
page, it only shows the text of the index.php file.
    <br>
    <br>
Same for <a class="moz-txt-link-freetext" href="http://localhost/bugzilla/index.cgi">http://localhost/bugzilla/index.cgi</a>
    <br>
    <br>
What did I miss?  The same config file from home, in a setup that
worked
    <br>
perfectly, is missing something here!
    <br>
    <br>
/usr/sbin/httpd -v
    <br>
Server version: Apache/2.2.3
    <br>
    <br>
Thanks for any help.
    <br>
    <br>
Scott
    <br>
_______________________________________________
    <br>
CentOS mailing list
    <br>
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
    <br>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
    <br>
    <br>
    <br>
    <br>
  </blockquote>
_______________________________________________
  <br>
CentOS mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:CentOS@centos.org">CentOS@centos.org</a>
  <br>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a>
  <br>
</blockquote>
<br>
</body>
</html>