PHP version not correctly recognized.

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.

On Sat, 11 Feb 2017 20:33:48 -0800 (PST), Guren_Wolf
<alvaroevc5@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.

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?

These is the data displayed both in the terminal and the info.php file.

info.php.png

php-v.png

Have you updated

/etc/php5/apache/php.ini

to point it to your new php location?

Regards,

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.