Koozali.org: home of the SME Server

Web server error

Offline bowhited

  • 2
  • +0/-0
Web server error
« on: September 10, 2012, 05:16:34 PM »
Newbie here, I came in to work this morning to a continuous error message - Cannot load /etc/httpd/modules/mod_env.so into server: /etc/httpd/modules/mod_env.so: cannot open shared object file: no such file or directory.

When I stop the web service the message stops appearing. I then changed directories to /etc/httpd. I can see the modules folder, but it is white letters with red background. I cannot cd to the folder. When I ls -l, it lists the folder but it is shown in red like this: modules -> ../actions/nagios-delete-dumped-config

What went wrong and how do I resolve the issue?

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Web server error
« Reply #1 on: September 10, 2012, 05:43:03 PM »
Here's what I get from ls -l /etc/httpd/ (SME 8.0):
Code: [Select]
total 12
drwxr-xr-x 2 root root 4096 Sep 10 04:02 admin-conf
drwxr-xr-x 3 root root 4096 Sep 10 04:03 conf
drwxr-xr-x 2 root root 4096 Aug  1 15:50 conf.d
lrwxrwxrwx 1 root root   19 Feb 19  2012 logs -> ../../var/log/httpd
lrwxrwxrwx 1 root root   27 Feb 19  2012 modules -> ../../usr/lib/httpd/modules
lrwxrwxrwx 1 root root   13 Feb 19  2012 run -> ../../var/run
lrwxrwxrwx 1 root root   21 May 28 10:10 state -> ../../var/state/httpd

Perhaps if you re-link modules to ../../usr/lib/httpd/modules your web server will start working:

Code: [Select]
cd /etc/httpd
ln -sf ../../usr/lib/httpd/modules modules

(note: if I run the above command without including the "f" argument, I get a red symlink to "modules" inside ../../usr/lib/httpd/modules)

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Web server error
« Reply #2 on: September 10, 2012, 05:44:44 PM »
What went wrong...

Don't know -- possibly a script or command run from the wrong folder?

Offline bowhited

  • 2
  • +0/-0
Re: Web server error
« Reply #3 on: September 10, 2012, 06:08:33 PM »
Re-linking the modules worked! Thank you!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Web server error
« Reply #4 on: September 10, 2012, 09:42:18 PM »
What went wrong ...

Probably something related to installing nagios.