How to instal the PHP MCrypt + library (libmcrypt) on CentOS 5 server

Solution 1:

seems to me your /etc/httpd/logs is no longer a symlink

ls -lsd /etc/httpd/logs

It should be pointed to

/var/log/httpd

EDIT

seems from your comment it isn't a symlink anymore

mv /etc/httpd/logs /etc/httpd/logs.bak
ln -s /var/log/httpd /etc/httpd/logs
service httpd restart

then try to yum update

Solution 2:

You are seriously messing up your "cPanel" server apache + php by installing these rpm packages. In cPanel, you need to use easyapache to compile apache & php to enable additional modules (everything is handy in the easyapache script and you just need to select the corresponding package). cPanel uses custom apache & php builds for sites and you need to do it in the cPanel way. I assume you removed the exclude list in yum.conf to achieve these installations. To recover your server,

  1. Uninstall the apache & php rpms you installed.
  2. Run eachyapache with necessary modules selected, to bring back apache alive.

You can run the easyapache script from commandline (in a screen will be good)

**/scripts/easyapache**

Or can use the WHM to recompile your apache + php. Also make sure to put back the exclude list in yum.conf to prevent this from happening again.

exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*

For EasyApache docs: http://docs.cpanel.net/twiki/bin/view/EasyApache3/

-$