Quantcast
Channel: Linux Server | cPanel | WebHosting
Browsing all 16 articles
Browse latest View live

How to Manually Remove a cPanel account

Here is how you remove a cPanel account or remaining parts of cPanel account: 1. Remove the cPanel user account: #userdel -r CPANEL_USERNAME #groupdel GROUPNAME 2. Delete the following file:...

View Article


Disable Mod_Security for an Individual Account

Mod_security is an open source web application firewall module for Apache. Apache 2.x uses mod_security2, while Apache 1.x uses mod_security1. In Apache 1.x, to disable mod_security for a domain, all...

View Article


Add SPF and DKIM Email Authentication Through the Command Line on cPanel Server

To add an SPF record for a single user, use the following command: # /usr/local/cpanel/bin/spf_installer  CPANEL_USER To add SPF records for all the users on a cPanel server, use the following...

View Article

Safe SSH Restart with cPanel Autofixer

Sometimes you are not able to login to your server via SSH because your SSH configuration got messed up, or SSH is running on an unknown port. The cPanel autofixer is designed to kill off the existing...

View Article

Image may be NSFW.
Clik here to view.

List Current PHP handler on a cPanel Server via Command Line and in WHM

To list the current PHP handler in WHM, navigate to: WHM >> Home >> Service Configuration >> Configure PHP and suExec To list the current PHP handler via Command line run the...

View Article


Change the PHP Handler on a cPanel Server in WHM or via Command Line

PHP handler determines how PHP is loaded on the server. PHP handler is what actually loads the PHP libraries so that they can be used for interpretation. Different types of PHP handlers are DSO, suPHP,...

View Article

Databases Showing 0MB in cPanel

Here is how to include the databases in cPanel user’s disk usage calculations. From WHM navigate to: WHM >> Server Configuration >> Tweak Settings >> SQL >> enable  “Include...

View Article

Image may be NSFW.
Clik here to view.

Redirect HTTP to HTTPS using .htaccess file

To redirect all the pages on your site from http to https, simply add the following code to the .htaccess file in the document root of your site: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule...

View Article


Image may be NSFW.
Clik here to view.

Generate a Self-Signed Certificate/CSR with SHA-256 instead of SHA1

The transition from SHA-1 to SHA-2 is coming soon. On November 7th, 2014, Google Chrome will stop displaying the security indicators such as the green padlock and/or green address bar for any...

View Article


Reinstall/Install RVSKin

If you notice any issues with RVSkin in cPanel, you can just try to reinstall them. 1. Uninstall RVSkin: perl /root/rvadmin/uninstall.pl 2. Install RVSkin: rm -rf /root/rvadmin mkdir /root/rvadmin cd...

View Article

Block Access to xmlrpc.php on a cPanel Server

To block access to xmlrpc.php on a cPanel server, you will need to: 1. Edit /etc/httpd/conf/includes/pre_main_global.conf 2. Add the following to the bottom of this include file: <IfModule...

View Article

Image may be NSFW.
Clik here to view.

WHM/cPanel Server Time Doesn’t Sync

If you need to manually sync the server time in WHM/cPanel with the server time run the following commands: rm -f /etc/localtime ln -s /usr/share/zoneinfo/America/New_York /etc/localtime Hope this helps!

View Article

How to clear eximstats database

To clear your eximstats database follow these steps: 1. Login to MySQL: mysql Then run: mysql> use eximstats; mysql> delete from sends; mysql> delete from smtp; mysql> delete from failures;...

View Article


Where are all the inodes being used?

To find out where are all the inodes being used, run: find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n Hope this helps!

View Article

How to Hide Apache Version

To hide Apache version to remote requests, two settings in Apache’s configurations will have to be adjusted ServerTokens and ServerSignature. The Apache server banner can provide too much valuable...

View Article


How to Hide PHP Version

To hide the PHP version to remote requests in order not to disclose undesirable information and to suppress the PHP banner X-Powered-By, locate the php.ini file and the the line containing “expose_php...

View Article
Browsing all 16 articles
Browse latest View live