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
Cyberspace Ashram for
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
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
Feb 25, 2009
Thank you so much for this tip, i m looking for since last week. And oh my god it s working !!!!!
Mar 20, 2009
Thank you so much! I just spent the last 4 hours trying to figure this out. This post nailed it.
Apr 03, 2009
BEAUTIFUL!!! Thanks so much!! This has been killing me for days!
Apr 14, 2009
Thank you! I thought I’d never figure this out.
Apr 23, 2009
Thanks 4 ur help.
1&1 still figure it out….
Now everythink works fine.
U´ll be Supportet on my Blog.
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
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
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??
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.
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
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!
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,denydeny 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
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
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 ?
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
Sep 14, 2009
wow, loads of good comments, thank you!
Sep 25, 2009
Thanks a lot for these helpful information. Saved me a lot of time.
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.
Oct 04, 2009
Worked for me! Great, thanks for the provided htaccess-Archive!
-Achim
Oct 27, 2009
Wicked Sascha! Worked for me too. Bless you
Oct 31, 2009
Thank you very much!!!
Nov 01, 2009
Thank you!
Nov 19, 2009
Excellent info, thanks a lot. This totally worked with Firestats.
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!
Jun 07, 2010
Freaking awsome! My website has been down for months. Thank you so much!!
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!
Jun 16, 2010
A good article Thank you!
Jun 18, 2010
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!
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.
Jul 25, 2010
Thanks so much! Nextgen was having an issue generating thumbnails for me, but this did the trick. Thanks again!