Scott Ehrlich
2007-Nov-27 14:34 UTC
[CentOS] Need help with httpd.conf not rendering cgi or php files
I got this working perfectly at home - what should be exact same setups- - Fresh install of CentOS 5 32-bit from DVD - yum update & upgrade - Reboot - yum install mysql-server - Download phpmyadmin and bugzilla from their respective home pages - Move both to /var/www/html, naming the extracted phpmyadmin directory as phpmyadmin, the same with bugzilla - Copy my working httpd.conf file from home and replacing the work one, then restarting httpd - sudo /etc/init.d/httpd restart - Verify mysql is running - sudo /etc/init.d/mysqld restart Call up firefox via an ssh x session and visit http://localhost/phpmyadmin/index.php. Instead of showing a rendered page, it only shows the text of the index.php file. Same for http://localhost/bugzilla/index.cgi What did I miss? The same config file from home, in a setup that worked perfectly, is missing something here! /usr/sbin/httpd -v Server version: Apache/2.2.3 Thanks for any help. Scott
Craig White
2007-Nov-27 14:40 UTC
[CentOS] Need help with httpd.conf not rendering cgi or php files
On Tue, 2007-11-27 at 09:34 -0500, Scott Ehrlich wrote:> I got this working perfectly at home - what should be exact same setups- > > - Fresh install of CentOS 5 32-bit from DVD > - yum update & upgrade > - Reboot > - yum install mysql-server > - Download phpmyadmin and bugzilla from their respective home pages > - Move both to /var/www/html, naming the extracted phpmyadmin directory as > phpmyadmin, the same with bugzilla > - Copy my working httpd.conf file from home and replacing the work one, > then restarting httpd - sudo /etc/init.d/httpd restart > - Verify mysql is running - sudo /etc/init.d/mysqld restart > > Call up firefox via an ssh x session and visit > http://localhost/phpmyadmin/index.php. Instead of showing a rendered > page, it only shows the text of the index.php file. > > Same for http://localhost/bugzilla/index.cgi > > What did I miss? The same config file from home, in a setup that worked > perfectly, is missing something here! > > /usr/sbin/httpd -v > Server version: Apache/2.2.3 > > Thanks for any help.---- Try sudo /usr/bin/yum install php-mysql sudo /sbin/service httpd restart Craig
Mike Kercher
2007-Nov-27 14:59 UTC
[CentOS] Need help with httpd.conf not rendering cgi or php files
Silly question, but is php installed? Is SELinux enabled? Mike ________________________________ From: centos-bounces at centos.org on behalf of Scott Ehrlich Sent: Tue 11/27/2007 8:34 AM To: centos at centos.org Subject: [CentOS] Need help with httpd.conf not rendering cgi or php files I got this working perfectly at home - what should be exact same setups- - Fresh install of CentOS 5 32-bit from DVD - yum update & upgrade - Reboot - yum install mysql-server - Download phpmyadmin and bugzilla from their respective home pages - Move both to /var/www/html, naming the extracted phpmyadmin directory as phpmyadmin, the same with bugzilla - Copy my working httpd.conf file from home and replacing the work one, then restarting httpd - sudo /etc/init.d/httpd restart - Verify mysql is running - sudo /etc/init.d/mysqld restart Call up firefox via an ssh x session and visit http://localhost/phpmyadmin/index.php. Instead of showing a rendered page, it only shows the text of the index.php file. Same for http://localhost/bugzilla/index.cgi What did I miss? The same config file from home, in a setup that worked perfectly, is missing something here! /usr/sbin/httpd -v Server version: Apache/2.2.3 Thanks for any help. Scott _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4450 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20071127/6a3daa29/attachment-0005.bin>
Scott Ehrlich
2007-Nov-27 15:05 UTC
[CentOS] Need help with httpd.conf not rendering cgi or php files
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> > Mike > > > ________________________________ > > From: centos-bounces at centos.org on behalf of Scott Ehrlich > Sent: Tue 11/27/2007 8:34 AM > To: centos at centos.org > Subject: [CentOS] Need help with httpd.conf not rendering cgi or php > files > > > > I got this working perfectly at home - what should be exact same setups- > > - Fresh install of CentOS 5 32-bit from DVD > - yum update & upgrade > - Reboot > - yum install mysql-server > - Download phpmyadmin and bugzilla from their respective home pages > - Move both to /var/www/html, naming the extracted phpmyadmin directory > as > phpmyadmin, the same with bugzilla > - Copy my working httpd.conf file from home and replacing the work one, > then restarting httpd - sudo /etc/init.d/httpd restart > - Verify mysql is running - sudo /etc/init.d/mysqld restart > > Call up firefox via an ssh x session and visit > http://localhost/phpmyadmin/index.php. Instead of showing a rendered > page, it only shows the text of the index.php file. > > Same for http://localhost/bugzilla/index.cgi > > What did I miss? The same config file from home, in a setup that worked > perfectly, is missing something here! > > /usr/sbin/httpd -v > Server version: Apache/2.2.3 > > Thanks for any help. > > Scott > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > > >
Scott Silva
2007-Nov-27 15:51 UTC
[CentOS] Re: Need help with httpd.conf not rendering cgi or php files
on 11/27/2007 6:34 AM Scott Ehrlich spake the following:> I got this working perfectly at home - what should be exact same setups- > > - Fresh install of CentOS 5 32-bit from DVD > - yum update & upgrade > - Reboot > - yum install mysql-server > - Download phpmyadmin and bugzilla from their respective home pages > - Move both to /var/www/html, naming the extracted phpmyadmin directory > as phpmyadmin, the same with bugzilla > - Copy my working httpd.conf file from home and replacing the work one, > then restarting httpd - sudo /etc/init.d/httpd restart > - Verify mysql is running - sudo /etc/init.d/mysqld restart > > Call up firefox via an ssh x session and visit > http://localhost/phpmyadmin/index.php. Instead of showing a rendered > page, it only shows the text of the index.php file. > > Same for http://localhost/bugzilla/index.cgi > > What did I miss? The same config file from home, in a setup that worked > perfectly, is missing something here! > > /usr/sbin/httpd -v > Server version: Apache/2.2.3 > > Thanks for any help. > > ScottDid you have any other relevant conf files in /etc/httpd/conf.d? -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
Apparently Analagous Threads
- httpd - mysql - paypal.com.tar - hacker
- if you install cgi programs from rpm, how to configure for actual use in /var/www/html ?
- Forbidden: You don't have permission to access /phpMyAdmin/ on this server.
- OFF Topic: mysql installation problem
- phpmyadmin issue