You are Here:   FAQ->Scripting and Programming Languages->PHP->Article #6


How can I check the PHP settings on the server?


For Linux packages only!Linux Packages Only!
      This includes:
arrow 1&1 Beginner (Linux) arrow 1&1 Dual Starter (Linux)
arrow 1&1 Home (Linux) arrow 1&1 Dual Unlimited (Linux)
arrow 1&1 Business (Linux) arrow 1&1 Dual Business (Linux)
arrow 1&1 Developer (Linux) arrow 1&1 Managed Servers





An easy way of doing this is to create a text file named phpinfo.php, phpinfo.php4, phpinfo.php5 or phpinfo.php6. Any file with the .php extension will be parsed as PHP4 by default. If you wish to have the file parsed using PHP 5.2 or PHP 5.4, you will need to change the file extension to .php5 or .php6 respectively. When 1&1 first offered the alpha/beta stage of the newest PHP version to its customer base, the final release was planned to be PHP6. Since that time the PHP developers have reevaluated their planned releases and have pushed off PHP6 for some time. Most changes planned for PHP6 have already been incorporated into version 5.3 and 5.4 as there is some uncertainty to when PHP6 can realistically be released. It is because of this reason that the extension .php6 is used to enable PHP 5.4.

You may also force a specific version of PHP for an entire folder and its subfolders by editing a .htaccess file and saving it to the folder where you wish to force a specific version of PHP rather than renaming all of your pages.


Withing the text file, place the following text:

<?php phpinfo (); ?>   


Save (or upload) the phpinfo.php file to the root of your webspace and access the page through a browser such as http://www.1and1php.com/phpinfo.php.


The current variable defaults and modules installed for the PHP versions on our servers are below
php 4.4
php 5.2
php 5.4


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5