apache2 fails

"Hoffmann, Matthias" <[email protected]>
Newsgroups gmane.linux.highavailability.user
Message-ID <3EC985B70510FE48BCC8A77E9B1EF50C70F45F@EXCHANGE2010.worms.schlemmerblock.de>
Hello,

there is a problem with my apache2 resource ->

primitive prim_Apache ocf:heartbeat:apache \
        params configfile="/etc/apache2/apache2.conf" httpd="/usr/sbin/apache2" statusurl="127.0.0.1/server-status" envfiles="/etc/apache2/envvars" \
        op monitor interval="20" timeout="30"

syslog:

ERROR: command failed: /usr/sbin/apache2 -DSTATUS -f /etc/apache2/apache2.conf
Jun 10 09:54:32 visn1 apache[12195]: INFO: apache not running
Jun 10 09:54:32 visn1 apache[12195]: INFO: waiting for apache /etc/apache2/apache2.conf to come up

When I try to manually  "/usr/sbin/apache2 -DSTATUS -f /etc/apache2/apache2.conf" it says

apache2: bad user name ${APACHE_RUN_USER}

Then I exported manually all things that is in /etc/apache2/envvars, then the -DSTATS command works, but apache still not starting in cluster.
thats why i configured envfiles (but it should be default the same anyway?)

Weird thing is, that it DID work before a few hours (but only one node was online), but i dont get any hint WHY it did work...

/etc/init.d/apache2 start works and status-server IS avaiable... (tested via lynx and 127.0.0.1/server-status

Any ideas? Please...

regards,
Matthias
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.