• UID7268
  • Fans0
  • Follows0
  • Posts1

anyway to upgrade PHP version beyond 5.5?

More Posted time:Apr 11, 2019 20:41 PM
I have a web hosting and domain. How could I check PHP log? Anyway to upgrade PHP to version 7? thanks.

  • UID7287
  • Fans0
  • Follows0
  • Posts1
1st Reply#
Posted time:Apr 16, 2019 6:15 AM
Yes, it is easy if you have your own Whm/cPanel server?
I have my own Whm server and made this before for my website you can check this link bahis siteleri
If you have your own server it will take only few minutes.. you can check Im sending this guide to you.

  • UID10643
  • Fans0
  • Follows0
  • Posts2
2nd Reply#
Posted time:Dec 23, 2020 22:59 PM
I want to use my WordPress site in Alibaba cloud. While upgrading WordPress, it's showing You cannot update because WordPress 5.6 requires PHP version 5.6.20 or higher. You are running version 5.4.45. Help me

  • UID11896
  • Fans0
  • Follows0
  • Posts1
3rd Reply#
Posted time:Oct 17, 2021 17:14 PM
I have the same issue when i updating WordPress to my . It's saying You cannot update because WordPress 5.8.1 requires PHP version 5.6.20 or higher. You are running version 5.5.37.

  • UID12032
  • Fans0
  • Follows0
  • Posts1
Posted time:Dec 5, 2021 15:50 PM
I want to use my WordPress site Alibaba cloud. how can i do this please help me.

  • UID12349
  • Fans0
  • Follows0
  • Posts1
Posted time:Mar 8, 2022 19:15 PM
that's great opportunity WordPress help it
[neeraja edited the post at Aug 5, 2022 17:38 PM]

  • UID12369
  • Fans0
  • Follows0
  • Posts1
Posted time:Mar 14, 2022 20:38 PM
Well! In order to solve any PHP related issue, hire php developers India as they are good at solving the problems.

  • UID8414
  • Fans0
  • Follows0
  • Posts23
Posted time:Apr 4, 2022 10:44 AM
Here the procedures,

1.) you need to upgrade the PHP version
2.) after than you can upgrade the WordPress


1. List existing PHP packages

