Pedro Posada | Error 500 - Internal server error (1and1 hosting)

Error 500 - Internal server error (1and1 hosting)

Posted on May 12, 2008 - 2:18pm
<< 40 of 54 >>

Copy and paste the following line at the beginning of your .htaccess file:

##
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
##

go to http://drupal.org/node/232773 for the complete drupal forum post.

ADDITIONAL IMPORTANT INFORMATION

Link to the FAQ's page in 1and1.com: http://faq.1and1.com//scripting_languages_supported/php/9.html

What do I need to consider if I want to use PHP 5?

With 1&1 Linux hosting packages you have the choice between PHP 4 and PHP 5.

To distinguish a script as PHP 5, simply name the script with the file extension .php5. While the PHP developers have done their utmost to ensure compatibility, we cannot guarantee that PHP 4 scripts will function 100% correctly under PHP 5. Please note that in contrast to PHP 4, the default for the variable RegisterGlobals is "off". By default Apache uses PHP 4 for .php extension. If you don't want to rename all your scripts to .php5 you can do the following: Create a .htaccess file and place the following line

AddType x-mapp-php5 .php

in it. This will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the directory the .htaccess is placed and all sub-directories under it.
You can use AddHandler x-mapp-php5 .php as an alternative for or instead of AddType x-mapp-php5 .php

Submitted by kjv1611 (not verified) on August 27, 2008 - 7:30pm.

I started getting this error only when trying to update Module fields, and only after trying to install the CCK module.

I tried adding this line of code, but it did not help.

I'll try posting over at the forum thread to see if anyone has any ideas...
Using Drupal 6.4 (tried with both the current 6.x download and the dev snapshot - no difference.

Submitted by ihatethetv (not verified) on June 27, 2009 - 10:11pm.

Thanks, this worked for me...but in a roundabout way...I was just ggetting 500 errors on my modules page,when it wouldn't load.

When I added the abovementioned lines to my .htaccess file, it gave me a php memory error message....which was much more useful than the 500 error. I then upped my max memory in my php.ini from 16MB to 32MB and it is back working again.

The 1and1 faq here...
http://faq.1and1.com/scripting_languages_supported/php/16.html

that the php mmeory limit is 16MB, but when I raised it to 32MB the modules page worked again...i bet that faq is out of date.

Fingers are crossed it doesn't come back.

Thanks,
Glen

Submitted by islandtur (not verified) on March 16, 2011 - 8:25am.

YEAH! This work! you are a genius ! you can verify this on my web page... www.islandtur.com

I was do it the follow.

added the lines
##
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
##

then a find the line #RewriteBase /
and un comment this line. Then all work...

Submitted by Anonymous (not verified) on July 10, 2011 - 8:55am.

would u plz post the FULL text that i should type in the .htaccess file

Submitted by Luciendub (not verified) on July 12, 2011 - 10:10am.

New lines to add to the .htaccess here: http://error5001and1.luciendubois.net
Tell me when it works

Submitted by stunning boy (not verified) on July 26, 2011 - 10:02am.

wow it has been very useful and helpful php script you made it quite easy in fact.
web hosting

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.