Change the PHP version
Applications (WordPress, PrestaShop, Laravel) require a compatible PHP version. On HolyCloud shared hosting, you change the version per domain or per folder from the panel, without compiling PHP yourself.
Prerequisites
- Panel access (cPanel or DirectAdmin)
- Required version for your CMS (e.g. WordPress 6.x → PHP 8.1 minimum)
- Site backup before major change (7.x → 8.x)
Check the current version
Panel method
cPanel → Select PHP Version or MultiPHP Manager: active version is shown per domain.
phpinfo file method
- File Manager →
public_html. - Create
phpinfo.php:
<?php phpinfo();
- Open
https://votredomaine.fr/phpinfo.php— read the PHP Version line. - Delete the file immediately after testing (information disclosure risk).
Change version (cPanel — MultiPHP Manager)
- Client area → panel access.
- Software → MultiPHP Manager.
- Check the target domain.
- PHP Version dropdown: choose 8.2 or 8.3 (as available).
- Apply.
For a specific subfolder: MultiPHP INI Editor → Basic or Editor mode per domain, or use a .user.ini file (see below).
Required PHP extensions
Select PHP Version (alternative interface):
- Select the version.
- Enable extensions:
- mysqli, pdo_mysql
- curl, openssl, mbstring, json, xml
- zip, gd or imagick
- intl (recommended for WordPress)
- Save.
WordPress: Site Health reports missing extensions.
Common INI settings
MultiPHP INI Editor → domain → Basic Mode:
| Parameter | Indicative value (shared) |
|---|---|
| ----------- | ------------------------------- |
memory_limit |
256M (per plan) |
upload_max_filesize |
64M |
post_max_size |
64M |
max_execution_time |
60 |
.user.ini at site root (if allowed):
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 120
.user.ini changes may take 5 minutes to apply.
DirectAdmin (summary)
- Account Manager → PHP Settings or Select PHP version.
- Choose version for the domain.
- Enable extensions in the same interface.
After the change
- Reload the site and WordPress admin.
- Check logs: panel → Errors / Metrics → Errors.
- On fatal error: revert to previous version in MultiPHP Manager.
CLI test (if Terminal is enabled on the plan):
php -v
php -m | grep -i mysqli
PHP 8.x compatibility
- Older plugins may produce warnings or
TypeError. - Update themes/plugins before moving to 8.3.
mysql_*removed long ago — use mysqli or PDO.
Troubleshooting
| ---------- | -------- |
|---|---|
| 500 after change | Missing extensions; cPanel Errors logs |
| Version unchanged | OPcache — wait 5 min; conflicting .user.ini |
Need help?
Provide the domain, desired version, CMS, and exact error from the panel Errors section.