Posted by: SiiN on: September 29, 2007
rsync -av rsync://rsync.cpanel.net/scripts/ /scripts/
Posted by: SiiN on: September 25, 2007
afilename=somefile.ext;
(echo “$afilename is attached” ; cat $afilename | uuencode $afilename) | mail -s “`echo $afilename`” youraddress@yourserver.com
Posted by: SiiN on: September 25, 2007
# redirect traffic coming in on port 26 to port 25
/sbin/iptables -t nat -I PREROUTING -p tcp –dport 26 -j REDIRECT –to-port 25
# make it so that this command runs on server boot up.
if ! grep -qai 26 /etc/rc.local; then
echo ‘/sbin/iptables -t nat -I PREROUTING -p tcp –dport 26 -j REDIRECT [...]
Posted by: SiiN on: September 24, 2007
You can order OpenSolaris Starter Kit for free at http://get.opensolaris.org/
Posted by: SiiN on: September 11, 2007
You can check whether two files are the same file with two hard links by:
$ ls -li file1 file2
Posted by: SiiN on: September 10, 2007
I had waring messages poping up on rebooting Ubuntu after installing Debian. It was demanding an fsck on the drive I formated from debian during installation. The error message was something related to UUID.
I have fixed it by adding the new UUID of the formated drive in /etc/fstab
You can find uuid using
sudo [...]
Posted by: SiiN on: September 6, 2007
Note : This document comes without warranty of any kind!
Installing Apache web server (1.3.x) with mod_ssl and PHP enabled.
===================================================
1 Get the Source
We need the following software: openssl, apache (1.3.x), mod_ssl and PHP. Down load them to /usr/src
cd /usr/src
wget http://www.openssl.org/source/openssl-0.9.7c.tar.gz
wget http://www.apache.de/dist/httpd/apache_1.3.29.tar.gz
wget http://www.modssl.org/source/mod_ssl-2.8.16-1.3.29.tar.gz
Now go to http://www.php.net and download the latest PHP version to the same [...]
Posted by: SiiN on: September 6, 2007
A very useful tutorial on “make”
http://www.eng.hawaii.edu/Tutor/Make/1-1.html
Posted by: SiiN on: September 5, 2007
Monit is a utility for managing and monitoring processes, files, directories and devices on a Unix system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. E.g. monit can start a process if it does not run, restart a process if it does not respond and stop [...]
Posted by: SiiN on: September 4, 2007
Source: cPAnel FAQ.
—————————
Make sure that you are using Perl 5.8.8 which is recommended with cPanel 11.
Prior to upgrading Perl, it is a good idea to ensure that each module gets carried over to the update Perl version using the “autobundle” CPAN feature. You will need to execute this command via root in [...]