.php pages wont load

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spiker
Forum Newbie
Posts: 2
Joined: Thu Dec 18, 2003 8:10 pm

.php pages wont load

Post 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
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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.
spiker
Forum Newbie
Posts: 2
Joined: Thu Dec 18, 2003 8:10 pm

Post 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
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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.
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post 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:
Post Reply