Posted Monday at 06:34 PM3 days i Use the php-fpm selector.Is there a way to list all sites and what PHP version they are using?I have PHP 7, 8.1, 8.2 and 8.3 and want to move all to 8.3 but it takes a lot of time opening all controlpanels and checking.How can i list all sites or versions?
Monday at 06:44 PM3 days Author Solution i just made a module and ran this in the module file:<?php if ( !isset( $include_path ) ) { echo "invalid access"; exit( ); } $phpversion1 = shell_exec("grep php-fpm74 /usr/local/apache/conf.d/vhosts/*"); echo "<h2>PHP Version 7.4</h2><pre>".$phpversion1."</pre>"; echo "<br><br>"; $phpversion2 = shell_exec("grep php-fpm82 /usr/local/apache/conf.d/vhosts/*"); echo "<h2>PHP Version 8.2</h2><pre>".$phpversion2."</pre>"; echo "<br><br>"; $phpversion3 = shell_exec("grep php-fpm83 /usr/local/apache/conf.d/vhosts/*"); echo "<h2>PHP Version 7.3</h2><pre>".$phpversion3."</pre>"; echo "<br><br>"; $phpversion4 = shell_exec("grep php-fpm84 /usr/local/apache/conf.d/vhosts/*"); echo "<h2>PHP Version 8.4</h2><pre>".$phpversion4."</pre>"; echo "<br><br>"; ?>
Create an account or sign in to comment