Confused PHP Install

The following is effecting our phpBB website running on a linux server. I’m hoping someone can recommend a fix or point me to a solution.

During the summer, without realizing it, the linux server running our phpBB website had the version of php updated. Our phpBB website was then broke as the php version was now one not supported by phpBB.

Was able to get phpBB running again, but now’s here the problem. Seems we have a confused mixed php versions situation.

At the linux server command line doing php -i|grep 'PHP Version" returns 7.0.9-1+deb.sury.org~xenial+1

In our phpBB website checking the PHP information I see PHP Version 5.6.24-1+deb.sury.org~xenial+1

We only want the PHP version 5.6.24 How do I fix the linux server believing php 7.0.9 is in use? This is causing a sendmail problem as we no longer get phpBB notifications, emails, etc. Sendmail worked fine before the mistaken php update.

I’m a volunteer for non profit organization trying to both administer and webmaster their website.

Thanks.

CLI and the apache version don’t have to be the same. Create a phpinfo page and see what version it is running, that will be the version in use by the website. Either way, it shouldn’t cause a sendmail conflict.

From my original post

At the linux server command line doing php -i|grep 'PHP Version" returns 7.0.9-1+deb.sury.org~xenial+1

In our phpBB website checking the PHP information I see PHP Version 5.6.24-1+deb.sury.org~xenial+1

I believe whomever “fixed” the php problem didn’t do a complete and through job. How do I check and completely remove PHP 7.x version and ensure the server only have PHP 5.6.x version?

Probably the simplest thing to do is uninstall it all and then install what you want the way you want.

I’m a volunteer for non profit organization trying to both administer and webmaster their website. I’m no linux or php expert.

Possible to provide exact instructions on how to accomplish?

Thanks.

In that case, it would probably be best to hire someone to do it.

Was hoping for a bit more “help” than suggesting I pay someone. No money in the budget. It’s up to me.

I created a VM with linux, apache 2 and php 5.6

Verified valid php 5.6 install by using php -v

Then installed php 7.0

Verified valid php 7.0 install by using php -v

I almost created the same two php version problem in a VM that we’re having on the server.

Uninstalled php 7.0 using
sudo apt-get install ppa-purge
sudo apt-get purge php7.0-common

Verified by using php -v (shows version 5.6)

Is this the correct way to uninstall/eliminate php 7.0 from a server? The test worked fine in a VM. I don’t want things to go wrong when I run for real on the server.

Thanks.

You should be good then. Yes, that is how you remove the various versions on a Debian based system.

There could be other Php version specific components. On my system:

Package Class Description
libapache2-mod-php5 5.6.27+dfsg-0+deb8u1 K-O amd64 server-side, HTML-embedded scripting language (Apache 2 module)
php5 5.6.27+dfsg-0+deb8u1 P-T all server-side, HTML-embedded scripting language (metapackage)
php5-cli 5.6.27+dfsg-0+deb8u1 P-T amd64 command-line interpreter for the php5 scripting language
php5-common 5.6.27+dfsg-0+deb8u1 P-T amd64 Common files for packages built from the php5 source
php5-curl 5.6.27+dfsg-0+deb8u1 P-T amd64 CURL module for php5
php5-gd 5.6.27+dfsg-0+deb8u1 P-T amd64 GD module for php5
php5-json 1.3.6-1 P-T amd64 JSON module for php5
php5-mcrypt 5.6.27+dfsg-0+deb8u1 P-T amd64 MCrypt module for php5
php5-mysql 5.6.27+dfsg-0+deb8u1 P-T amd64 MySQL module for php5
php5-readline 5.6.27+dfsg-0+deb8u1 P-T amd64 Readline module for php5

I’m not sure what you are tell me.

I am telling you that you may not have completely removed 5.6.

That’s good as I want php 7 gone!

If php 5.6 is somehow “broken” I can always reinstall it.

Sponsor our Newsletter | Privacy Policy | Terms of Service