When updating [color=var(--fg-title-col,#363636)]an existing PHP setup, it is easier to list the existing PHP extensions installed as software packages, to match the PHP 8.1 extensions list.
On systems that install PHP 8.1 afresh, this step is not required.

dpkg -l [color=var(--c-operator,#25757a)]| [color=var(--c-function,#247379)]grep php [color=var(--c-operator,#25757a)]| [color=var(--c-function,#247379)]tee packages.txt
This command lists all PHP packages installed, displays them on-screen, and saves to a file named packages.txt in the current working directory.

2. Add ondrej/php PPA

None of the default software repositories on Ubuntu or Debian to date include PHP 8.1. Ondřej Surý maintains a package archive that contains compiled binaries of all current PHP versions, for Ubuntu and Debian.
Once this repository is added, the initial installation and updates can be done with the standard apt commands.

[color=var(--c-function,#247379)]sudo add-apt-repository ppa:ondrej/php [color=var(--c-comment,#6f6f6f)]# Press enter when prompted. [color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt update

[color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt [color=var(--c-function,#247379)]install apt-transport-https lsb-release ca-certificates [color=var(--c-function,#247379)]wget -y [color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]wget -O /etc/apt/trusted.gpg.d/php.gpg [color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]sh -c [color=var(--c-string,#2d7f11)]'echo "deb $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' [color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt update
Steps above will add the PPA as a source of packages, that contains all PHP packages and their dependencies such as argon2 and libzip.

3. Install PHP 8.1 and extensions

All PHP 8.1 packages follow php8.1-NAME pattern. Additional extensions (such as GD, Curl, etc.) can be installed as software packages following their name (php8.1-gd, php8.1-curl, etc.).
  • php8.1 is a meta-package that collectively installs a few dependencies such as php8.1-cli and php8.1-readline as well as auxiliary packages such as apache2 if one of php8.1-cli, php8.1-fpm, or libapache2-mod-php8.1 is not explicitly requested.
  • php8.1-common is a meta-package that installs most of the widely used PHP extensions in one-go. It automatically installs package such as php8.1-pdo, php8.1-tokenizer among other useful extensions.

Install PHP 8.1 with CLI

[color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt [color=var(--c-function,#247379)]install php8.1-common php8.1-cli -y
This command will install several PHP extensions due to php8.1-common, and the CLI for PHP 8.1.
Confirm the installation by running:

php -v [color=var(--c-comment,#6f6f6f)]# Show PHP version. php -m [color=var(--c-comment,#6f6f6f)]# Show PHP modules loaded.

Additional extensions

You can install additional extensions from the same php8.1-NAME pattern. Refer to the packages.txt file to see a list of existing packages if you are upgrading an existing system.
Note that since PHP 8.0, the JSON extension is bundled and is implicitly installed.
An example to install a few more useful extensions:

[color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt [color=var(--c-function,#247379)]install php8.1-[color=var(--c-operator,#25757a)]{bz2,curl,intl,xml[color=var(--c-operator,#25757a)]}

Development Tools

For development environments, code coverage tools or the Xdebug debugger can be installed as well.

[color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt [color=var(--c-function,#247379)]install php8.1-pcov [color=var(--c-comment,#6f6f6f)]# PCOV code coverage tool [color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt [color=var(--c-function,#247379)]install php8.1-xdebug [color=var(--c-comment,#6f6f6f)]# Xdebug debugger
This is [color=var(--fg-title-col,#363636)]not recommended for production servers.

Install Server APIs

Depending on the web server you use, you will need to install additional packages to integrate with the web server.

For [color=var(--fg-title-col,#363636)]Apache using mpm_event, [color=var(--fg-title-col,#363636)]Nginx, [color=var(--fg-title-col,#363636)]Litespeed, etc., php8.1-fpm package provides integration with PHP 8.1 via FPM.

[color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt [color=var(--c-function,#247379)]install php8.1-fpm

For [color=var(--fg-title-col,#363636)]Apache using mod_php, install libapache2-mod-php8.1.

[color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt [color=var(--c-function,#247379)]install libapache2-mod-php8.1
Note that the Apache2Handler is renamed to php_module from php7_module in PHP 8.0. The libapache2-mod-php8.1 package automatically configures the Apache module location, but if you are updating from an existing PHP setup, you might need to update configuration files; in particularly <IfModule> blocks.

4. Test PHP 8.1 installation

To test the PHP installation and the extensions, run the following commands:

php -v
php -m

# php -v
PHP 8.1.0 (cli) (built: Nov 25 2021 20:21:44) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.0, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.0, Copyright (c), by Zend Technologies

# php -m
[PHP Modules]

Purge old PHP versions

If the new installation is working as expected, you can remove the old PHP packages from the system.

[color=var(--c-function,#247379)]sudo [color=var(--c-function,#247379)]apt purge [color=var(--c-string,#2d7f11)]'^php8.0.*'
This assumes you are using PHP 8.0 as the previous version. Change php8.0 part of the command above with the appropriate PHP version.

Running PHP 8.1 with Other Versions

Instead of removing old PHP versions, it is also possible to run multiple PHP versions side-by-side.
The PHP 8.1 CLI will be installed at /usr/bin/php8.1 location by default. Similarly, other PHP binary files will be located in the same directory (/usr/bin/php8.0, /usr/bin/php7.4, etc). The default php name will be symlinked to the latest PHP version by default, but it is possible to change where the default php command links to.
The update-alternatives command provides an easy way to switch between PHP versions for PHP CLI.

[color=var(--c-function,#247379)]sudo update-alternatives --config php
This brings up a prompt to interactively select the alternative PHP binary path that php points to.

There are 2 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
* 0            /usr/bin/php8.1   81        auto mode
  1            /usr/bin/php8.0   80        manual mode
  2            /usr/bin/php8.1   81        manual mode
To set the path without the interactive prompt:

update-alternatives --set php /usr/bin/php7.4

  • UID12626
  • Fans0
  • Follows0
  • Posts2
Posted time:May 12, 2022 20:11 PM
May i use Alibaba cloud on my website

  • UID13423
  • Fans0
  • Follows0
  • Posts1
Posted time:Oct 24, 2022 17:01 PM
i am also facing same issue on  while upgrade PHP version beyond 5.5