February 20, 2008

Recursively chmod directories or files only

Filed under: Server Admin — dh @ 12:53 pm

Great post here:

# recursively chmod directories only
find . -type d -exec chmod 775 {} \;

# recursively chmod files only
find . -type f -exec chmod 664 {} \;

February 6, 2008

Getting php mail() working on fresh CentOS 5 install

Filed under: Server Admin — dh @ 10:49 am

All I had to do was comment out the loopback only restriction and php’s mail() fuction started working great!

vi /etc/mail/

look for:
DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

change it to this:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

remake the file
m4 /etc/mail/ > /etc/mail/

restart sendmail:
service sendmail restart


Great tutorial about the BIND dns server

Filed under: Server Admin — dh @ 10:45 am

Here is a great tutorial about the Bind dns server:

February 1, 2008

Add an IP to CentOS 5

Filed under: Server Admin — dh @ 10:46 am

I need more than one ssl website on a new CentOS 5 machine. Here is how to add another ip address to eth0.