Web Hosting Talk







View Full Version : Apache not restarting


RandallKent
03-15-2003, 12:46 AM
Hello,

For some reason apache stoped responding today. Below is what SIM emails me

Mar 14 23:30:24 ns1 httpd: Processing config file: /etc/httpd/conf/site97/ssi
Mar 14 23:30:24 ns1 httpd: Processing config file: /etc/httpd/conf/site97/weblogs
Mar 14 23:30:24 ns1 httpd: Processing config file: /etc/httpd/conf/virtual/site98
Mar 14 23:30:24 ns1 httpd: Processing config directory: /etc/httpd/conf/site98
Mar 14 23:30:24 ns1 httpd: Processing config file: /etc/httpd/conf/site98/cgi
Mar 14 23:30:24 ns1 httpd: Processing config file: /etc/httpd/conf/site98/sqmail
Mar 14 23:30:24 ns1 httpd: Processing config file: /etc/httpd/conf/site98/ssi
Mar 14 23:30:24 ns1 httpd: Processing config file: /etc/httpd/conf/site98/weblogs
Mar 14 23:30:24 ns1 httpd: Processing config file: /etc/httpd/conf/virtual/site99
Mar 14 23:30:25 ns1 httpd: Processing config directory: /etc/httpd/conf/site99
Mar 14 23:30:25 ns1 httpd: Processing config file: /etc/httpd/conf/site99/cgi
Mar 14 23:30:25 ns1 httpd: Processing config file: /etc/httpd/conf/site99/sqmail
Mar 14 23:30:25 ns1 httpd: Processing config file: /etc/httpd/conf/site99/ssi
Mar 14 23:30:25 ns1 httpd: Processing config file: /etc/httpd/conf/site99/weblogs
Mar 14 23:30:25 ns1 httpd: httpd startup failed

edit: I some times get this when starting apache
[root@ns1 conf]# [Sat Mar 15 00:00:01 2003] [error] Can't locate strict.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache.pm line 3.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache.pm line 3.
Compilation failed in require at (eval 1) line 3.




Any thoughts? If you need more info, just ask :)

Thanks in advance :)


Randy

sethgarnar
03-15-2003, 07:33 PM
You are running mod_perl correct? If you updated RedHat with new perl vers that could have broken it.

UH-Matt
03-15-2003, 09:41 PM
Did you use a hack to mount perl to your virtual sites?

If you did then it looks like something went wrong and perl has been deleted. This happened to us once. We fixed it by copying the perl directory from another server over.

Check your perl directories and see if they are empty.

RogelioH
03-15-2003, 10:07 PM
That also happened to us.

kic
03-16-2003, 12:04 AM
empty perl directories resulting from the mount --bind hack alot of people use with Ensim? :D

Sometimes happens when someone installs perldesk/perlbill, and needs alot of the system perl modules that just don't get copied over to the virtual accounts, so you use mount --bind.

if you delete the dir though, then you could be deleting your system perl module directory!

That, my friend, would suck :)

So yeah, like matt said, check your perl dirs and see if they're empty.

-Robert

RandallKent
03-16-2003, 12:55 AM
Hey guys,

Thanks for your replies. We were having problems with majordomo on some account, because some perl .pm's weren't being added to some accounts. To fix that I copied them to their respected placed from the filesystemtemplate directory. That fixed things :-/.
As a temp fix to just get apache started I copied the required .pm's to the defined directories. That was dandy, I got apache to start, but it's not executing any user conf files, nor can ensim see any conf files. There are some more .pm's that ensim can't find. Is it safe to just copy all of these from the filesystemtemplate directory?



sethgarnar,

We are running mod_perl, but did not update redhat :-/


UH-Matt,

We did use that hack, and I agree that caused it. What perl dirs are you talking about? /usr/lib/perl5? Would it be safe to just "cp /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/perl5/* usr/lib/perl5/" or are they different?


kic,

what directory are you talking about?


I am a complete newb when it comes to perl, if you can't tell :).

Thanks in advance every one :)


Randy

RandallKent
03-16-2003, 09:12 PM
Hey guys,

Can I do a "cp -r /home/virtual/FILESYSTEMTEMPLATE/siteinfo/usr/lib/perl5/* /usr/lib/perl5/" ? Or is there somthing that can harm?

Thanks :)

edit: typo

Randy