Jump to content

View sites PHP version

Go to solution Solved by leisegang,

Recommended Posts

Is there a way or place in CWP i can view a list of all accounts and what PHP version they are using,
i have a few/several sites that are PHP7.4 now and i dont want to open every site in the control panel and change the site to PHP8.3

Also i cannot upgrade ALL sites to php 8.3 because they dont support it yet.

If needed how can i write a plugin to make it happen`?

Link to comment
Share on other sites

  • Solution

This is what i came up with:

Search for PHP 7.4

grep -r "74" /home/*/.conf/webservers/

Search for PHP 8.2

grep -r "82" /home/*/.conf/webservers/

Displaying all versions

grep -r "php-fpm_ver" /home/*/.conf/webservers/


I did not find that file/folder in all accounts. I dont know why

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...