Category Archives: Linux
How to block certain countries from accessing your server with CSF
Sometimes you may get targeted by fraudsters or hackers from a specific country. If you do not expect to ever have legitimate business, or website visitors in those countries, you can block them all together using CSF (ConfigServe Firewall Download here) To do this, once you have CSF installed on your cpanel server, login …
Container Already Locked – OpenVZ
If you have tried to start, restart, or stop a container, and you get this err: [root@server ~]# vzctl stop 104 Container already locked You need to do one or both of these commands: [root@server ~]# rm /vz/lock/104.lck rm: remove regular file `/vz/lock/104.lck’? y And/Or: [root@server ~]# vzctl chkpnt 104 –kill Killing… This will …
How to unmount the backup partition when it’s locked
There is a known issue with cloudlinux running on centOS 5.x where after a backup is made or a restore has been run, the backup partition will lock, and will not allow you to unmount it. The error looks similar to this: [backupmount] Cannot umount: /backup. This mountpoint is still in use and has an …
Move /var/log to a new partition without breaking auto responders – cPanel
If your /var/ partition is full, and you’re having problems tracking down things you can safely delete, something you can do is move the /var/log to a different partition like /home. To do this, you will need to modify a file however otherwise, customers auto responders will break. I’m not sure why this happens, however …
Full root partition and comet files
If you have a full root partition, something you can check is /root/.cpanel/comet. If this folder is large, you can safely clean it up by running the following command that will remove all files in this directory that have not been accessed in more than three days. /usr/local/cpanel/bin/purge_dead_comet_files These folders are created as a part …
How to move a cPanel subdomain Document Root to a new location
If you have a customer that setup a subdomain and they used the default location (/public_html/subdomain/), but they have decided that they want to move that outside of the public_html folder, you need to do the following. Open /var/cpanel/userdata/$USERNAME/$SUB.DOMAIN.COM in your favorite text editor Change the path on the “documentroot” line to the path …
Manually re-install FrontPage Extensions
While virtually nobody supports frontpage anymore, this still comes in hand on older servers where customers refuse to believe that frontpage is buggy, insecure software. On a cPanel server, to reinstall frontpage extensions from the command line, do the following. *** Note this is destructive SSH to the server the customer is on. cd ~theirusername/public_html …
Apache Handlers
Apache handlers allow you to control how Apache manages certain files. If you want Apache to handle application/x-hdf hdf application/vnd.wap.wbxml wbxml image/x-xbitmap xbm image/x-icon ico image/vnd.djvu djvu djv application/x-troff-me me application/perl pl plx ppl perl pm application/x-tcl tcl image/bmp bmp text/x-sql sql image/png png text/x-log log audio/x-realaudio ra application/x-latex latex application/x-director dcr dir dxr …
Using telnet to test mail servers
Here’s a handy cheat sheet for testing mail accounts via telnet. The commands you need to type are in bold text POP3 telnet mail.yourdomain.com 110 Connects to the pop3 server user YourUsernameHere This submits your username to the server pass YourPasswordHere This submits your password to the server list This will list the emails …
How to calculate linux permissions
Have you ever wondered why permissions in linux are typically listed as a 3 or 4 digit number? Here’s why. There are 4 groups of permissions. Special, User, Group, and Other. Special Three special types of permissions are available for executable files and public directories. When these permissions are set, any user who runs that …
- English Support
- 24/7 x 365
- Branded Support
- Reduced Overhead
- Linux Experts
- Friendly Staff