Skip to main content

Posts

Showing posts with the label Server

Disable Partial / All Cron in WHM/Cpanel Server (Except Root)

Cronjobs is somewhat a massive activity and could affect the overall server performance. And so, as administrator, we need to disable some user's cronjobs to relieve the server load. There is a tricky but simple way to disable partial cronjob in WHM/Cpanel based server. Here are the very simple steps : 1. Create a directory /var/spool/cron.disabled # mkdir /var/spool/cron.disabled 2. Move the cronjobs you want to be disabled # mv /var/spool/cron/username /var/spool/cron.disabled 3. Restart http/apache server to take effect # /etc/init.d/httpd restart

How To Find The Source Of Spam Email Malware In Server

Mass mail (spam) is a very common malware in any cPanel/WHM based web server. It always send massive emails like monster and then causes our web server's IP being blocked and so we couldn't send (real) email. The question is : how to find the source of spam email  malware in our web server? Luckily, Linux is built with many useful and powerful tools. We could use cat and grep to seek the malware source. Here are the steps : 1. Find out the users who send mass mail. Command : grep 'cwd=/home' /var/log/exim_mainlog   | awk -F/ '{print $3}' | sort | uniq -c | sort -n -k 1 We will get the list of users who send mass mail in a day, like this : 2. Seek the source script. Command : cat /var/log/exim_mainlog | grep user | grep 'date' Example : cat /var/log/exim_mainlog | grep forumriau | grep ' 2015-12-31 ' We will get the output like this : As shown in the output, we get the malware path ...

How To Activate PHP Selector in RHEL/Centos/CloudLinux Based Server with WHM/cPanel

PHP selector is an awesome feature in RHEL/Centos/CloudLinux based web server. This feature allow user to select their own need of PHP version. Why do people need different version of PHP? Some need old version (5.2), and some need the newest version. Today, there are many web scripts (CMS) exists. Some CMS depend on older version of PHP, and some depend on newer, even newest version of PHP. Because of this trend, PHP Selector created. But for now, this feature is only dedicated for RHEL-based distros. So, if you are running other distros (such as Ubuntu server), this tool isn't available yet. Here are the steps to activate PHP Selector in cPanel : 1. Install cagefs # yum install cagefs 2. Install alt-php # yum groupinstall alt-php 3. Go to WHM, and find CageFS menu. 4. Enable the user you want to be PHP selector active by move from right box (Disabled) to the left box (Enabled).  Then, click Enable CageFS Skeleton . 5. Go to cPanel, and find Select PHP Vers...

How To Fix "Domain Already Exists in Apache Configuration"

If you have a WHM/cPanel based web server and found an error message " Domain Already Exists in Apache Configurations " when you are trying to add an addon or park a domain in cPanel, you don't have to be worry. Here are the very simple steps to fix : 1. Login as shell and execute command : /scripts/killdns domain.com* 2. Next, execute this command : /scripts/updateuserdomains 3. Go to cPanel and try to add an addon / park domain again. The error should be fixed. *) Domain you wanted to be addon / park domain.

How To Easily Connect To SMB / Windows Share Server in Nautilus 3.6 and Above

Since Nautilus 3.6, the Connect To Server feature in Nautilus has been simplified and make it difficult to connect Linux desktop to an Windows share / FTP directories. But there are always another ways and choices in Linux world. All we need to easily connect our Linux desktop to a FTP / Windows share folders / directories is an app called Gigolo . Installing Gigolo is available in the Ubuntu / Debian official repo, just install it by apt : sudo apt-get install gigolo Step by Step 1. Click Connet 2. If you want to connect to a Samba network, select Windows share and enter the IP, the shared folder (or just leave it default), and the username. 3. Enter the password (if asked) and select the option Remember Forever so you don't have to enter the password again in the next time 4. The shared folder will appears, just click it 5. Go to the Nautilus file manager, and you will see the SMB / shared folder i...