cPanel

Fight the Malware with Custom ClamAV to on cPanel Servers

10 March 2018

Installing ClamAV via Command Line (SSH) This command tells the system that we want ClamAV to be listed as installed by the local RPM system: /scripts/update_local_rpm_versions –edit target_settings.clamav installed This command is the one responsible for installing the ClamAV RPM on your server: /scripts/check_cpanel_rpms –fix –targets=clamav Creating Symbolic Links If you need manually scan or […]

Apache Error: “semget: No space left on device”

5 July 2015

Apache Error: “semget: No space left on device” If Apache fails, and will not successfully start again, check the error log. If you see an error similar to the following, it could indicate that your server has run out of semaphores. semget: No space left on device To see how many semaphores are being used, SSH to […]

Bad Bot Blocker

16 August 2014

Bad Bot Blocker 223 Apache htaccess rules to block bad bots. Bad bots are defined as: E-mail harvesters Content scrapers Spam bots Vulnerability scanners Aggressive bots that provide little value Bots linked to viruses or malware Government surveillance bots Russian search engine Yandex Chinese search engine Baidu Yandex/Baidu Unless your website is written in Russian […]

Strong Ciphers for Apache, nginx and Lighttpd

4 July 2014

Strong Ciphers for Apache, nginx and Lighttpd Why? The above ciphers are Copy Pastable in your nginx, Lighttpd or Apache config. These provide Strong SSL Security for all modern browsers, plus you get an A+ on the SSL Labs Test. In short, they set a strong Forward Secrecy enabled ciphersuite, they disable SSLv2 and SSLv3, add […]

Softaculous No longer any icons in cpanel

3 July 2014

Softaculous Top Apps In the cPanel category for Softaculous – the top 10 (or whatever) icons are missing. It only has a link to “Auto Installer” where previously it showed 10 or so script icons. This issue sometimes occurs when cPanel is updated and the cPanel theme files are replaced. But the CRON fixes the […]

Subfolder to Subdomain with .htaccess

10 September 2013

Convert Subfolder to Subdomain with .htaccess For Example, if you have your url is “http://domain.com/sexy/” and “http://domain.com/files” but you want to convert them all to subdomain too. such as “http://sexy.domain.com” and “http://files.domain.com”. The easiest way to convert folder to subdomain is to use .htaccess, Reconfigured your ServerAlias in Apache Virtual host and add a wildcard A […]

Allow pingdom IP’s in CSF on cPanel / WHM

29 August 2013

Need to quickly add the Pingdom IP’s to your CSF.allow file? wget –quiet -O- https://my.pingdom.com/probes/feed | \ grep “pingdom:ip” | \ sed -e ‘s|||’ >> /etc/csf/csf.allow sleep 5 csf -r What it does: Fetches the latest probing server IP’s from Pingdom Greps the output of the ‘pingdom:ip’ fields Prints the contents into the csf.allow file […]