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
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
No change.
On Tue, 27 Nov 2007, Craig White wrote:
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Silly question, but is php installed? Is SELinux enabled?
Mike
________________________________
From: centos-bounces@centos.org on behalf of Scott Ehrlich Sent: Tue 11/27/2007 8:34 AM To: centos@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@centos.org http://lists.centos.org/mailman/listinfo/centos
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@centos.org on behalf of Scott Ehrlich Sent: Tue 11/27/2007 8:34 AM To: centos@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@centos.org http://lists.centos.org/mailman/listinfo/centos
On Nov 27, 2007 10:05 AM, Scott Ehrlich scott@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'.
How about rpm -qa |grep php
Mike
________________________________
From: centos-bounces@centos.org on behalf of Scott Ehrlich Sent: Tue 11/27/2007 9:05 AM To: CentOS mailing list Subject: RE: [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@centos.org on behalf of Scott Ehrlich Sent: Tue 11/27/2007 8:34 AM To: centos@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@centos.org http://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Problem solved - I discoverered was not installed. I guess yum install wildcards - *whatever* doesn't always work!
I performed a manual yum install php php4 php5 php-mysql and discovered php and php-cli need to be installed. Well, ya learn something every day!
Thanks to all who helped!
Until my next question/problem...
Scott
Scott Ehrlich ha scritto:
Problem solved - I discoverered was not installed. I guess yum install wildcards - *whatever* doesn't always work!
I performed a manual yum install php php4 php5 php-mysql and discovered php and php-cli need to be installed. Well, ya learn something every day!
Thanks to all who helped!
Until my next question/problem...
Scott
I guess you should escape the wildcards do work with yum (eg. yum install *whatever*)
On Tue, 2007-11-27 at 10:41 -0500, Scott Ehrlich wrote:
Problem solved - I discoverered was not installed. I guess yum install wildcards - *whatever* doesn't always work!
I performed a manual yum install php php4 php5 php-mysql and discovered php and php-cli need to be installed. Well, ya learn something every day!
Thanks to all who helped!
Until my next question/problem...
---- that doesn't make sense...
yum install php-mysql should automatically make sure that php package was installed. php-cli is for running php commands from shell.
trying to install php4 or php5 aren't going to do anything
Craig
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.
Scott
Did you have any other relevant conf files in /etc/httpd/conf.d?