×
UpdatePHP Pro Log in Register
PHP expiry alert : PHP v8.1 has recently expired. Is your website still running this version? Click here for more details
SAFE versions of PHP: 8.5.12, 8.4.27, 8.3.36, 8.2.35
☰

PHP2Shell (CVE-2026-109618 / CVE-2026-109619) is a critical security problem in PHP itself that lets attackers take over web servers. Every website that runs PHP should be updated to 8.5.12, 8.4.27, 8.3.36, 8.2.35 or newer as soon as possible. Read our PHP2Shell check and patch guide.

Disclaimer: before attempting to update the PHP version of your website we would highly recommend that you make a full backup of it, just in case anything goes wrong.

Solus is an independent desktop Linux distribution that is not based on Debian, Red Hat or Arch. It has its own package manager called eopkg and follows a curated rolling release model, which means software is updated regularly once it has been tested. Solus is mostly used on desktops and laptops, so this guide is aimed at people who use it to build and test websites locally.

Check which PHP version you have now

Run the following command to see the installed PHP version. If you are checking a site that is already online, our free PHP version checker will tell you which version the live server is running.

php -v

To see which PHP version is currently available in the Solus repository, and whether you have it installed, run:

eopkg info php

Install or update PHP with eopkg

The Solus repository offers a single, current PHP branch that is updated along with the rest of the system. To get the newest version, first update the repository index and then upgrade all of your installed packages:

sudo eopkg update-repo sudo eopkg upgrade

If PHP is not installed yet, install it with the following command. You can search for other PHP-related packages, such as Composer or a database server, with eopkg search php.

sudo eopkg install php

Configure PHP on a stateless system

Solus is a stateless operating system, which means the default configuration files that come with packages are kept away from /etc, usually under /usr/share/defaults. Your own changes go in /etc, where they are never overwritten by an update. If /etc/php/php.ini does not exist, you can find the default file that PHP is loading, and any extra configuration files it reads, with this command:

php --ini

Copy the default file into /etc/php/ and make your changes there, such as raising the memory limit or turning on extensions that your website needs.

Use the built-in development server

For local development you do not need to set up a full web server. PHP includes a simple web server that you can start from the folder that holds your website. Run the command below and open http://localhost:8000 in your browser:

php -S localhost:8000

If you need a setup that is closer to a real hosting environment, the Solus repository also includes Apache, Nginx and MariaDB. After each PHP update, restart whichever of these services you use so that they load the new version.

Testing against other PHP versions

Because Solus only offers one PHP branch at a time, it can be hard to test your code against the exact version your hosting provider uses. Running PHP inside a container with a tool such as Docker or Podman, both of which are available on Solus, lets you choose any PHP version you like without affecting the rest of your system. Our guide on testing your website on a newer version of PHP explains what to check.

Are you still stuck?

If your site shows errors after the upgrade, our guide to common PHP errors after upgrading explains the usual causes. It may also be time to call in a professional to assist, so check out our listings of PHP developers that can help upgrade or maintain your website.

Back to Updating PHP manually on Linux systems
Article last updated: 24th October, 2026