LAMP How To – Open Source At Work

Only Passion Matters

Entries for the ‘Think Linux’ Category

Advance SVN post-commit hook script for System Administrators

Everyone knows how cool svn post-commit feature is. Instead of using the basic post-commit script provided by svn, we can do alot more with a bit of server side scripting. Here, I like to share a simple script that I wrote to automate the process of updating different server system files using svn post-commit. It [...]

SVN over HTTP

Objective
I want to be able to browse the svn dir from a website like http://zeus.dev/svn.php and at the same time, be able to checkout from the repository via http://zeus.dev/svn/projectname
How

First of all, install mod_dav_svn
Then in the apache config, I am using vhost for example
<VirtualHost *:80>
DocumentRoot /home/data/zeus.dev/apps/
ServerName zeus.dev
# this is for [...]

Implementing SSL Certificates in Apache

Creating a Private Key
To create a private key without triple des encryption, use the following command:
openssl genrsa -out ssl.key 1024

Creating a Certificate Signing Request
To obtain a certificate signed by a certificate authority, you will need to create a Certificate Signing Request (CSR). The purpose is to send the certificate authority enough information to create the [...]

synchronising system clock manually

if there is a need to synchronise the system clock manually, it can be a straight forward thing

service ntpd stop
ntpdate 0.rhel.pool.ntp.org
service ntpd start

some of the files of interest:

/etc/sysconfig/clock
/usr/share/zoneinfo

init: Id “co” respawning too fast: disabled for 5 minutes

If you are getting this message, it means that you are in run level 3 and most likely you dont have the GUI installed. inittab is trying to create too many terminals at a go. Have a look at the /etc/inittab file, and commented off the extra gettys lines.
# Run gettys in standard runlevels
co:2345:respawn:/sbin/agetty xvc0 [...]