- Should you be building your next website in Drupal?
- How to add Zoopy video to your Drupal site using CCK and the Embedded Media Field module
- My state of Drupal, today, 18 March 2009
- Drupal Johannesburg 11 March meetup notes
- Quick Drupal setup using Acquia's DAMP stack
- Drupal conference 2009 videos available on the Internet Archive
- Drupal 500 Internal Server Error on shared hosting
- The case for Drupal
- KAYA FM interview: DISCOVER MORE- THE BUSINESS OF BEING ONLINE.
- Drupal Johannesburg July 2008 meetup summary
Drupal 500 Internal Server Error on shared hosting
Was getting irregular "500 Internal Server Error" pages on a new Drupal 6 install, running on shared hosting.
After some research it appears that the hosting company is running php5 as CGI which does not follow the PHP directives set in Drupal's .htaccess file:
# PHP 4, Apache 1.
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
</IfModule>
This post suggests commenting out these PHP specific settings, and adding the following to your php.ini (if you have access to it - some hosting companies don't allow this, although there are workarounds):
magic_quotes_gpc 0 register_globals 0 session.auto_start 0 mbstring.http_input pass mbstring.http_output pass mbstring.encoding_translation 0
This seems to work - I'll update in the comments if I run into this issue again.
- charles's blog
- Login or register to post comments

Comments
Thanks
It's wonderful code, Thanks for share!
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.encoding_translation 0
Data Recovery Software|Guard Process|Restore Deleted Files|进程保护|Recover Deleted Pictures From Memory Card
This is only an issue for
This is only an issue for some of the server OS(open source) and it is valid for all the OSs. This can be eliminated by doing a slight modification to .htaccess file. Not that difficult. michael jackson cds
I've come to the following
I've come to the following solution, for anyone who's struggling likewise. The problem was one of my own misunderstanding. I prepared my finished, offline Drupal site as if for an upgrade. I uninstalled all contributed modules and changed the site's theme to a default one. I then did a manual, fresh installation of Drupal on the hostican server. After installing Drupal, I deleted the mysql database I had used for the installation, and created a new database with the same name (and user and password) and imported my database from my finished Drupal site on my computer (changed name of database as found in .sql file to match the one on the server before importing). I then replaced the [site name]/sites/all folder in my Drupal installation on the server with the one from my finished site (this folder includes contributed modules and themes). After the above was successfully completed, I re-installed all contributed modules and did a database update (ran the update.php script). As far as I can tell, the site is fully functional.
----
Sincerely,
Collection of dark maple syrup
The server encountered an
The server encountered an internal error or misconfiguration and was unable ... Additionally, a 500 Internal Server Error error was encountered.
Be a movie extra
Drupal is the my favorite web
Drupal is the my favorite web platform to use.
Regards,
SEO
If you are running your own
If you are running your own root, dedicated or virtual server this is an easy bugfix: You just have to change the php.ini of your server and provide more memory to your PHP installation. On a shared hosting server – like at the webhosting solutions at 1and1 you often don’t have access to that central php.ini affiliates
My new website
I have seen this happening with the web hosting I was dealing with.
But since I started my new web site for model trains, I kept in mind to find a reliable web hosting for not facing these troubles again.
About 3 to 4 months later all
About 3 to 4 months later all the sites showing "500 Internal Server Error" everytime I try to log in to admin account.I couldn't.
Toronto escorts
Chat Sohbet Fıkra Güncel
Chat
Sohbet
Fıkra
Güncel Haberler
mIRC
Cinsel Sohbet
3d sohbet
3d chat
Drupal's error
It's not SQL at all. It's the
It's not SQL at all. It's the global settings for Apache, restricting the amount of control your local settings for apache (.htaccess) can do.Try removing (commenting) the 'Options' lines in your .htaccess. Those are the ones that usually cause this error, and should still leave you with the clean_urls goodness.
Jason from Ohio,
admin @ Audi Contract Hire Leasing
Drupal
I am a big fan of this
Thanks
We can use this code after
I was repeatedly getting this
If you have the Root
This is not a problem merely
When we talk with a FINANCIAL
Hi webmaster, commenters and
We received this error on one
Shared hosting has
This issue might be occurring
It is seemed to be a bug in
While I was doing a homework
Nice Post
Regards,
Jone
automotive parts
If you are running your own
If you are running your own root, dedicated or virtual server this is an easy bugfix: You just have to change the php.ini of your server and provide more memory to your PHP installation. On a shared hosting server – like at the webhosting solutions at 1and1 you often don’t have access to that central php.ini affiliates
It's not SQL at all. It's the
This problems some time
Cheap LCD TVs Shopping
Cheap LCD TVs
Shopping Online
Technology News
Cheap IPODs
Social Bookmarks
Download Games
Download Games
I really appreciate drupal
Darn! Now I see where it was
It is difficult to track down
Drupal web sites give many
i think this is needed php
when i first install drupal
Honestly, it's probably your
Great post, thanks for
It is difficult to track down
tgb
This is a common error, We
Where we can implement this
good
When I do article submit in
I recieve the error "Error
I really appreciate your
In any kind of a ceremony,
rtn
Drupal was also designed to
500 Internal Server Error in