Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-07-2013, 02:32 AM   #1
Registered: May 2013
Posts: 189

Rep: Reputation: 1
phpbrew giving trouble in php version changing on centos 6.3

I am using phpbrew for changing php versions on centOS 6.3.
I have followed this link for installation.

It looks every thing fine when I run this
phpbrew install php-5.4.16 +default
it gives following message
Congratulations! Now you have PHP with php-5.4.16.
To use the newly built PHP, try the line(s) below:

    $ phpbrew use php-5.4.16

Or you can use switch command to switch your default php version to php-5.4.16:

    $ phpbrew switch php-5.4.16
but when I run these commands and restart httpd/mysqld, it still shows old version in phpinfo.php.
I don't know what am I doing wrong. Why the version is not changed.
Please help.
Old 08-07-2013, 05:43 PM   #2
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I have never even heard of this, seems like a dumb way of trying to run multiple PHP versions and make it easy to switch between them instead of just modifying it yourself.

It more than likely upgraded your local version of PHP, but not the module associated with apache.

Take a look at this yum output:

yum info php
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
Name       : php
Arch       : x86_64
Version    : 5.1.6
Release    : 23.el5
Size       : 3.0 M
Repo       : installed
Summary    : The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
URL        :
License    : The PHP License v3.01
Description: PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated webpages. PHP
           : also offers built-in database integration for several commercial and non-commercial database management systems, so writing a
           : database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts.
           : The php package contains the module which adds support for the PHP language to Apache HTTP Server.

Notice that bold line there that says the package provides the module for php.

ls -al /usr/lib64/httpd/modules/ | grep -i php
-rwxr-xr-x 1 root root 3193672 Nov 12  2008

I bet if you do a "php -v" from the command line you will see the new version.

As far as helping you with that third party piece of code, I have never used it.

Just do a "yum upgrade php"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
having trouble with php code giving a Parse error: syntax error, unexpected '>' ashevillan Programming 6 03-14-2013 10:37 AM
How to upgrade php from version 5.1.6 to version 5.3.6 on Centos Manpasand Linux - Server 2 08-09-2011 01:54 AM
How to upgrade php from version 5.2.10 to version 5.3.3 on Centos ashlule1 Linux - Newbie 3 10-18-2010 02:55 AM
Upgrade from PHP Version 4.3.9 to PHP 5.2 on CentOS nuttynibbles Linux - Software 10 06-15-2010 02:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration