[LON-CAPA-admin] httpd restart problem

Guy Albertelli II guy at albertelli.com
Thu May 25 12:09:03 EDT 2006


Hi All,

(I'm partially posting this so I can have a quick succicent email to
point people to for the future)


> We had a power outage this week, caused by a crane hitting a power 
> line.  On restarting the computer I am getting an error message of: 
> Starting httpd: /etc/rc.d/init.d/functions: line 148:/usr/sbin/httpd:No 
> such file or directory. 
> 
> Can you give me some direction to correct this problem?


1. you will need to reinstall Apache.

As root do:

rpm -e --nodeps apache
yum install apache
cp /etc/httpd/conf/httpd.conf.rpmsave /etc/httpd/conf/httpd.conf
/etc/init.d/httpd start


2. To prevent this happening in the future:

The quick summary of my email from April 
(http://mail.lon-capa.org/pipermail/lon-capa-admin/2006-April/001343.html)
is:

Edit the file
/usr/lib/perl5/vendor_perl/5.8.6/Date/Manip.pm

And change:
---------------
# Determine if we're doing taint checking
$Date::Manip::NoTaint = eval { local $^W; unlink "$^X$^T"; 1 };
---------------

To:
---------------
# Determine if we're doing taint checking
$Date::Manip::NoTaint = eval { local $^W=0; eval("#" . substr($^X, 0, 0)); 1 };
---------------


3. (optional) Curse Fedora for shipping an alpha release of Date::Manip.

-- 
guy at albertelli.com   0-7-1-8-27,137



More information about the LON-CAPA-admin mailing list