Internal Service Error

Internal Service Error

Posted by: danno74
Posted on: 2009-10-09 08:10:00

Greetings,

I am getting the following error whilst trying to access our site:

In reply to:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@ypvoiceofoswego.org 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 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Checked the error log and found this:

[Wed Oct 07 10:21:32 2009] [error] [client 66.249.68.66] php.cgi: error while loading shared libraries: libpspell.so.15: cannot open shared object file: No such file or directory
[Wed Oct 07 10:21:32 2009] [error] [client 66.249.68.66] Premature end of script headers: php.cgi


Dreamhost support said that if there is a problem with my php.ini file, that I need to fix it, but I don't know where/what to look for in it to fix! Really am at a loss, can anyone help me out or tell me what they think I should do to fix it? I'm just guess as well, is it even the .ini that is causing this?

Would it be that the include path has changed on the new server? right now the .ini has it listed as - include_path = ".:/usr/local/php5/lib/php:/usr/local/lib/php"

I greatly appreciate any help. My site has been down all week. Thanks so much.

- Dan

Edited by danno74 on 10/09/09 08:19 AM (server time).

Re: Internal Service Error

Posted by: sXi
Posted on: 2009-10-09 08:21:00

In reply to:

but I don't know where/what to look for


Did you customise your PHP environment?




How To Install PHP.INI / ionCube on DreamHost

Re: Internal Service Error

Posted by: smt4
Posted on: 2009-10-21 13:47:00

Did you ever resolve this? if so, how?

I have a one-click joomla site that has log files with similar error messages.

Re: Internal Service Error

Posted by: sXi
Posted on: 2009-10-21 21:58:00

What error messages are you receiving?




How To Install PHP.INI / ionCube on DreamHost

Re: Internal Service Error

Posted by: smt4
Posted on: 2009-10-22 09:37:00

same as the previous user. Here's the error log data with username and domain name replaced:

[Thu Oct 22 04:57:19 2009] [error] [client 74.41.27.215] php.cgi: error while loading shared libraries: libpspell.so.15: cannot open shared object file: No such file or directory
[Thu Oct 22 04:57:19 2009] [error] [client 74.41.27.215] Premature end of script headers: php.cgi
[Thu Oct 22 04:57:19 2009] [error] [client 74.41.27.215] File does not exist: /home/myusername/test.mydomain.org/internal_error.html
[Thu Oct 22 09:32:50 2009] [error] [client 74.41.27.215] php.cgi: error while loading shared libraries: libpspell.so.15: cannot open shared object file: No such file or directory
[Thu Oct 22 09:32:50 2009] [error] [client 74.41.27.215] Premature end of script headers: php.cgi
[Thu Oct 22 09:32:50 2009] [error] [client 74.41.27.215] File does not exist: /home/myusername/test.mydomain.org /internal_error.html


Re: Internal Service Error

Posted by: andrewf
Posted on: 2009-10-22 11:11:00

That looks like you're using a custom build of PHP that will need to be rebuilt for the new server.

Re: Internal Service Error

Posted by: llooo8oooll
Posted on: 2009-10-22 13:40:00

if i did edit that, where to edit?

Re: Internal Service Error

Posted by: llooo8oooll
Posted on: 2009-10-22 15:27:00

my problem is fixed by following this instruction

http://paininthetech.com/2009/01/07/dreamhost-fix-internal-server-error-without-tech-support

Re: Internal Service Error

Posted by: andrewf
Posted on: 2009-10-22 16:53:00

That won't actually fix smt4's problem, though -- at best, the solution provided there (forcing a server reconfig) will temporarily fix some load-related issues. It definitely won't fix errors that are being caused by a custom PHP build that no longer runs at all.

Re: Internal Service Error

Posted by: llooo8oooll
Posted on: 2009-10-22 17:09:00

Then what should I do?

Re: Internal Service Error

Posted by: sXi
Posted on: 2009-10-22 23:10:00

If you only had a bad_httpd_conf error (which is specific to DreamHost) then the advice in that article is a sound solution.

Errors in the 500 range, however, can result from a variety of reasons and may require a bit of digging if they're specific to one domain. Most often they're caused by user misconfiguration of the environment via htaccess, regex, file masks, binary installation/linking/version. Even the installation of a poorly written plug-in can send out 500's from an otherwise sound website.

As Andrew has pointed out above, users who have heavily customised their own environment and start seeing constant 500 errors "from out of nowhere" - or on every domain hosted on their account - should first check if they've recently been moved onto a new server. Moving from a shared 32bit server to a newer high-end 64bit server (or from shared 64bit to uber-user VPS) will require re-customisation due to the differences between binaries.




How To Install PHP.INI / ionCube on DreamHost

Re: Internal Service Error

Posted by: llooo8oooll
Posted on: 2009-10-23 04:08:00

I did run your PHP.ini script. And my 500 error occurred after I received an email shown that my website was moved to a new server by DH. Do I have to re-customise anything? If so, how to do so?

Thanks in advance for your answer.

PS. I'm just a newbie webmaster so I might ask some stupid questions. Please bear with me ^^

Re: Internal Service Error

Posted by: sXi
Posted on: 2009-10-23 06:51:00

If you used an auto-installer, just run the script again wink




How To Install PHP.INI / ionCube on DreamHost

Re: Internal Service Error

Posted by: llooo8oooll
Posted on: 2009-10-26 15:50:00

Thanks a lot
I'll try
^^

Tags: internal server errorserver error logerror while loading shared librariesscript headersshared objectinternal errorserver timeserver administratordreamhost404 not found errorlibreplygreetings