Hi All, I am currently am responsible for maintaining a website built on Apache 2, running on some CentOS 4 (64 bit version) boxes. Thus far, the website has comprised a few HTML pages, and some dynamic pages generated by perl scripts. The CentOS install is pretty vanilla -- the only departure I've made from the default server install is to install awstats from the rpmforge repositories. This week, I tried to install Wordpress, and have run into a brick wall that several days of experimentation and deep consultation with Google have been unable to get me over. Here's the situation: I installed the mysql, mysql_server, and php packages, unpacked the Wordpress tarball into a "blog" directory, and make the necessary changes to wp-config.php. The MySQL database works just fine, and when I visit the blog directory, index.php runs and informs me that I need to surf over to install.php to complete the WordPress configuration, which is expected. But when I try to browse to install.php, Firefox gives me the option to save it, or run it locally -- it doesn't seem to want to run as a server side script, for some reason. I don't see any obvious issues with my php installation that would cause this -- /etc/httpd/conf.d/php.conf is in place, is loading module_php4, and has added a php application type to the apache setup. I did remember to restart the http daemon after installing php. I don't see any errors in the logs -- all I see in the apache logs is a GET request for install.php. The really confusing thing is that one php script -- index.php -- works just fine, while another php script -- install.php -- does not. Has anybody run into a similar problem with WordPress, or with php4 in general? It feels like I'm running afoul of some bit of overzealous security that's trying to stop php from doing Bad Things to the system, but, sans error messages, it's been difficult to figure out what bit of security might be responsible, and how I might go about coaxing CentOS into allowing me to run WordPress. And so I have come here to tap into the wisdom of the mailing list. Might anybody here have some hints as to what I might do to solve this puzzle? Thank you, -- ~PeteVG The truth does not change according to our ability to stomach it. ~ Flannery O'Connor
have you created a virtual server in apache yet? frnakly? I would install the rpmfogre repo and then yum instlal webmin. Then goto webmin.com and dlownload and install virtualmin. Virtualmin will tlel you what errors you ahve in your setup and fixing them is usually yum install <whatever> petevg at gmail.com wrote:> Hi All, > > I am currently am responsible for maintaining a website built on > Apache 2, running on some CentOS 4 (64 bit version) boxes. Thus far, > the website has comprised a few HTML pages, and some dynamic pages > generated by perl scripts. The CentOS install is pretty vanilla -- > the only departure I've made from the default server install is to > install awstats from the rpmforge repositories. > > This week, I tried to install Wordpress, and have run into a brick > wall that several days of experimentation and deep consultation with > Google have been unable to get me over. > > Here's the situation: I installed the mysql, mysql_server, and php > packages, unpacked the Wordpress tarball into a "blog" directory, and > make the necessary changes to wp-config.php. The MySQL database works > just fine, and when I visit the blog directory, index.php runs and > informs me that I need to surf over to install.php to complete the > WordPress configuration, which is expected. > > But when I try to browse to install.php, Firefox gives me the option > to save it, or run it locally -- it doesn't seem to want to run as a > server side script, for some reason. > > I don't see any obvious issues with my php installation that would > cause this -- /etc/httpd/conf.d/php.conf is in place, is loading > module_php4, and has added a php application type to the apache setup. > I did remember to restart the http daemon after installing php. I > don't see any errors in the logs -- all I see in the apache logs is a > GET request for install.php. > > The really confusing thing is that one php script -- index.php -- > works just fine, while another php script -- install.php -- does not. > > Has anybody run into a similar problem with WordPress, or with php4 in > general? It feels like I'm running afoul of some bit of overzealous > security that's trying to stop php from doing Bad Things to the > system, but, sans error messages, it's been difficult to figure out > what bit of security might be responsible, and how I might go about > coaxing CentOS into allowing me to run WordPress. > > And so I have come here to tap into the wisdom of the mailing list. > Might anybody here have some hints as to what I might do to solve this > puzzle? > > Thank you, >-- My "Foundation" verse: Isa 54:17 No weapon that is formed against thee shall prosper; and every tongue that shall rise against thee in judgment thou shalt condemn. This is the heritage of the servants of the LORD, and their righteousness is of me, saith the LORD. -- carpe ductum -- "Grab the tape" CDTT (Certified Duct Tape Technician) Linux user #322099 Machines: 206822 256638 276825 http://counter.li.org/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 petevg at gmail.com wrote:> I don't see any obvious issues with my php installation that would > cause this -- /etc/httpd/conf.d/php.conf is in place, is loading > module_php4, and has added a php application type to the apache setup. > I did remember to restart the http daemon after installing php. I > don't see any errors in the logs -- all I see in the apache logs is a > GET request for install.php.What about permissions? Are all of the permissions ok in the directory? I run Wordpress on CentOS, but it's been forever since I did an install. When I did, though, I don't remember any issues with the install.php script. I frequently upgrade as well. Let me know if there is anything I can compare on my installation with yours. Regards, Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFGafiAHoeeepPau2ERAqGEAJ9eGRfXhNOglhbGz1yuiLeIuKvZ6wCgj7Kx Kh7dS/amnU42sqgJYhCYJqY=tyRn -----END PGP SIGNATURE-----
On 6/8/07, petevg at gmail.com <petevg at gmail.com> wrote:> But when I try to browse to install.php, Firefox gives me the option > to save it, or run it locally -- it doesn't seem to want to run as a > server side script, for some reason.What Content-Type is associated with each HTTP response? What do you handler directives look like? Are they enclosed in a Location or Directory stanza? Are the permissions set correctly on the files and directories?> I did remember to restart the http daemon after installing php. I > don't see any errors in the logs -- all I see in the apache logs is a > GET request for install.php.You can get additional information by setting the Apache LogLevel to debug and by adjusting the php.ini display_errors directive. - Ryan -- UNIX Administrator http://prefetch.net