Archive for the ‘Apache server’ Category

Services Configuration Tool to Start / Stop System Services

Saturday, August 28, 2010 21:34 No Comments

Your Debian / Ubuntu Linux box security depends upon access to system services (one of many aspects). For example, you may need to provide a web server (Apache service) to serve web pages. However, if you do not need use a service, you should always turn off all unused services to avoid exploits.
Traditionally, Debian provided [...]

This was posted under category: Apache server, How to, Knowledge, Tutorials Tags: ,

Shell Script To Auto Restart Apache HTTPD

Saturday, August 28, 2010 21:23 No Comments

Here is a simple shell script tested on CentOS / RHEL / Fedora / Debian / Ubuntu Linux. Should work under any other UNIX liker operating system. It will check for httpd pid using pgrep command
Pgrep command
pgrep looks through the currently running processes and lists the process IDs which matches the selection criteria to screen. [...]

This was posted under category: Apache server, How to, Knowledge, MYSQL, Tutorials Tags: , ,

Install monit under Debian or Ubuntu Linux

Saturday, August 28, 2010 21:16 No Comments

When you cannot monitor your server for service availability, it is better to take help of automated monitor and restart utility. Last 4 days I was away from my server as I was enjoying my vacation. During this time due to load my lighttpd webserver died but it was restarted automatically within 2 minutes. I [...]

This was posted under category: Apache server, Knowledge, Linux system, MYSQL, Tutorials Tags:

Update IP addresses at dynamic DNS services on Ubuntu

Saturday, August 28, 2010 20:47 No Comments

If you are using zoneedit.com or dyndns.org for your DNS service so that you can access your server using a URL, then you might have to update your DNS record at the service periodically whenever the IP address of your computer changes.Now here is simple solution for this ddclient.Update IP addresses at dynamic DNS services.A [...]

This was posted under category: Apache server, Knowledge, Linux system, Tutorials Tags: , ,

Using Cron and SCP for Backups

Wednesday, August 18, 2010 18:59 No Comments

This document will explain the steps required to use scp in cron. This is generally useful to do automated backups on Linux and other nix variations.
1. Generate a private/public key pair
Simple command to do this:

ssh-keygen -t rsa

Leave the passphrase empty so that cron can use it [...]

This was posted under category: Apache server, How to, Knowledge, Tutorials Tags: , ,

Load Balance Server on Ubuntu system

Wednesday, August 18, 2010 18:29 No Comments

Linux Virtual Server (LVS) is a kernel module that allows one to set up machines as load balancing servers. There are many tutorials on how to get it to work. However, when I tried all those tutorials, for some reason or another it would not work. I messed up many things on my server without [...]

This was posted under category: Apache server, Linux system Tags: , , ,

Backups with rSync

Saturday, July 17, 2010 17:52 No Comments

RSync is a useful tool.  It facilitates directory replication across servers.   It will compare a source directory and a target directory and ’sync’ them up.   It is implemented to run quickly and to use minimal bandwidth.
The syntax goes something like this:
EXCLUDE=” –exclude *.tmp \
–exclude *.temp”

rsync –archive -vv –rsh=ssh $EXCLUDE $USER@$HOST:/etc/ $BACKUPPATH/$HOST/etc

This code will [...]

This was posted under category: Apache server, CentOS 5, How to, Knowledge Tags: