PDA

View Full Version : Internal Server Error



Zenith
Mon 22nd May '00, 2:58pm
Can anyone suggest why I may be getting a 500 internal server error when attempting to run install.php?

mysql is installed
PHP is installed
Files uploaded in ascii and binary as appropriate

Thanks

Zen

werehere
Mon 22nd May '00, 3:16pm
Is PHP running as a CGI? Do they require you to have the scripts in your cgi-bin?

There are a couple of virtual accounts out there that require you to run PHP under a little different setup, so you may wish to check with there manual or tech support about those first:)

[Edited by werehere on 05-23-2000 at 02:16 AM]

Zenith
Mon 22nd May '00, 3:19pm
Yup...running in cgi-gin

Not sure about PHP running as CGI. I'll check.

Thanks for quick reply.

Martin
Mon 22nd May '00, 5:03pm
if it's running as CGI (which it sounds like) you will have to set permissions like you would to any CGI file. I think in this case a CHMOD 755 is what you want on all the PHP files.

Zenith
Tue 23rd May '00, 2:45am
Marin, yes...that was done. Thanks for the suggestion anyway. I'm waiting to hear back from the host now.

Cya

Zen

werehere
Tue 23rd May '00, 3:17am
If that is the case then there is a good likelyhood that you have to specify a path to PHP just like a path to perl in all PHP scripts.

I would ask you host about that as well.

Who is your host anyway?:)

Zenith
Tue 23rd May '00, 8:53am
Werehere....yeah, you're probably right. I'll try that with the phptest.php script and see it makes any difference.

Host is http://www.bovia.com

Thanks

Zen

Zenith
Tue 23rd May '00, 12:07pm
Well I've tried setting a path to php, and I got the path from the host admin #!/usr/bin/php. I'm assuming I did the right thing and simply made the first line of the script the path. So I've got phptest.php reading

#!/usr/bin/php
<html>
<head><title>vBulletin PHP Tester</title></head>
<body>
<!--
<?php

// determine if php is running
if (1==0) {
echo "-->PHP is not installed correctly - Please contact your system administrator.<!--";
} else {
echo "--".">";
}

echo "PHP is installed correctly";

echo "<"."!--";
?>

-->
</body>
</html>

Is that correct? If so, I'm still getting internal server error. :(

Any more ideas? I've set up dozens of CGI scripts in the past without a problem. I don't know why I'm having so much trouble with php :(

Thanks

Zen

John
Wed 24th May '00, 1:45am
Can you have a look at your web server's error log to see if it expands any more on the error.

John

Martin
Wed 24th May '00, 1:48am
John,
could it be that he has to rename the extensions .php3 instead? When I was playing around I got this when I didn't have have .php in my server parsed extentions.

I've seen this crop up enough where I think it would be nice to have a download with .php and one with .php3 extensions. It would save a lot of time for customers and answering questions in here:)

Zenith
Wed 24th May '00, 9:19am
Hi again

I'm not having much success. The host insists that php is installed and working correctly as their other customers have no problem so they are telling me it's an error with the script.

I just tried changing the extension on the phptest.php script to php3...no joy :(

John...I can't get at the error logs. I'll try asking the host to have a look. They also said they will have a programmer check and see if he can see anything wrong. They are certainly trying to sort it for me, I'll give them that much.

Definitely running out of ideas now.

Cyas

Zen


[Edited by Zenith on 05-25-2000 at 10:21 AM]

Zenith
Wed 24th May '00, 4:18pm
Hmm...I seem to have found the problem. Host was telling me to put the scripts in cgi-bin with php extension. What I needed was to have the scripts outside the cgi-bin and with a php3 extension. So thanks Martin, you picked it :) And I agree...another zip file with php3 extensions would be nice. I'm just doing a search and replace php/php3 on all the files at the moment and it's a bit tedious.

Thanks for the help team

Zen

Martin
Wed 24th May '00, 4:29pm
wow! I *am* more than just a pretty face!

glad to help:)

Wake America
Fri 26th May '00, 3:01am
My install.php3 starts working but fails on step 3. I run on a host that uses the cgi/php3 setup, so I did a search and replace and made everything refer to PHP3 instead of PHP. This helped but now after creating the database, I get a 500 internal server error on Step 3.

phptest.php3 runs fine and the first two steps of install.php3 run fine. What is causing my 500 error after it gets to step 3?

Thanks

Morgo
Fri 26th May '00, 4:27am
Hi,

See this thread: http://www.vbulletin.com/forum/showthread.php?threadid=660
about adding to your .htaccess file so that your server recognises *.php files.

As for your error, Im not too sure. There are several threads in the Install forums that deal with problems at Step3. The common mistake made is that the database name has been misspecified in the config.php file, or the username/password is incorrect. However I can't see why that would cause you to have a 500 error as the fault would be reported on the PHP page.

Are you certain that you replaced each instance of PHP with PHP3?