Administration FAQ's (poss Security) 1 and 1 Hosting UK

Moderator: mcsmom

Post Reply
User avatar
humvee
Joomla! Intern
Joomla! Intern
Posts: 97
Joined: Wed Aug 17, 2005 10:27 pm
Location: Kent, UK

Administration FAQ's (poss Security) 1 and 1 Hosting UK

Post by humvee » Mon Jan 01, 2007 2:19 pm

Hi

I have seen a number of repeat requests following problems with Web Host 1 and 1 regarding the use of PHP4 vs PHP5 and the Register Globals issues.

1 and 1 Hosted Servers run PHP4 by default and I have repeatedly found issues with the Register Globals setting.

The following is 1 and 1's method to changing PHP4 to PHP5 which then resolves the RG issue:

This article is for 1&1 Linux WebHosting only.

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 3, 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 PHP4 for .php extension. If you dont want to rename all your
scripts to .php5 you can do the following:

Create a .htaccess file and place the following line

Code: Select all

AddType x-mapp-php5 .php
in it.

This will tell Apache to use PHP5 instead of PHP4 for the extension .php in the
directory the .htaccess is placed and all sub-directories under it.


It works fine, may also help others who are hosted elsewhere.

hth someone

Andy
User Documentation on the Help Site http://help.joomla.org
Joomla! 1.5 Installation Manual http://help.joomla.org/content/section/48/302/
Those that can do (to the best of their time and ability); those that cannot just whine about it (...and expect it all to be done for them!)

Post Reply