Tag Archives: cPanel


[ERROR] /usr/sbin/mysqld: Can’t open file


I got this error while migrating  huge amount of accounts from one cpanel server to  another.

[ERROR] /usr/sbin/mysqld: Can’t open file: ‘./dbname/tablename.frm’ (errno: 24)

errno: 24 means there is too many open files.  There is a mysql variable named “open_files_limit"  which shows how many open files are allowed in mysql by default. We cannot update this valuse using “Set”  command as this variable is a read only variable.

Continue reading


Danger behind cPanel account restore – Shared hosts..be careful!

Today I have been playing with my test cPanel server. I thought to have some look into the reseller settings today and I found a serious anomaly while my works. On now..what it is…

I know very rarely we need the “All Features (warning: total and complete access)” privilege granted for a reseller. Because that privilege will give root level access to the reseller on the server, which is not allowed. So generally no-one with a root level WHM access is not able to create a reseller with all privileges. So it is obvious that anyone with root privilege ( like VPS owners ) can create “all privilege” reseller. Now what happened when we restore such a reseller to a server? What changes does it make compared to a normal user or a reseller without any privilege? So far I couldn’t find any. I couldn’t find any specific messages or difference in restore process for a normal user, reseller without “all” privilege” or with “all” privilege. I could find the following common message only with any of them ( in fact the admins I found don’t worry about the restore messages until they find any specific error while restoration ) Continue reading


Premature end of script headers: wredirect.cgi

If you are getting Internal Server Error while doing /webmail /whm /cpanel , please check the apache error log.

For us it was like the below error

[Tue Oct 08 08:14:44 2013][error][client x.x.x.x] Premature end of script headers: wredirect.cgi
[Tue Oct 08 08:14:44 2013][error][client x.x.x.x] File does not exist: /home/user/public_html/500.shtml

A temporary fix is to disable Suexec from WHM from the drop down at  Home »Service Configuration »Configure PHP and suEXEC and save. But in this case you are compromising the security.

This is actually a known bug  and if you are using cagefs then please do the below steps to fix this permanently

cagefsctl --remount-all
service proxyexecd restart

Continue reading


How to check a website in a remote server before DNS change

In all migrations, we may wish to check the domain’s functionality and fix any errors preset  to make the dns change smoother and perfect. So just thought to add this in our blog too 🙂

Some control panel offer site preview, especially Plesk using which we can take a look on domain  hosted in that domain. But in others like cPanel, Directadmin and those without any control panels, we may need to check this using  local hosts file or by changing the A record on a temporary basis.

Best method is to check websites using your local “hosts” file in your PC / Laptop. Below is the steps using which one can test a website hosted in a remote server without changing the name server.

1.  Locate the hosts file in your computer. Typically it is in one of the following locations:

Windows NT/2000/XP/2003/Vista/7   —     C:\windows\system32\drivers\etc\hosts
Windows 95/98/Me                                         —     C:\windows\hosts

Continue reading


ntVersionCheck : New release v1.1.0

cPanel plugin for finding the outdated applications in the server. Currently the plugin is configured for wordpress and joomla installations.


  • Find all outdated wordpress and joomla applications in the cPanel Server
  • Display the wordpress and joomla versions with color difference for visibility
  • News, Announce the latest news related with application vulnerabilities and plugin updates
  • The installations are grouped by user and reseller wise
  • One click update available for future releases Continue reading

SecurityException in Application.cpp:175: Calling user is not webserver user / SuPHP / cPanel

We were ended-up in this message after running EasyApache on one of our cPanel servers with mod_suphp. If we set the PHP handler to DSO, PHP applications were working fine; but when we try to switch the handler to SuPHP it started showing the above error message with 500 error code.

The actual cause for this error is given in the messsage in fact, which is “Calling user is not webserver user”. As per the security standards of SuPHP, the user invoking SuPHP must be defined in suphp.conf file and should match the user invoking it. So for a cPanel server, it should be call by the HTTP user which is “nobody”. In our case it was set to “apache” even there is no active “apache” user on a cPanel server. I met this error on a latest cPanel build; so I guess this is a bug with their latest EA3. To correct the issue, I set the value of “webserver_user” to “nobody” in /opt/suphp/etc/suphp.conf and restarted apache service.

Continue reading