I’m currently running HestiaCP and I would like to clean up old PHP versions from the server.
1. What’s the proper way to list all installed PHP versions managed by Hestia? 2. I’d like to remove all PHP versions older than 8.0 (e.g., 7.0 to 7.4).
Is v-delete-web-php the recommended method for this, or should I also remove the packages manually with apt?
Also, is there a way to check if a specific version is still in use by any user or domain before removing it?
With v-list-sys-php, you can see the installed versions, but you should first check (or already know) which websites are currently using and require each PHP version. If no service or user is using a given PHP version anymore, you can remove it. The recommended way is to use
v-delete-web-php <version>
which ensures the version is not in use and cleans up all related packages and configuration.
Just wanted to confirm that the cleanup went well:
All PHP versions below 8.0 — including PHP 5.6 and all 7.x — have been successfully removed from HestiaCP.