See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More

How to switch PHP 5.5 instead PHP 5.4 in Bitnami

General Tech Bugs & Fixes

Max. 2000 characters



( 5 months ago )



Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise
Bitnami used in AWS

I want to install PHP 5.5, so I do next step:

php -v
PHP 5.4.26 (cli) (built: Apr  8 2014 10:05:18)

sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5

Reading package lists... Done
Building dependency tree
Reading state information... Done

php5 is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

When I use command:

sudo apt-cache policy php5

I get next:

  Version table:
 *** 0
        500 precise/main amd64 Packages
        100 /var/lib/dpkg/status
     5.3.10-1ubuntu3.19 0
        500 precise-updates/main amd64 Packages
        500 precise-security/main amd64 Packages
     5.3.10-1ubuntu3 0
        500 precise/main amd64 Packages

I check files by:

locate bin/php


which php


Also I find file /home/bitnami/.bashrc where I see next PATH:

export PATH

So if I use command /usr/bin/php -v I get my last version PHP 5.5:

PHP (cli) (built: Sep  8 2015 12:58:11)

But if I use php -v or phpinfo in my site get always old version PHP 5.4:

PHP 5.4.26 (cli) (built: Apr  8 2014 10:05:18)

How I can switch PHP version to 5.5? What I need to do? What I need to write in settings to enable PHP 5? or what need change in Apache settings?

what's your interest