PDA

View Full Version : PHP Server Error



Jerivix
12-27-2007, 12:31 AM
Hi, I'm just setting up my PHP and databases, and any pages I try to use actual PHP in (just an open and close <?php ?> or <? ?> - not even any real code) throws a 500 Internal Server Error. A .php file with no code will work fine, so I don't think I have a MIME problem.

I've installed the PHP5 default php.ini file, and I'm a little lost at what to try next. Anyone have suggestions?

kgwd
12-27-2007, 08:21 AM
what are you exactly tring to set up?

Jerivix
12-27-2007, 12:12 PM
Just a standard web server. I'm using it to build some test projects.

kgwd
12-27-2007, 12:38 PM
do you have php activated on yoor account???

Jerivix
12-27-2007, 12:54 PM
I think so. Where would I check?

kgwd
12-27-2007, 01:00 PM
in software and services there should be an icon saying php config you should have one check in the box

shadmego
12-27-2007, 04:47 PM
If you are trying to set this all up on your Hostmonster account, there should be no reason you have to install a php.ini file for any reason. It should already be there.

Installing a PHP5 php.ini file if you have an account that is using PHP4 will definately throw errors your way. If your account was missing an ini file, then you should contact support and ask them to correct the problem.

~regards, and welcome to the community!