How do I downgrade my PHP version?

How do I downgrade my PHP version?

Upgrading or Downgrading PHP Versions

  1. Ensure the php packages for the version you want are installed.
  2. Update any configuration for that PHP version.
  3. Update your web server configuration to point to the correct PHP version.
  4. Point PHP CLI to the correct PHP version.
  5. Restart your web server and php-fpm.

How do I downgrade to php5?

This worked for me:

  1. sudo apt-get remove -y –purge php7.0*
  2. sudo add-apt-repository –remove ppa:ondrej/php.
  3. back php7 nginx conf.
  4. edit nginx conf to run php5: change: fastcgipass unix:/var/run/php/php7.0-fpm.sock.
  5. sudo apt-get update.
  6. install php5: sudo apt-get install php5-fpm php5-mysql.

How do I purge PHP?

How to uninstall PHP, Apache and MySQL on ubuntu?

  1. To uninstall PHP. sudo apt-get remove –purge php* sudo apt-get purge php*
  2. To uninstall Apache. sudo service apache2 stop. sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common.
  3. To uninstall MySQL. sudo apt-get remove –purge mysql* sudo apt-get purge mysql*

How to check the Versio of PHP 5.6?

To check the versio of PHP run following command: After installing Webtatic yum repository, you have to remove the old version of php-common package. It will also delete it dependencies packages. After installing PHP 5.6, we need to restart Apache service.

How to install PHP 5.4 on CentOS 6?

If you already have EPEL installed: Now we need to make sure the repo is enabled and select which version you want to install. We need to head over to/etc/yum.repos.d you should inside see a file called remi.repo. Open the file in your favourite editor (Nano, Pico, Vi etc), you’ll see a number of sections.

How to install different versions of PHP in Ubuntu?

This package is a dependency package, which depends on Debian’s default PHP version (currently 7.0). To install the default PHP version from the Ubuntu software repositories, use the command below. $ sudo apt install php Install PHP (5.6, 7.x, 8.0) on Ubuntu Using PPA

What are the main features of PHP 5.6.0?

Main features include in PHP 5.6.0 : Constant scalar expressions. Exponentiation utilizing the ** operator. Function and constant importing with the utilization decisive word. phpdbg as an intuitive coordinated debugger SAPI. GMP questions now bolster operator over-burdening.