Username:

Password:

Author Topic: How to switch to a different PHP version?  (Read 1135 times)

Click SSL

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 7
    • WWW
How to switch to a different PHP version?
« on: January 19, 2011, 01:26:44 AM »
Hey guys,
 i want to switch PHP Version so what i have to do? Is it easy?

Regards.
Logged
SSL certificates | Wildcard SSL | EV SSL
SSL certificate is available now on @ clickssl.com.

waitely

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 20
Re: How to switch to a different PHP version?
« Reply #1 on: February 23, 2011, 03:51:20 AM »
SiteGround has implemented a unique server setup that allows each customer to choose which version of PHP to use for his / her account. What is more, the customer can even use different PHP versions for different directories in one and the same hosting account.

 

The PHP versions currently supported are: PHP 4.4 PHP 5.0,  PHP 5.1, PHP 5.2, PHP 5.3,  PHP 6.0 and a special additionally secured version of PHP 5.2 with Suhosin patch.

 

It is really easy to change PHP versions for your website with a web hosting account with SiteGround. All you need to do is follow those step:

1. Log in to cPanel for your account.
2. Go to Advanced section -> PHP Version Change
3. Navigate to the directory you would like to change the PHP version for (note that the change will apply to sub-directories for it as well)
4. Click on the directory name.
5. Select the desired PHP version and click Save.

Web designers
Logged

Santosbulus

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 38
Re: How to switch to a different PHP version?
« Reply #2 on: February 24, 2011, 02:47:17 AM »
You can find detailed instructions how to manually change the PHP version for your account below:

Go to cPanel, File Manager and choose "Web Root (public_html/www)". There create a new file (or edit the existing one) called .htaccess and add the following line:

To switch to PHP 4.4:

    AddHandler application/x-httpd-php4 .php .php4 .php3

 To switch to PHP 5.0:

    AddHandler application/x-httpd-php5 .php .php5 .php4 .php3

To switch to PHP 5.1:

    AddHandler application/x-httpd-php51 .php .php5 .php4 .php3
To switch to PHP 5.2:

    AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

 To switch to PHP 5.3:

    AddHandler application/x-httpd-php53 .php .php5 .php4 .php3

 To switch to PHP 6.0:

    AddHandler application/x-httpd-php6 .php .php5 .php4 .php3

 To switch to the secure PHP 5.2 with Suhosin patch:

    AddHandler application/x-httpd-php52s .php .php5 .php4 .php3

 
This setting will apply recursively to all of the sub directories. In case you had like to have a different version of PHP in a sub directory, create a new .htaccess file in it with the directive for the desired PHP version in it.

waitely

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 20
Re: How to switch to a different PHP version?
« Reply #3 on: March 25, 2011, 07:38:56 PM »
Linux server allows each customer to choose which version of PHP to use for his / her account. What is more, the customer can even use different PHP versions for different directories in one and the same hosting account. The PHP versions currently supported are: PHP 5.0, PHP 5.1 and 5.2 PHP(the latest stable branches).

In order to change the PHP version for your account, follow these steps.
1) Go to cPanel then
2) Cilck on the "File Manager" and choose "Web Root (public_html/www)" and choose "Show Hidden Files (dotfiles)"
3) Please check the .htaccess file is present or not.There create a new file (or edit the existing one) called .htaccess containing the following line:


To switch to PHP 5.0:

HTML Code:

AddHandler application/x-httpd-php5 .php .php5 .php4 .php3

web designers
Logged

kailee

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 20
Re: How to switch to a different PHP version?
« Reply #4 on: July 14, 2011, 11:08:26 PM »
If you want to be able to use different PHP versions on a per-folder basis, you can sign up for a hosting account at Internet. They offer the best PHP hosting and them support team is ready to assist you with any PHP questions/problems you may have.

netshet

  • Jr. Member
  • **
  • Karma: +0/-0
  • Posts: 53
Re: How to switch to a different PHP version?
« Reply #5 on: August 04, 2011, 09:06:32 PM »
How to change the value of a PHP setting?

There are two ways to change the value of a PHP setting: through the SiteGround' PHP Variables Manager or by manually creating a local php.ini file and uploading it in the chosen folders.

 

   1. Change the value of a PHP setting through the SiteGround' PHP Variables Manager:

You can apply changes to the PHP values using our tool in cPanel. The tool can be found under:

cPanel -> PHP Variables Manager

Once you go to the specified section you can write the variable which you wish to change and press the Add button. The variable will appear below and you can choose to enable (green tick) or disable it (red cross).

After you make the necessary changes press the Save button and the changes will be saved.

lilly1236

  • Full Member
  • ***
  • Karma: +0/-0
  • Posts: 163
    • WWW
Re: How to switch to a different PHP version?
« Reply #6 on: August 06, 2011, 06:52:45 PM »
Linux server allows each customer to choose which version of PHP to use for his / her account. What is more, the customer can even use different PHP versions for different directories in one and the same hosting account. The PHP versions currently supported are: PHP 5.0, PHP 5.1 and 5.2 PHP(the latest stable branches).

In order to change the PHP version for your account, follow these steps.
1) Go to cPanel then
2) Cilck on the "File Manager" and choose "Web Root (public_html/www)" and choose "Show Hidden Files (dotfiles)"
3) Please check the .htaccess file is present or not.There create a new file (or edit the existing one) called .htaccess containing the following line:


To switch to PHP 5.0:

HTML Code:
Code: [Select]
AddHandler application/x-httpd-php5 .php .php5 .php4 .php3To switch to PHP 5.2:

HTML Code:
Code: [Select]
AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

pullupbanner

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 42
    • WWW
Re: How to switch to a different PHP version?
« Reply #7 on: September 23, 2011, 07:36:13 AM »
It is really easy to change PHP versions for your website with a web hosting account with SiteGround. All you need to do is follow those step:

1. Log in to cPanel for your account.
2. Go to 1H Software section -> PHP Version Manager
3. Navigate to the directory you would like to change the PHP version for (note that the change will apply to sub-directories for it as well)
4. Click on the directory name.
5. Select the desired PHP version and click Save.

That is all.

bondbrayan

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: How to switch to a different PHP version?
« Reply #8 on: January 26, 2012, 05:33:04 AM »
On the market to provide a large number of managed services. You should have a thorough understanding in order to determine the best hosting service for your website on a variety of hosting services.

hairtransplant

  • Jr. Member
  • **
  • Karma: +0/-0
  • Posts: 56
Re: How to switch to a different PHP version?
« Reply #9 on: January 27, 2012, 06:13:34 AM »
If you want to switch to php version from php4 to php5 or any other version then add the following rule in your .htacesss file as per the php version installed on the server.

To switch to PHP 5.0:
Code: [Select]
AddHandler application/x-httpd-php5 .php .php5 .php4 .php3

evantanski

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
Re: How to switch to a different PHP version?
« Reply #10 on: February 02, 2012, 12:51:14 AM »
Just install the new version, but before this make an backup of your files / site
or talk with your hosting admin and ask them to make the new update.

jamecleark

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 5
Re: How to switch to a different PHP version?
« Reply #11 on: February 07, 2012, 08:51:13 AM »
If you want to be able to use different PHP editions on a per-folder time frame, you can indication up for a website web host service at Online. They provide the best PHP web host and them assistance group is prepared to support you with any PHP questions/problems you may have.