Outsource Support Blog
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 …
Restrict FTP access by IP
You can restrict FTP access by IP through a .ftpaccess file. # # Simple .ftpaccess file to control which IPs # can access this directory structure # Allow 212.32.5.0/26 Allow 158.152.0.0/16 DenyAll # # end # If this method doesn’t work you can also use iptables. However, this is only a valid option if you …
Hello World test script
CGI-PERL Hello World #!/usr/local/bin/perl print “Content-type: text/htmlnn”; print “Hello, world from Server Sitters!n”; ASP Hello World <HTML> <HEAD> <Title>Server Sitters Hello World! ASP Example</title> </HEAD> <BODY background=”” bgColor=#ffffff> <P>From all of the Server Sitter’s Staff we would like to say,</P> <h2> <% Response.Write (“Hello World!”) %> </h2> </BODY> </HTML> PHP Hello World <HTML> <HEAD> <Title>Server …
- 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 (35)
- Security (37)
- Sendmail (6)
- Spam (5)
- Thrive (1)
- VPS (7)
- Webmail (3)
- WHMCS (1)
- Windows Servers (9)
- Wordpress (7)
