DH,
So CC asks 1and1 to change a PHP setting and they do it but refuse to say how; you ask them and they refuse to do it unless you pay an additional £69 p/m. Go figure. So let's do an end-run around tech. support.
First of all, all six 1and1 packages that support PHP are Linux systems, which means they almost certainly use
Apache. Here's the list:
http://faq.1and1.com/scripting_languages_supported/php/2.htmlAll six of them support the use of .htaccess:
http://faq.1and1.com/scripting_languages_supported/configuring_apache_server_using_htaccess/1.htmlWhich makes me wonder why your use of .htaccess caused a 500 error. Maybe you had a typo in it or something. That's something you
should be able to get help on from tech support.
According to
this page, you should be able to use custom php.ini files as well as .htaccess to make the change you want to make. By referencing a list of PHP directives in the online PHP manual, it implies that they support all the settings on that list via either custom php.ini or .htaccess. But pay careful attention to the last paragraph, which says not all settings are changeable and to contact tech support if you make a change with php.ini and it doesn't seem to work.
BTW, your workaround, the one that causes the 500 error, looked OK to me except that it would have actually reduced your memory limit from 96M to 40M. Lets go the other way! Maybe 128M. I'm just puzzled because the error msg. said it had only allocated about 30M and couldn't even get another 35 bytes. Very strange.
EDIT: Since the page linked to above says the php.ini file needs to be in every directory where the changed setting might be used, this script might come in handy:
http://tips-scripts.com/php_ini_copy.
RLE