Guide · Shared hosting customers, agencies
Shared hosting
Contents
What you control and what the provider controls#
On shared hosting you cannot upgrade the PHP runtime yourself. You can, however:
- see which version each of your sites uses,
- choose a different PHP branch, if the panel offers it,
- ask for written confirmation of the package and the restart: see the ready-made message.
1. Which version each site uses#
- cPanel: “MultiPHP Manager” (version per domain) or “Select PHP Version” on CloudLinux.
- Plesk: Websites & Domains → [domain] → PHP Settings.
- DirectAdmin: PHP Version Selector, if enabled.
- From within the application: in WordPress, Tools → Site Health → Info → Server.
For exact confirmation via the web, use the temporary file from step 5, via File Manager if you do not have SSH, and delete it immediately afterwards. SSH on a shared hosting account usually shows only the CLI, which may differ.
2. Switching version is not automatically a fix#
If you move a site, e.g. from PHP 8.1 to 8.3, in the panel, it will be fixed only if the provider’s 8.3 package contains the fix and the processes have been restarted. Changing branch is also a compatibility change: test on a copy of the site first.
3. Why .user.ini and ini_set() are not enough#
4. What you can do without server access#
- Update the application (CMS, plugins). This does not fix PHP2Shell, but it closes other gaps.
- Delete forgotten installations and test sites on the account.
- Keep backups off the server.
- Check File Manager for new, unknown
.phpfiles in uploads folders. - Change admin and FTP/SSH passwords if there is any suspicion.
For agencies managing many clients#
Read-only: changes nothing
If you have SSH on many accounts, record in a single file, per site, the PHP version serving the web (using the step 5 method) and the provider’s reply. This avoids “we thought the provider had done it”.
Main source: PHP project