X

Switch to PHP 5.4 on BlueHost

I want to learn laravel 4 and find starter kit using github that combine many class from others plus twitter bootstrap.

As traits available on php 5.4 I decide to find a host that support that version. As  I have account on Bluehost I decide to try it. Bluehost provide php 5.2, 5.3 and 5.4. By default you’ll see php 5.2 but you can enable other version. Here’s how to do that :

1. Login to bluehost cpanel

2. Find PHP Config

The option under Software/Services

 

Choose PHP 5.4 (single php.ini) and click save settings.

 

 

3. Try login via ssh

ssh access not provided by default. You need to request it first via support.

PHP cli will follow the setting. Here’s my login before change the version :

Using username “myacc”.
myacc@mydomain.net’s password:
Last login: Sun May 12 20:54:42 2013 from 36.69.54.183
myacc@mydomain.net [~]# php -v
PHP 5.2.17 (cgi-fcgi) (built: Oct 29 2012 18:51:17)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
myacc@mydomain.net [~]#

Here’s my login after change PHP version to PHP 5.4 :

Using username “myacc”.
myacc@mydomain.net’s password:
Last login: Wed May 15 21:51:27 2013 from 180.242.6.211
hostinj9@mydomain.net [~]# php -v
PHP 5.4.13 (cgi-fcgi) (built: Apr 5 2013 16:41:50)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
myacc9@mydomain.net [~]#

As simple as 123 🙂

admin:
Related Post