Is WHM showing wrong disk usage for any accounts or the corresponding packages ? Usually when this issue pops up, we run the following command via back-end :
Did this give rise to another error ? Something like,
Reading package package_name
edquota: Quota write failed (id 507): Invalid argument
Fix this issue by running the following command :
# /sbin/quotacheck -vguma
-v :- quotacheck reports its operation as it progresses.
-g :- Only group quotas listed in /etc/mtab or on the filesystems specified are to be checked
-u :- Only user quotas listed in /etc/mtab or on the filesystems specified are to be checked. This is the default action
-m :- Don’t try to remount filesystem read-only
-a :- Check all mounted non-NFS filesystems in /etc/mtab
Once the above one is completed, run
We might decide to disable CGI on the server because of the consequences that weak CGI scripts can have on our server security.
If any vulnerable holes are found and the hacker uploads and runs a CGI script, they can get even root access to the server.
Well then, how to disable this in a cPanel box running on Apache web-server ?
You can turn off ExecCGI by unchecking the following via WHM :
Service Configuration > Apache Configuration > Global Configuration > untick ExecCGI
But even with this configuration in running state, your normal users can enable it via
.htaccess file by passing ExecCGI with ‘Options‘ directive ( which you don’t disable as users need it)
So to make sure your users do not run cgi scripts, you can take out CGI privilege by modifying the already existing accounts created in the server.
Home » Account Functions » Modify an Account
When this is in-effect, the following gets added to the VirtualHost section of the account :
Options -ExecCGI -Includes
RemoveHandler cgi-script .cgi .pl .plx .ppl .perl
When you open your webpage, are you getting the message that “Zend Optimizer not installed“, when you are pretty sure that it is installed in your server ? You are also sure that nothing has changed in the server and you get this message all of a sudden.
This file was encoded by the Zend Encoder / Zend SafeGuard Suite. In order to run it, please install the freely available Zend Optimizer, version xx.xx or later."
You can verify it from the result of #
php -v, if zend optimizer is installed, you will get a result something like this :
“with Zend Optimizer vxx.xx, Copyright (c) 1998-2009, by Zend Technologies”
Even with this result, if you are getting an error that shows optimizer is not installed, then there is an issue with your codes. You might look at the particular PHP file and might see enormous codes. More likely the domain is compromised. You will need to clean up the site / restore the domain from a clean backup.