Control Web Panel
WebPanel => Installation => Topic started by: Joe@Nerdster on October 07, 2016, 01:57:00 AM
-
Hi All,
Is there a command that can be run from the shell to determine what version of CWP is currently running on a server?
Thanks in Advance
Joe
-
I'm not sure about doing it with Shell, But I know you can login with any CWP user and scroll to bottom-right side and see the current version.
-
Hello, no. You can check the CWP version in the panel only.
-
You can view the version by checking the file /usr/local/cwpsrv/htdocs/resources/admin/include/version.php
[root@server]# cat /usr/local/cwpsrv/htdocs/resources/admin/include/version.php
<?php
$webpanel_version = "0.9.8.153";
?>
If you just want version number
grep version /usr/local/cwpsrv/htdocs/resources/admin/include/version.php| awk '{print $NF}'| tr -d '"|;'
Example Output:
[root@server]# grep version /usr/local/cwpsrv/htdocs/resources/admin/include/version.php| awk '{print $NF}'| tr -d '"|;'
0.9.8.153
This may or may not work in future releases.