thehenrys.net

February 20, 2008

Recursively chmod directories or files only

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

Great post here:
http://movabletripe.com/archive/recursively-chmod-directories-only/

# 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/sendmail.mc

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

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

remake the sendmail.cf file
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

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:

http://www.howtoforge.com/traditional_dns_howto

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.

http://www.netadmintools.com/art496.html