Force Apache to use PHP 7.2 Debian 8

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I just updated PHP version from 5.6 to 7.2on my Debian 8 server,

On my info.php, i got :

PHP Version 7.2.14-1+0~20190113100657.14+jessie~1.gbpd8

On my server with php -v command :

# php -v
PHP 7.2.14-1+0~20190113100657.14+jessie~1.gbpd83c69 (cli) (built: Jan 13 2019 10:30:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.14-1+0~20190113100657.14+jessie~1.gbpd83c69, Copyright (c) 1999-2018, by Zend Technologies

But, on my wordpress , I still have PHP 5.6 :

You are running WordPress 5.0.3 | PHP 5.6.30-0+deb8u1 | Apache/2.4.10 (Debian) | MySQL 5.5.54-0+deb8u1

I already have Apache restarted, but it does not support PHP 7.2.

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.