If you are getting error 500 when trying to access CWP that means that for some reason your CWP automatic updates don't work

Example Error message:

PHP Fatal error: 
The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
 in Unknown on line 0

The solution is to manually update CWP from the bash shell.

cd /usr/local/cwpsrv/htdocs
chattr -i -R /usr/local/cwpsrv/htdocs/admin
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.1160.zip
unzip -o -q cwp-el7-0.9.8.1160.zip
rm -f cwp-el7-0.9.8.1160.zip

cd /usr/local/cwpsrv/var/services/
wget static.cdn-cwp.com/files/cwp/el7/cwp-services.zip
unzip -o -q cwp-services.zip
rm -f cwp-services.zip

Don't forget to change the version from this example 0.9.8.1160 to the latest version which you can find on this link:

https://control-webpanel.com/changelog

Make sure that you check after this if your automatic updates work.