Archive for July, 2007

Tip On Installing GD library for PHP with YUM

tom on July 9th, 2007

This may seem extremely trivial for many people out there.. but all it takes is a forgetful server admin.

I had an old box that needed reloading, so I had to reinstall the GD library for php using YUM.

# yum install php-gd

Is all it takes to install gd for php. I’ve forgotten the php- part so I’ve tried installing gd-devel, gd-progs and other crap I didn’t need… it’s so simple sometimes.

Post a comment | Comments Off

mail loops back to me (MX problem?) Local configuration error

tom on July 3rd, 2007

Although this is a frequently asked question which has many answers, I thought it should be addressed.

If you are not receiving mail from your server, grep through all the log files in your /var/spool/mail mailboxes.

# grep “MX” root

for example will output if you have had any of these errors reported back to root. (This only applies if root is receiving the mail. replace root with another username).

The solution to this problem is configuring sendmail properly.

For (Sendmail version 8.11 and up):

1. Add the line server.yourdomain.com to /etc/mail/local-host-names
2. Send the Sendmail daemon SIGHUP termination signal:

#kill -HUP `head -1 /var/run/sendmail.pid`

If you use sendmail 8.11 or before you should upgrade, but here is the fix:
1. Add the line server.yourdomain.com to /etc/mail/sendmail.cw
2. Send the Sendmail daemon SIGHUP termination signal as before:

#kill -HUP `head -1 /var/run/sendmail.pid`

If this doesn’t work then make sure the use_cw_file option is on in your config.

Post a comment | Comments Off