Genians
A South Korean security company. It explained the update commands for each operating system and how to restart PHP-FPM and Apache.
Genians is a South Korean security company. During PHP2Shell it published, for people who run their own servers, the commands for updating PHP on each operating system (the base software of a server). On Debian and Ubuntu you update with sudo apt update && sudo apt upgrade, and on the RHEL family with sudo dnf update 'php*', and afterwards you must restart PHP-FPM and Apache. Downloading the new version is like buying a new part; restarting is what actually fits the part into the machine.
Watch out These commands update other software on the server as well, not just PHP. Take a backup first, and after updating, check that your site still opens properly. This advice is for VPS or dedicated servers that you manage yourself. On shared rental hosting, customers cannot run commands like these, so following your hosting provider's instructions is enough.
Source: Genians, “PHP remote code execution vulnerability: urgent advisory report” · PHP Group, “Security advisory: Critical remote code execution vulnerabilities, update now” (checked 2026-10-26)