THIS IS A REPEAT POST BECAUSE IT IS WHAT IS FOUND IN GOOGLE WHEN SEARCHING FOR "
DISPLAY ERRORS 1AND1"
After having the same issue I did some research and found what may be the root of the trouble for 1and1 users (though I am using the American side). What seems to be is that 1and1 has listed the example wrong in there FAQ section. I went and did a search for php.ini on the faq.1and1.com site and found the example php.ini file shows:
Code:
allow_url_fopen = off;
memory_limit = 40M;
upload_max_filesize = 20M;
max_execution_time = 50000;
browscap = /usr/local/lib/browscap.ini
register_globals = off;
error_reporting = (E_ALL & ~E_NOTICE & ~E_WARNING);
url_rewriter.tags = “a=href,area=href,frame=src,form=fakeentry,fieldset=”;
If you notice the 5th line "
browscap = /usr/local/lib/browscap.ini" needs a semi-colon at the end like:
Code:
allow_url_fopen = off;
memory_limit = 40M;
upload_max_filesize = 20M;
max_execution_time = 50000;
browscap = /usr/local/lib/browscap.ini;
register_globals = off;
error_reporting = (E_ALL & ~E_NOTICE & ~E_WARNING);
url_rewriter.tags = “a=href,area=href,frame=src,form=fakeentry,fieldset=”;
Other wise everything underneath that line fails to get read. Assuming most use this as the example php.ini they started with an error and add the "
display_errors = off;" line at the bottom like myself...
Any way using their example at 1and1 your php.ini file should have the following contents
Code:
### Turn allow_url_fopen ON if you want to allow for site feeds ###
### to reach your site and other content as such ###
### Security Risk involved in allowing allow_url_fopen###
allow_url_fopen = off;
memory_limit = 40M;
upload_max_filesize = 20M;
max_execution_time = 50000;
browscap = /usr/local/lib/browscap.ini;
### Register Globals off for php 4 ###
###if you use an htaccess file to change to 5 this doesn't matter ###
register_globals = off;
error_reporting = (E_ALL & ~E_NOTICE & ~E_WARNING);
url_rewriter.tags = “a=href,area=href,frame=src,form=fakeentry,fieldset=”;
display_errors = off;
Then the php.ini file should be placed in the following folders:
/
/administrator
/installation
The reason for only those 3 folders is because php should not be executing anywhere else on your Joomla site. If this is not the case add the php.ini anywhere else your browser can access content from the web. (or you have a problem and need to fix the code)
Also your .htaccess file should only be in the root folder "/" as it will effect all sub folders unlike the php.ini (this is for shared hosting on the 1and1 servers)
your .htaccess should contain (and can be added to the bottom of the joomla htaccess.txt)
Code:
AddType x-mapp-php5 .php
Attachment:
example1.jpg