Outsource Support Blog
Number of connections from an IP
We have seen a huge increase in individual servers/IP’s attempting to flood a server or brute force a particular account. Here’s a great way to check the number of connections being made from each IP that is connected to your server: netstat -an|awk ‘{print $5}’|cut -d “:” -f1|sort|uniq -c|sort -n We will post an automated …
DSM password protect folder
The Alabanza system uses the DSM and a custom control panel. Here’s how to password protect a folder in their system: You cannot password protect specific files, instead you must password protect an entire folder and then any files within it are automatically password protected. For example – here’s your folder structure: /home/user/domain-www the domain-www …
critical_create No space left on device
Recently we attempted to restart apache on a client’s server and we received the following error: critical_create(): semget() failed: No space left on device Although the error hinted at a disk space issue it actually had nothing to do with the available disk space. To resolve this you have two options: 1.) You could reboot …
Restrict SSH access by IP
The best way to restrict SSH access by IP is by using the server’s hosts.allow and hosts.deny file. First open the /etc/hosts.allow file and add the IP’s you would like to allow: Format – one IP per line: SSHD: $IP #Reason Example: SSHD: 1.1.1.1 #Client 1 The hosts.allow file will have to be updated in …
Linux version
Try logging into the server via SSH and then running: cat /etc/issue
IP classes defined
Here’s a simple chart that explains the various IP classes and the difference between /32, /24, /16 77.217.66.0/32 = 77.217.66.0 through 77.217.66.0 [1 IP – Single IP] 77.217.66.0/31 = 77.217.66.0 through 77.217.66.1 [2 IPs] 77.217.66.0/30 = 77.217.66.0 through 77.217.66.3 [4 IPs] 77.217.66.0/29 = 77.217.66.0 through 77.217.66.7 [8 IPs] 77.217.66.0/28 = 77.217.66.0 through 77.217.66.15 [16 IPs] …
Linux set hostname
First login to the server via SSH. Then run: hostname $servername Update the hosts file – Look for the primary IP of the server. Follow the same format and replace the old hostname with the new hostname on the same line as the primary IP. vi /etc/hosts Update your network file with the new hostname: …
Protect /home from prying eyes
Disable directory indexing
The easiest way to disable directory indexing is to update/create a .htaccess. Add the following to a .htaccess file within your primary web folder: Options -Indexes
Cpanel overwrites config files
Cpanel is a great control panel. However, one drawback is that configuration changes and/or customizations are often overwritten after every upgrade. In order to stop cpanel from overwriting your configuration files you must use the following file: vi /etc/cpanelsync.exclude The format for this file is one file per line. i.e. /etc/exim.conf Then save the file …
- Apache (22)
- ASP (1)
- CGI-Perl (1)
- CloudFlare (2)
- Coldfusion (2)
- Cpanel (75)
- CPVLabs (1)
- Customer Service (11)
- DNS (9)
- Domains (1)
- DSM (2)
- Email (17)
- enom (1)
- Exim (13)
- FTP (8)
- Help Desk (2)
- Hosting (60)
- HSphere (7)
- Htaccess (11)
- Joomla (1)
- Linux (88)
- Miscellaneous (14)
- Miva (1)
- MySQL (15)
- Networking (1)
- OpenVZ (1)
- Outsourced Support (58)
- PHP (10)
- Plesk (13)
- Postfix (2)
- Recent News (37)
- Security (37)
- Sendmail (6)
- Spam (5)
- Thrive (1)
- VPS (7)
- Webmail (3)
- WHMCS (1)
- Windows Servers (9)
- Wordpress (7)