|500 Internal Server error|
| 5:41 pm on May 30, 2007 (gmt 0)|
Yesterday, my hosting company harddrive crashed.... They have been trying to restore it for the last day; they now say it is restored.... BUt, my site is down with a 500 Internal server error...
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. "
I try and login to my admin panel and i get this error
"Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory."
I log in and check that variable is set
"register_globals = On"
Anyone see something like this before? Any ideas on how to fix it? Hosting co, says that its a programming issue, programmers say its a server issue.....
Meanwhile, im pulling my hair trying to make sense of it... It worked before the server crash and now it doesnt...
Tips,ideas, anything would be AWESOME!
| 5:51 pm on May 30, 2007 (gmt 0)|
Here is my server error log
Premature end of script headers: /home/viiba2/public_html/index.php
| 5:59 pm on May 30, 2007 (gmt 0)|
Could well be PHP-related and not Apache. Can you open a static HTML file?. If you can, what happens when you try to view a .php page with just the following:
Did the hosting company change PHP versions (eg. from PHP4 to PHP5)?
| 6:29 pm on May 30, 2007 (gmt 0)|
i dont have any static pages on my site.... Its all dynamic, its an ecommerce site, with dynamic DB data.
Would it help if i post my index.php?
I hope i dont sound a bit retarded, i didnt program the site myself, i outsourced and now each side is throwing my to the other....
| 6:30 pm on May 30, 2007 (gmt 0)|
Oh and no, the host didnt change any PHP versions as far as i can tell... Its PHP4.4.5
| 6:34 pm on May 30, 2007 (gmt 0)|
Assuming you have access to upload files, create one plain text file called "test.html" with the following content:
Create a plain text file called "test.php" with the content:
Upload them via FTP or similar and access them via your browser. What do you see?
| 6:56 pm on May 30, 2007 (gmt 0)|
With the html i see the regular "hello world"
With the PHP i see this:
PHP Version 4.4.5
System Linux server.lunarpages.com 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 10:11:19 EST 2007 i686
Build Date May 29 2007 15:56:02
Configure Command './configure' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zlib'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /home/viiba2/public_html/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib
And a whole lot of other stuff, if you would like i can post it (not sure, if it is safe to list everything openly or not)
Again, any help you can offer would be great! BTW, thank you very much for your help thus far!
| 7:12 pm on May 30, 2007 (gmt 0)|
One thing that may help to note is that the developers also installed a Search Engine Friendly URL system that controls how the URLs are named....
I dont know if that is helpful or not... but, the developer said that the times he's seen the 500 Error is when there is a problem with that system....
But, again no one touched the code, just the server crash and restore on the hosts side.
Ive searched on WebmasterWorld and saw that this is usually a permission problem. I went ahead and changed the permission on the index.php to chmod 755. But, still the problem is there....
| 7:26 pm on May 30, 2007 (gmt 0)|
One other thing to note:
Here is the conversation that opened up the support ticket with my hosting company.... This is the support ticket the tech wrote before handing it off to some one in never never land (2 days ago)
"it looks like customer was using a "php_value register_globals 1" line in his htaccess, which should have never worked because it's not allowed on our shared hosting
i went ahead and put register_globals = On in a php.ini file and specified the php configpath, which caused to the site to work.... partially.
when you first go to the site, it loads the index page just fine (no 505 error). but if you click anywhere or even just refresh the page, it gives a 500 internal server error. i tried this on three different computer and got the same thing; it loads it ok once but that's it
i checked the error logs, and they say:
[Tue May 29 21:11:17 2007] [error] [client 220.127.116.11] Premature end of script headers: /home/viiba2/public_html/index.php
[Tue May 29 21:11:17 2007] [error] [client 18.104.22.168] Premature end of script headers: /home/viiba2/public_html/products_new.php"
| 8:06 pm on May 30, 2007 (gmt 0)|
Bumpty Bump, any ideas, Anyone? Anything i should look over next?