Help - Search - Members - Calendar
Full Version: PHP pages not loading??
The Planet Forums > Control Panels > cPanel/WHM
catwalkx
Anybody know what would cause PHP pages to not load, and instead when pointing a browser to a php page, the browser would issue a prompt asking the user if they would like to download the page.

What could possibly be in my httpd.config that would cause that??
catwalkx
Come to think of it, it is only affecting one account, which happens to have an .htaccess file that redirects to a php file. Seems to me php suexec would turn this funtion off, would it not? So now the question is, how do I yurn php suexec off?
catwalkx
For the benefit of other noobies reading this, the problem was, indeed, suexec. The odd thing is, I never turned it on, since many posts have advised leaving it off.

And, when i went to turn it off, whm said it wasn't available, and that I would have to rebuild apache. I did so, and the turned suexec off, and .htaccess files began to work.

What a painful way of of spending a sunday :-(
catwalkx
I'm haunted.

This problem will not go away. I have a user who, when he points his browser to his sites (hosted on my Xeon box) experiences the following: html loads, but all the php pages do not. Instead he gets a prompt asking if he wants to download the file.

This is maddening, and only happens with him. Has anybody else experienced this crazy situation?
catwalkx
Update!!!

After a few sleepless nights, going over httpd.conf to the point I can now recite every line from memory, it turns out the problem was with a proxy server at the clients ISP.

What made this hard to trouble shoot is the fact that his site was the only one on the box, because I had recently leased it for my cluster. Ergo, i could not use other sites as a point of reference.

So if you're ever confronted with a client saying his php files do not load, and instead is being prompted to download them, and you *know* everything is kosher with httpd.conf, there is another variable you can investigate: the clients own isp.

Sleep... sleeeep... for the first time in three days.... ahhh...
serverdummy
Congrats. The customers will always blame the host. That's rule #1.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.