<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-MailFormatvorlage19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>two weeks ago I had a question regarding the activation of apache (see below). Since then I wasn’t able to resolve this. Any ideas? Thanks!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Daniel <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>--<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>Daniel Souvignier<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>IT Center<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>Gruppe: Linux-basierte Anwendungen<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>Abteilung: Systeme und Betrieb<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>RWTH Aachen University<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>Seffenter Weg 23<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>52074 Aachen<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'>Tel.: +49 241 80-29267<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'><a href="mailto:souvignier@itc.rwth-aachen.de">souvignier@itc.rwth-aachen.de</a><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:DE'><a href="http://www.itc.rwth-aachen.de/">www.itc.rwth-aachen.de</a><o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='mso-fareast-language:DE'>Von:</span></b><span style='mso-fareast-language:DE'> Souvignier, Daniel [mailto:Souvignier@itc.rwth-aachen.de] <br><b>Gesendet:</b> Montag, 16. Januar 2017 17:16<br><b>An:</b> users@clusterlabs.org<br><b>Betreff:</b> [ClusterLabs] Trouble setting up selfcompiled Apache in a pacemaker cluster on Oracle Linux 6.8<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi List,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’ve got trouble getting Apache to work in a Pacemaker cluster I set up between two Oracle Linux 6.8 hosts. The cluster itself works just fine, but Apache won’t come up. Thing is here, this Apache is different from a basic setup because it is selfcompiled and therefore living in /usr/local/apache2. Also it is the latest version available (2.4.25), which could also be causing problems. To be able to debug, I went into the file /usr/lib/ocf/resources.d/heartbeat/apache and „verbosed“ it by simply adding set –x. This way, I can extract the scripts output from the logfile /var/log/cluster/corosync.log, which I appended to this email (hopefully it won’t get filtered). <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The command I used to invoke the apache script mentioned above was:<o:p></o:p></p><p class=MsoNormal>pcs resource create httpd ocf:heartbeat:apache configfile=/usr/local/apache2/conf/httpd.conf httpd=/usr/local/apache2/bin/httpd statusurl=http://localhost/server-status envfiles=/usr/local/apache2/bin/envvars op monitor interval=60s<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Before you ask: the paths are correct and mod_status is also configured correctly (works fine when starting Apache manually). I should also add that the two nodes which form this cluster are virtual (Vmware vSphere) hosts and living in the same network (so no firewalling between them, there is a dedicated firewall just before the network). I assume that it has something to do with the handling of the pid file, but I couldn’t seem to fix it until now. I pointed Apache to create the pid file in /var/run/httpd.pid, but that didn’t work either. Suggestions on how to solv this? Thanks in advance!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Kind regards,<o:p></o:p></p><p class=MsoNormal>Daniel Souvignier<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>P.S.: If you need the parameters I compiled Apache with, I can tell you, but I don’t think that it is relevant here.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='mso-fareast-language:DE'>--<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Daniel Souvignier<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'><o:p> </o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>IT Center<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Gruppe: Linux-basierte Anwendungen<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Abteilung: Systeme und Betrieb<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>RWTH Aachen University<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Seffenter Weg 23<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>52074 Aachen<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'>Tel.: +49 241 80-29267<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'><a href="mailto:souvignier@itc.rwth-aachen.de">souvignier@itc.rwth-aachen.de</a><o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:DE'><a href="http://www.itc.rwth-aachen.de/">www.itc.rwth-aachen.de</a><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>