Page 1 of 1

.php pages wont load

Posted: Thu Dec 18, 2003 8:10 pm
by spiker
Hi! I just got a new server and php is installed and some programs with php work (squirelmail, horde webmail) but if I create any page ending with .php it asks if I want to open or save the file rather than showing it. For example look at http://www.runnerbeach.com/yo.php and see what I mean. It will show .html pages but not .php pages. I have RedHat ES 3.0 with CPanel if that matters. Thanks so much,
Josh

Posted: Thu Dec 18, 2003 8:41 pm
by Gen-ik
Are you sure PHP is installed on your server? I would double check with your server provider and let them know about the problem.

All .php files will run as PHP if the server has it installed and set-up correctly.

Posted: Thu Dec 18, 2003 8:55 pm
by spiker
I logged in via ssh and looked for php. Does this mean it is installed and just some error?

-bash-2.05b$ whereis php
php: /usr/bin/php /etc/php.d /etc/php.ini /usr/lib/php.ini /usr/local/lib/php.ini
-bash-2.05b$

Also I checked with the webmail programs that work and they use php so its something else. When I am in CPanel and opened Horde to check my e-mail it can show .php pages but only when I am using CPanel and in the backend stuff.
Any ideas. Thanks

Posted: Thu Dec 18, 2003 9:06 pm
by Gen-ik
All I can suggest is that you contact your server provider. They might have PHP set-up on a different server than yours but are running stuff so that it all looks like it's on one server.

Just chuck an email at them and find out, at least you'll know for sure then if you can actually run PHP or not.

Posted: Fri Dec 19, 2003 3:05 pm
by Derfel Cadarn
I've just replied in this thread, which has the same problem!
Could you follow that one pls, I don't want to post the same info twice..
:roll: