Category Archives: System Administration

Server Maintenance – Diagnostic

DNS Diagnostic whois (simply displays the NS servers for the domain) host -v domain.com To query NS servers: dig plancake.com displays info about A records dig plancake.com MX displays info about MX records dig @ns.123-reg.co.uk plancake.com MX to query a … Continue reading

Posted in DNS, System Maintenance | Leave a comment

LAMP Backup Script

#!/bin/bash # # my_backup.sh V1.0 # # An useful script that performs a variety of operations in order to backup different data. # It’s a good starting point for your bespoke one # Creating all the definitions datestamp=$(date +’%Y%m%d%H%M%S’) tarname=my_backup-$datestamp”.tgz” … Continue reading

Posted in LAMP Server Setup, System Maintenance | Leave a comment

SELinux

A good resource is: http://www.crypt.gen.nz/selinux/faq.html There, the most important thing is this. It is important that server daemons are started within the correct context, if they are not then they will probably not run properly. For Fedora and RedHat Enterprise … Continue reading

Posted in LAMP Server Setup, Redhat / CentOS, Security | Leave a comment

Server: Setting a Firewall With Iptables

Copy the file iptables.sh in the directory /etc/init.d with these rules (but obviously you need to customize them). Make the file executable. Assuming the current run level is the second one:ln -s /etc/init.d/iptables.sh /etc/rc2.d/S97iptables Actually you should link the script … Continue reading

Posted in LAMP Server Setup, Linux, Security, System Maintenance, Web Dev Security | Leave a comment

VPS – How To Choose The Best Offer / Provider

The result of my long and accurate selection says the best one is: Webhosting.uk.com. Then I joint them and I’m very happy. A very good value for money! Here is a checklist that will help you in choosing the best … Continue reading

Posted in Checklist, LAMP Server Setup, Web Development, Web Service | Tagged | Leave a comment

CentOS: Firewall & LAMP Installation

There’s an iptables entry that doesn’t allow connection to the web server from an external PC. To remove it, you need to launch iptables with flags similar to these ones: iptables -D RH-Firewall-1-INPUT 10 Basically you need to remove the … Continue reading

Posted in LAMP Server Setup, Redhat / CentOS, Security | Leave a comment

Semi-Automatic Backup For Single Files

The backup file will be stored in the directory /var/dobackup-pool. The comment will be stored in the same directory; the filename will be the one of the backuped file plus the postfix ‘comment’. Its filename (once stored) will the the … Continue reading

Posted in System Maintenance | Leave a comment

Open Source Server Monitoring Software

MRTG

Posted in System Maintenance | Leave a comment

File Server With Samba

After installing and running the server, it’s time to create the users and edit the configuration file (and then restart the server).

Posted in LAN, Redhat / CentOS | Leave a comment