PHP version not correctly recognized.

42 views
Skip to first unread message

Guren_Wolf

unread,
Feb 11, 2017, 11:33:48 PM2/11/17
to BeagleBoard
Hello BBB community.

A few days back I posted a topic related to a doubt I had on how to install a PHP version higher than the one downloaded with apt-get on BBB. I managed to download and install PHP 5.6.30 from source and whenever I check de PHP version on the BBB with php -v it says that effectively version 5.6.30 is in the system. Nonetheless, whenever I check the PHP version shown in the info.php  file by opening my BBB ip on a web browser, it still says that PHP 5.4.45-0+deb7u7 is still active.

So, is there a way I can make the version I installed from source completely active?

I realize this is mostly related to a web-server management subject, but since I'm doing this on a BBB, I hope the knowledge from you people can help me out.

Dennis Lee Bieber

unread,
Feb 12, 2017, 10:46:07 AM2/12/17
to beagl...@googlegroups.com
On Sat, 11 Feb 2017 20:33:48 -0800 (PST), Guren_Wolf
<alvar...@gmail.com> declaimed the
following:

>Hello BBB community.
>
>A few days back I posted a topic related to a doubt I had on how to install
>a *PHP version* higher than the one downloaded with *apt-get* on BBB. I
>managed to download and install* PHP 5.6.30 from source* and whenever I
>check de PHP version on the BBB with *php -v* it says that effectively
>version *5.6.30 *is in the system. Nonetheless, whenever I check the PHP
>version shown in the *info.php* file by opening my BBB ip on a web
>browser, it still says that *PHP 5.4.45-0+deb7u7* is still active.
>
>So, is there a way I can make the version I installed from source
>completely active?
>
>I realize this is mostly related to a web-server management subject, but
>since I'm doing this on a BBB, I hope the knowledge from you people can
>help me out.

1) Where in the file system is your built-from-source version?
2) Is that location in the PATH environment used by the web-server (or
other services) when it gets started -- and more, is it before the location
that contains the system PHP?

My understanding (I've not done this myself) is that typically
user-built packages are installed in /opt.... or some other location that
is not normally in the system PATH, in order to avoid having a misbehaving
package affect normal startup operations of the system.
--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Guren_Wolf

unread,
Feb 14, 2017, 5:53:12 PM2/14/17
to BeagleBoard, wlf...@ix.netcom.com
The path where I untared it, unziped it, used the command ./config , make and make install is /usr/local/src/php5.6.30.

Is this path wrong to do all of this?

Guren_Wolf

unread,
Feb 14, 2017, 6:11:58 PM2/14/17
to BeagleBoard
These is the data displayed both in the terminal and the info.php file.


info.php.png
php-v.png

Robert Nelson

unread,
Feb 14, 2017, 6:21:05 PM2/14/17
to Beagle Board
On Tue, Feb 14, 2017 at 5:11 PM, Guren_Wolf <alvar...@gmail.com> wrote:
> These is the data displayed both in the terminal and the info.php file.

Have you updated

/etc/php5/apache/php.ini

to point it to your new php location?

Regards,

--
Robert Nelson
https://rcn-ee.com/

Guren_Wolf

unread,
Feb 14, 2017, 10:32:19 PM2/14/17
to BeagleBoard
That would be exactly what I need, and that's exactly the point where I'm still a noob regarding linux and web-management issues. What I understand from what you say RobertCNelson, I just have to open the file /etc/php5/apache/php.ini using any editor and change some lines in it, but, the file is quite extensive and I wouldn't know which lines I'm supposed to modify and what folders I am supposed to point to exactly.

I would appreciate some guidance on this, direct information or related topics that can help me.
Reply all
Reply to author
Forward
0 new messages