how to solve error 500 internal server error with WordPress, 1and1 and different plugins

If you host your site at 1and1 and

a) encounter wordpress or its admin panel crashing down while or after activating or working with QTranslate or

NextGen Gallery plugin

or

b) find Nextgen Gallery not creating thumbnails or having problems with uploads

you may find this helpful:

1. Open .htaccess file in your root folder

2. Add these lines:

Options All -Indexes

AddType x-mapp-php5 .php

AddHandler x-mapp-php5 .php

3. Save and hopefully see it work

sascha

32 Responses to “how to solve error 500 internal server error with WordPress, 1and1 and different plugins”

  1. Mike
    Feb 01, 2009

    Hi Sascha,
    Thank you for your comment. I’m excited to use this fix. However I don’t have an .htaccess file in my root directory. So I made a file with the lines you provided above, named it .htaccess, and placed it into the root folder. But that only caused more errors. I was wondering if you could provide an example .htaccess. One that is clear of any of your privacy information of course.
    Thanks for your time,
    Mike


  2. admin
    Feb 01, 2009

    Hi Mike,
    here you go, give this one a try:
    http://www.designforunity.com/downloads/htaccess.zip

    This file contains:

    order allow,deny
    deny from all

    for denying access to your .htaccess file

    ServerSignature Off

    order allow,deny
    deny from all

    for denying access to your wp-config.php

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    In case your Permalink-Rewriting is on.

    Options All -Indexes
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    For activation of php 5

    Rename the file to .htaccess
    and upload it to the same folder your index.php is located in.
    If problems still persist please post your error messages
    and plugin- and host-information here.

    good luck
    sascha


  3. Arnaud
    Feb 25, 2009

    Thank you so much for this tip, i m looking for since last week. And oh my god it s working !!!!!


  4. Steve
    Mar 20, 2009

    Thank you so much! I just spent the last 4 hours trying to figure this out. This post nailed it.


  5. Kristen
    Apr 03, 2009

    BEAUTIFUL!!! Thanks so much!! This has been killing me for days!


  6. gobrando
    Apr 14, 2009

    Thank you! I thought I’d never figure this out.


  7. Sascha
    Apr 23, 2009

    Thanks 4 ur help.
    1&1 still figure it out….
    Now everythink works fine.

    U´ll be Supportet on my Blog.


  8. Chris
    Apr 30, 2009

    grrr. This is quite annoying.

    Only one of my 70+ pages is giving me trouble.

    http://www.freevegasclubpasses.com/free-passes-to-las-vegas-clubs

    Looks fine on front end but cant access on back. Followed instructions to disable plugins and got it to work! Once! It allowed me to “edit” but i couldn’t update the page without seeing the 500 error. All plugins off. Its a custom theme but never had any probs before. I had been messing around with my paypal buttons, I had installed SEO All in one pack earlier in the day but had no probs for hours. I then added a DIV line, had the problem, removed the DIV line and still have the prob!

    Replaced my HTACCESS with yours, no help. Added the PHP Memory=20 like others suggested. Deleted my ALLinOneSEO. All of this with no luck? Any suggestions? I’m buying beers if you can help.

    Host is 1and1

    error message is:
    Error 500 – Internal server error

    An internal server error has occured!
    Please try again later.

    Plugins are:
    AddtoAny
    Cforms
    Flexible Upload

    Thanks for your time,

    Chris


  9. admin
    May 01, 2009

    Hi Chris, I’m afraid i cannot help you. I do not know the answer to your problem but to me i seems obvious that it is not something general (htaccess, php-version, or even plugins) because those problems would most likely affect the whole blog. As it is only this one page that has the problem and the only difference to other pages is that there is the Paypal-Cart thing i would guess it has something o do with this. good luck, sascha


  10. lost_user
    May 15, 2009

    AMAZING!! Been struggling with this forever!!! Thanks for the tip!!

    BTW: why doesn’t the .htaccess file stay displayed after I change the filename??


  11. admin
    May 15, 2009

    It doesn’t stay displayed after you change the name because .* files are hidden files. You can only see them if you enable this in your system preferences. Simply google for your operating system.


  12. diego
    May 17, 2009

    Sascha!
    I have those plugins..: qTranslate, etc.. I’ve tried replacing the .htacces I had with yours but still not working :(
    My wp blog is on: http://www.tangoshow.eu/wp/
    My server details are here (the linux one):
    http://hosting.aruba.it/caratteristiche_servizi.asp?Lang=EN&offerta=

    If you want to take a look, please, here’s my .htacces:
    /////////////////////////////////////

    order allow,deny
    deny from all

    ServerSignature Off

    order allow,deny
    deny from all

    # BEGIN WPSuperCache

    RewriteEngine On
    RewriteBase /wp/
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/wp/wp-content/cache/supercache/%{HTTP_HOST}/wp/$1/index.html.gz -f
    RewriteRule ^(.*) /wp/wp-content/cache/supercache/%{HTTP_HOST}/wp/$1/index.html.gz [L]

    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/wp/wp-content/cache/supercache/%{HTTP_HOST}/wp/$1/index.html -f
    RewriteRule ^(.*) /wp/wp-content/cache/supercache/%{HTTP_HOST}/wp/$1/index.html [L]

    # END WPSuperCache

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /wp/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp/index.php [L]

    # END WordPress

    Options All -Indexes
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php
    /////////////////////////////////////

    Thank you very much spending time just for reading this post :)

    Diego from Spain


  13. Sheamus
    May 17, 2009

    You, sir, are a superstar. Not only did this fix the problem with my edit.php file, it also resolved a long-standing issue I’ve been having in my comments.php file, which was only displaying one comment at a time.

    Thank you so much! :)


  14. admin
    May 18, 2009

    Hi Diego,
    a few things i can say but i’m not sure whether any of those will be the actual solution:

    MOST IMPORTANT:
    Uncomment
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php

    by removing the # in front of each line.

    then

    1. Remove one:
    order allow,deny
    deny from all

    2. Try and switch off SuperCache.
    I have heard of some compability issues there …

    If all this does not work see if your host has a setting where you can enable PHP5.

    good luck
    sascha


  15. Diego
    May 19, 2009

    Thank you for your time :)
    When I uncomment:

    order allow,deny
    deny from all

    ServerSignature Off

    order allow,deny
    deny from all

    Is not giving me problems…
    Then when I uncomment the:

    Options All -Indexes
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    Is giving me the internal server error :(

    by the way, I’ve already deactivated the WPSuperCache

    Please please please..
    Gracias…

    Diego


  16. Celenor
    May 20, 2009

    I tried to add a simple .htaccess with only the two lines you mention, but it don’t work. When I’m trying to add some picture, I got this :

    Fatal error: Out of memory (allocated 34603008) (tried to allocate 11584 bytes) in /homepages/39/d283814944/htdocs/gmo/wp-admin/includes/image.php on line 147

    I tried to add a php.ini file with “memory=20MB”, but it didn’t work too. Do you have any idea ?


  17. admin
    May 20, 2009

    The syntax for the php.ini memory line should be:
    memory_limit = … M

    but this may not help you, because according to 1and

    you are NOT able to increase your memory limit through a php.ini if you have a regular 1and1 shared hosting account.

    Another possible reason could be incorrect permissions: Make sure the script of your plugin has execute permissions.

    good luck


  18. admin
    Sep 14, 2009

    wow, loads of good comments, thank you! :-)


  19. Karsten
    Sep 25, 2009

    Thanks a lot for these helpful information. Saved me a lot of time.


  20. lonelydime
    Oct 02, 2009

    Thank’s so much, I’ve been trying to swap out plugins for days trying to find some that will all get along and this solved the problem. Now my simple:press, nextgen and wordspew will get along.

    This fix saved countless errors, I just wish I had stumbled upon it quicker.


  21. Achim
    Oct 04, 2009

    Worked for me! Great, thanks for the provided htaccess-Archive!
    -Achim


  22. loveglass
    Oct 27, 2009

    Wicked Sascha! Worked for me too. Bless you ;-)


  23. liming
    Oct 31, 2009

    Thank you very much!!!


  24. edfernandez
    Nov 01, 2009

    Thank you!


  25. Berthold
    Nov 19, 2009

    Excellent info, thanks a lot. This totally worked with Firestats.


  26. Rob
    Nov 23, 2009

    You are brilliant and you win the Awesome Person Award for the day! Woo hoo…. I hit that “Error 500 – Internal server error – An internal server error has occured! Please try again later” message this morning, and I wanted to cry.

    Your fix worked perfectly. Thanks so much!


  27. jed
    Jun 07, 2010

    Freaking awsome! My website has been down for months. Thank you so much!!


  28. Ben Taylor
    Jun 14, 2010

    You don’t know how happy I was to see you post about NextGen and 1&1 not getting on.. My client has their WP site hosted by 1&1 and NextGen didn’t want to make a thumbnail for any image larger than 100px.. Your fix sorted it!

    To top it off.. I wasn’t able to install plugins or update plugins using the admin screen, I had to manually download them.. This has solved that too!

    Can you explain how the fix actually works?

    Many thanks!


  29. Louboutin shoes
    Jun 16, 2010

    A good article Thank you!


  30. Wow man. Thank you so much. I’ve had 1 and 1 for about 2 years, and I get this problem off and on. This helped, hopefully it will work for all of them. Thanks again!


  31. Thomas
    Jun 22, 2010

    Hi there,

    I’ve uploaded a 2.9.2 WordPress website using qTranslate and NextGen to a 1&1 hosting and had the same problem you describe in this forum.

    By using your .htaccess solution, I can now access properly my permalinks urls like mywebsite.com/testfolder/de/page or mywebsite.com/testfolder/es/page which is really great.

    BUT STILL, when I login through mywebsite.com/testfolder/wp-admin/ I can enter my login and passwords but then after I get a “Error 404: NOT FOUND! Your browser cannot find the document corresponding to the URL you typed in.”

    Anybody a clue?

    Thanks in advance.


  32. Brendan
    Jul 25, 2010

    Thanks so much! Nextgen was having an issue generating thumbnails for me, but this did the trick. Thanks again!



ShareThis
AddThis Social Bookmark Button

About me

I am a Communications Designer dedicated to the practice of love and Kriya Yoga in all aspects of life to achieve spiritual growth and to regain freedom and strength to reach oneness with God/the Divine through Maha Samadhi as described in ancient scriptures.

I operate www.designforunity.com to share creative bits and insights about my spiritual life, social design and my work.

What is a spiritual life?

A truly spiritual life has nothing to do with churches or sects. Above all it is about loving action and a loving attitude towards all creation. So it takes place in the streets and warzones where people fight each other and are too greedy to share and too aggressive to reconcile. Thus a spiritual lifestyle is one that improves our world.

 Flickr Photos