I run a Drupal based site on Blue Host. I haven't had any problems with it until recently. Suddenly, everything on the site gives me an error 500 message. I've tried messing with .htaccess but the thing is, I can't figure out exactly what's wrong with it in the first place. I hate making a topic out of this, but most of what I can find on the site relates to specific modules (that's not the problem; cron.php won't even work) or else older versions of Drupal and applying those fixes doesn't work. I've been trying to figure this out for almost a week and it's driving me crazy.

More detailed information-

Drupal Version: 5.1
PHP Version: 4.4.6

Errors:

Main Error_Log:
[Tue Apr 10 15:21:35 2007] [error] Premature end of script headers: /home/topofcoo/public_html/index.php

SUEXEC error_log:
[2007-04-10 15:21:35]: info: (target/actual) uid: (topofcoo/topofcoo) gid: (topofcoo/topofcoo) cmd: index.php [2007-04-10 15:21:35]: info: (target/actual) uid: (topofcoo/topofcoo) gid: (topofcoo/topofcoo) cmd: 500.php

PHP error_log:
[10-Apr-2007 08:17:01] PHP Warning: shell_exec() [function.shell-exec]: Unable to execute 'checksuexec' in /home/topofcoo/public_html/500.php on line 12
=-=-=

I think those are the only common errors. If I should have added more information, I'll see what I can do.

Thanks in advance.

Comments

Daniel J Wilcox - Blocked for personal attacks’s picture

Hi have you got php compiled with SUEXEC

I had a site with a hosting company that had php compiled with SUEXEC and had loads of problems
Something to do with the way php compiled with SUEXEC executes javascript if i remember
Drupal 5 has loads of javascript in it

If you want the best drupal hosting out there go to bryght

http://www.bryght.com/

clifflyon’s picture

...Ever since they upgraded last weekend. Both my DRUPAL sites stopped working, same error.

BlueHost was great for a while, but they seem to be growing too fast and support is declining.

topofcool’s picture

That's reassuring. :/ I didn't ask much from support at the time because I'd just started investigating the problem and all I could come up with to ask was doublechecking I had permission to overwrite with .htaccess. I was told I did and that was all I needed.

Hopefully, I'll make some progress this week. I keep getting sick lately. Oy.

topofcool’s picture

It does seem to have something to do with SUEXEC. I dug up something in the Blue Host help files

php_value
On a server without phpsuexec it is possible to use the php_value statement in a .htaccess-file to change settings of php (actually overwrite the settings from php.ini). On a sever with phpsuexec this will also result in a server error. To solve this you can use a php.ini file which you put in the same folder as where you would have put your .htaccess file. In that php.ini file you can change all the php values. You only have to put the values you want to modify in that file. By example if you want to set the short_open_tag to Off you would have used short_open_tag? = off in your .htaccess file. Using a php.ini file this results in:

[PHP]

short_open_tag = Off

It also said something about ForceType, but I'm not seeing that in the .htaccess file. php_value, on the other hand, is all over it. So...just exactly what is it I'm supposed to be doing to php.ini?

mohamed_am83’s picture

Hey,
I have been with this bug for three days since i moved my drupal to Hostmonster servers, what worked with me is to copy index.php from Drupal folder to the folder of my website, as far as I see, symbolic links to files cause these problems! so a quick fix you might try is to replace the symbolic link to index.php by a copy of the file. symbolic links to directories work fine with me.
I know this violates the concept of code-base sharing, I will contact my host to find some work around.

Hope it works with you!

Mohamed

topofcool’s picture

Well, Blue Host isn't being any help. I've contacted support a few times but didn't get anything helpful. I'd posted on the forum but the thread was closed without explanation. Our hosting is running out soon and I think we're just gonna wind up moving the site.

CharlieHipHop’s picture

Bluehost isn't helping at all. It's definitely something on their end.