Apache mods & other web server info missing in Nodeworx

Yesterday I installed mod_security with a lot of rules. I think there might also have been an Iworx update the same day. Today I’m seeing new problems such as a broken Bayes link in Squirrelmail, and other errors (below). So I decided to disable mod_security for starters but instead of using httpd.conf I disabled the mod in Nodeworx.

This caused all modules to disappear from the Web Server page along with Apache Server Options. I know I didn’t accidentally nix all mods because mod_security was properly disabled in httpd.conf and the file is intact. Everything looks ok in httpd.conf but Nodeworx isn’t seeing it.

If I restart iworx I see a new error…

Stopping InterWorx-web: [ OK ]
Stopping InterWorx-db: [ OK ]
Starting InterWorx-db: [ OK ]
Starting InterWorx-web: [ OK ]
/bin/echo: write error: Operation not permitted
/bin/echo: write error: Operation not permitted
/bin/echo: write error: Operation not permitted
/bin/echo: write error: Operation not permitted
Binding IP Aliases: [ OK ]

I’m seeing other problems but not sure how and if they’re related.

freshclam now has this error (manually or cron)

[SIZE=2]/etc/cron.daily/freshclam:
ERROR: Clamd was NOT notified: Can’t find or parse configuration file /etc/clamd.conf[/SIZE]

I thought I had a clamd.conf file but I don’t now.

And these errors are new…

[SIZE=2]sh: /usr/bin/logresolvemerge.pl: /usr/bin/perl
: bad interpreter: No such file or directory
sh: /usr/bin/logresolvemerge.pl: /usr/bin/perl
: bad interpreter: No such file or directory
sh: /usr/bin/logresolvemerge.pl: /usr/bin/perl
: bad interpreter: No such file or directory
sh: /usr/bin/logresolvemerge.pl: /usr/bin/perl
: bad interpreter: No such file or directory
sh: /usr/bin/logresolvemerge.pl: /usr/bin/perl
: bad interpreter: No such file or directory
sh: /usr/bin/logresolvemerge.pl: /usr/bin/perl
: bad interpreter: No such file or directory
sh: /usr/bin/logresolvemerge.pl: /usr/bin/perl
: bad interpreter: No such file or directory[/SIZE]

I’ve never seen mod_security make this kind of mess. Is this what happened?

Thanks for any help.

I don’t think I’ll be able to solve everything in one post, but we can at least get the ball rolling :).

Typically, when InterWorx-CP is not seeing the Apache Modules or configuration values, this is indicative of incorrect permissions on the /etc/httpd/conf/httpd.conf file. This file should be chmodded 644 and owned/grouped root/iworx.

Try checking the permissions and changing if they need to be and see if that helps a little bit.

–Dustin

Hi Dustin,

httpd.conf had correct ownership but not permission; 644 fixed the Nodeworx display. I’m keeping mods security and bw disabled for now. Those two I added just before trouble started.

Thanks for any other suggestions.

Btw, this reminds me of something else. On the IP management page the server IP (venet0:0) is shared and has a total of six vhosts. But Nodeworx is showing it as unused. This may have occured after customizing Apache a bit to load a specific vhost as the default, although I’m not sure that’s the cause. Which file can I check for proper display for IPs and their users?

In general, iworx will get the IP domain usage on the IP management page from the output of the command

httpd -t -D DUMP_VHOSTS

If everything seems normal with that, a support ticket may be in order.

I’m not sure what to say about the clamd.conf file disappearing or what is apparently /usr/bin/perl disappearing? I can’t think of a good reason for those things to be happening.

Paul

All virtual hosts accounted for. I’ll start a ticket.

On the missing clamd.conf I can only assume it never was there. I’ll reinstall clam.

Thanks!