Monthly Archives: January 2008

Install Qmail by copy/paste

Install Qmail by copy/paste Install qmail by copy/paste… I suggest in small blocks at a time Code: #!/bin/sh SERVERNAME=`hostname` cd /usr/local/src/ wget http://qmail.linocomm.net/netqmail-1.06.tar.gz wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch wget http://qmail.org/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.errno.patch # install qmail: umask 022 mkdir -p /package cp … Continue reading

Posted in Uncategorized | Leave a comment

Creating an SSL key, CSR and self-signed cert

cd /etc/pki/tls cd private openssl genrsa -des3 -out `hostname`.key 1024 # password: whatever you want # TO MAKE IT HAVE NO PASSPHRASE (optional): cp `hostname`.key `hostname`.key.orig openssl rsa -in `hostname`.key.orig -out `hostname`.key # MAKE THE CSR cd ../csr openssl req … Continue reading

Posted in Uncategorized | Leave a comment

httpd.conf tricks

AllowOverride All is really helpful when you are the admin of the server and want full control over your site: Code: <Directory /www/modphp> Options FollowSymLinks MultiViews AllowOverride All</Directory> Share This Post On:u=http://www.koopman.me/2008/01/httpdconf-tricks/&title=httpd.conf+tricks” title=”Share ‘httpd.conf tricks’ on BlueDot”>

Posted in Uncategorized | Leave a comment

Automate backup of your web site

Below is a method of backing up your web site document root and MySQL. Assuming this is the only thing on your server you care about, but you could easily extend this to include any set of directories you wish … Continue reading

Posted in Uncategorized | Leave a comment

CVS: recursively add files

Have you ever worked in a CVS module, added a deep tree of directories and files and needed to add them to CVS. If you have, you may have had to go through a painful process of adding one dir … Continue reading

Posted in Uncategorized | Leave a comment

Perl, Extended Find and Replace

Use with caution, this will not make backups: search="searchRegExp" replace="replaceStr" egrep -lri –exclude="Entries" –exclude="*.gif" –exclude="*.WAV" –exclude="*.wav" –exclude="*.zip" "$search" * | xargs perl -pi -e "s/$search/$replace/gi" the “gi” option means globally, case-insensitive, so take the “i” off if you want it … Continue reading

Posted in Uncategorized | Leave a comment

Using XAJAX to autocomplete emails from address book

PostPosted: Sat Sep 10, 2005 6:00 pm Post subject: Reply with quote Imagine that you are supposed to type in an email address into a form. You would typically type an email address that may be stored in your address … Continue reading

Posted in Code | 1 Comment

nusoap WSDL service return array of complex data

I’m just getting the code in the post for now… hopefully I’ll have time to come back and document it for you. I am excluding my config.php on purpose, you’ll need to define you’re own constants in there. <?php require_once(“config.php”);require_once(“nusoap.php”); … Continue reading

Posted in Code | 1 Comment