<div dir="ltr">Hello,<div>You **SHOULD NOT** disable Selinux.</div><div>Apparently you have changed the DocumentRoot of your apache to load html files from <span style="color:rgb(0,0,255);font-family:'comic sans ms',sans-serif">/home/egide .</span></div><div>The context on this directory is not permitted by rules on httpd service with selinux.</div><div>You just need to adjust the context on this folder to meet the selinux security requirement.</div><div><br></div><div>Solution 1:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Copy the reference of the policy applied on the default apache DocumentRoot folder</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><span style="font-family:menlo">~# </span>chcon -R --reference=/var/www/html /home/egide</span></p></div><div><br></div><div><br></div><div><div>Solution 2:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">Change the context when you know the exact context your application</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">~# </span><span style="font-family:menlo">chcon -R -t httpd_sys_content_t</span> /home/egide</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p></div></div><div>The previous two operations are only temporary.</div><div><br></div><div>To make the changes persistent:</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">~# </span><span style="font-family:menlo">semanage fcontext -a -t httpd_sys_content_t "</span>/home/egide<span style="font-family:menlo">(/.*)?"</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:menlo"><span style="font-variant-ligatures:no-common-ligatures">~# restorecon -v </span>/home/egide</p></div><div><br></div><div><br></div><div>Hope this will help.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-16 17:28 GMT+01:00 Mathias HOUNGBO <span dir="ltr"><<a href="mailto:mathias@houngbo.net" target="_blank">mathias@houngbo.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Bonsoir à tous</p>
    <p>Svp, essayer de ne pas désactiver selinux !<br>
      <br>
      Apprenez à l'utiliser : <a class="m_5438916480169909753moz-txt-link-freetext" href="https://youtu.be/cNoVgDqqJmM" target="_blank">https://youtu.be/cNoVgDqqJmM</a></p>
    <p>Merci<br>
    </p><div><div class="h5">
    <p><br>
    </p>
    <br>
    <div class="m_5438916480169909753moz-cite-prefix">Le 08/11/2016 à 12:23, Theodore KOUETE
      a écrit :<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      
      peux tu dans un premier temps désactiver le Selinux?
      <div>et redemarrer le service?</div>
      <div>qu’est ce que tu as dans /var/log</div>
      <div><br>
        <div>
          <div>Le 7 nov. 2016 à 15:40, NDAYIZEYE Egide <<a href="mailto:ndayegide2003@gmail.com" target="_blank">ndayegide2003@gmail.com</a>>
            a écrit :</div>
          <br class="m_5438916480169909753Apple-interchange-newline">
          <blockquote type="cite">
            <div dir="ltr">
              <div class="gmail_default" style="font-family:comic sans ms,sans-serif;color:rgb(0,0,255)">salut,<br>
              </div>
              <div class="gmail_default" style="font-family:comic sans ms,sans-serif;color:rgb(0,0,255)">Merci beaucoup pour
                votre reponse. Voici le contenu de
                /var/log/httpd/error_log : [Mon Nov 07 16:44:28 2016]
                [notice] SELinux policy enabled; httpd running as
                context unconfined_u:system_r:httpd_t:<wbr>s0<br>
                [Mon Nov 07 16:44:28 2016] [notice] suEXEC mechanism
                enabled (wrapper: /usr/sbin/suexec)<br>
                [Mon Nov 07 16:44:28 2016] [error] Unable to change
                directory to /home/egide<br>
                [Mon Nov 07 16:53:32 2016] [notice] SELinux policy
                enabled; httpd running as context
                unconfined_u:system_r:httpd_t:<wbr>s0<br>
                [Mon Nov 07 16:53:32 2016] [notice] suEXEC mechanism
                enabled (wrapper: /usr/sbin/suexec)<br>
                [Mon Nov 07 16:53:32 2016] [error] Unable to change
                directory to /home/egide<br>
                <br>
              </div>
              <div class="gmail_default" style="font-family:comic sans ms,sans-serif;color:rgb(0,0,255)">Cordialement,<br>
              </div>
            </div>
            <div class="gmail_extra"><br clear="all">
              <div>
                <div class="m_5438916480169909753gmail_signature" data-smartmail="gmail_signature">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>
                            <div><font size="4"><b>--------------------------<br>
                                  NDAYIZEYE Egide</b></font><br>
                            </div>
                            <font size="2">Analyste-programmeur</font><br>
                          </div>
                          Tél : (+257)79 983 653<br>
                        </div>
                        e-mail : <a href="mailto:ndayegide2003@gmail.com" target="_blank">ndayegide2003@gmail.com</a><br>
                      </div>
                      Skype : ndayizeye_egide<br>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <div class="gmail_quote">2016-11-07 17:32 GMT+02:00
                Theodore KOUETE <span dir="ltr"><<a href="mailto:tkouete@cica-re.com" target="_blank">tkouete@cica-re.com</a>></span>:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div style="word-wrap:break-word">salut,
                    <div>peux tu nous donner le contenu de ton fichier
                      log?</div>
                    <div><br>
                    </div>
                    <div>
                      <div>
                        <div>Le 7 nov. 2016 à 15:20, NDAYIZEYE Egide
                          <<a href="mailto:ndayegide2003@gmail.com" target="_blank">ndayegide2003@gmail.com</a>>
                          a écrit :</div>
                        <br class="m_5438916480169909753m_7464800964855928147Apple-interchange-newline">
                        <blockquote type="cite"><a href="http://stackoverflow.com/questions/21502656/upgrading-php-on-centos-6-5-final" target="_blank">http://stackoverflow.com/quest<wbr>ions/21502656/upgrading-php-<wbr>on-centos-6-5-final</a></blockquote>
                      </div>
                      <br>
                      <div>
                        <div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
                          <div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="color:rgb(253,90,0)">Cordialement
                                / Regards</span></b><span style="color:rgb(31,73,125)"><br>
                              <br>
                            </span></div>
                        </div>
                        <span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class="m_5438916480169909753m_7464800964855928147Apple-interchange-newline">
                          <span><span><image001.jpg></span></span>
                          <div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="color:blue"><br class="m_5438916480169909753m_7464800964855928147Apple-interchange-newline">
                                CICA-RE</span></b><span style="color:rgb(31,73,125)"><br>
                            </span><b><span style="font-size:10pt;color:rgb(31,73,125)">Théodore
                                KOUETE F.</span></b></div>
                          <div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b style="color:rgb(31,73,125);font-size:13px">Chef service Réseau, NTIC
                              & Maintenance</b><span style="font-size:10pt;color:rgb(31,73,125)"><b><br>
                              </b></span><b style="font-weight:normal"><i><span style="font-size:9pt;color:rgb(247,150,70)">Red Hat Certified Engineer,
                                  Cisco Certified</span></i></b></div>
                          <div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><span style="font-size:9pt;color:rgb(247,150,70)">System & Networ</span></i></b><b><i><span style="font-size:9pt;color:rgb(247,150,70)" lang="EN-US">k Administrator</span></i></b></div>
                          <div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;color:rgb(31,73,125)" lang="EN-US">Cité OUA Lomé 2<br>
                              Tél: 228 22 23 62 62 / 228 97 28 37 37 /
                              228 9248 77 70<br>
                            </span><span style="color:rgb(31,73,125)" lang="EN-US"><br>
                            </span><b><span style="font-size:10pt;color:rgb(31,73,125)" lang="EN-US">Disclaimer</span></b><b><span style="font-size:7.5pt;color:rgb(31,73,125)" lang="EN-US">:</span></b><span style="font-size:7.5pt;color:rgb(31,73,125)" lang="EN-US"> This email is
                              the property of CICA-RE, and the
                              information contained</span><span style="color:rgb(31,73,125)" lang="EN-US"><br>
                            </span><span style="font-size:7.5pt;color:rgb(31,73,125)" lang="EN-US">herewith is only intended for
                              the recipient(s) named above and may
                              contain information that is privileged and
                              confidential. If you are not the intended
                              or one of the intended recipient(s), </span><span style="color:rgb(31,73,125)" lang="EN-US"><br>
                            </span><span style="font-size:7.5pt;color:rgb(31,73,125)" lang="EN-US">any unauthorized use is
                              prohibited. Distribution or copying of
                              this email, or the information contained
                              herein, to anyone other than the intended
                              recipient is prohibited.</span><span style="color:rgb(31,73,125)" lang="EN-US"><br>
                            </span></div>
                        </span></div>
                      <br>
                    </div>
                  </div>
                </blockquote>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
        <div>
          <div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
            <div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="color:rgb(253,90,0)">Cordialement / Regards</span></b><span style="color:rgb(31,73,125)"><br>
                <br>
              </span></div>
          </div>
          <span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class="m_5438916480169909753Apple-interchange-newline">
            <span><img id="m_5438916480169909753AE650502-93E4-4EF8-A378-F51C35669173" src="cid:part6.1218A03B.43A46737@houngbo.net" height="30" width="28"></span>
            <div style="color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><span style="color:blue"><br class="m_5438916480169909753Apple-interchange-newline">
                  CICA-RE</span></b><span style="color:rgb(31,73,125)"><br>
              </span><b><span style="font-size:10pt;color:rgb(31,73,125)">Théodore KOUETE F.</span></b></div>
            <div style="color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b style="color:rgb(31,73,125);font-size:13px">Chef
                service Réseau, NTIC & Maintenance</b><span style="font-size:10pt;color:rgb(31,73,125)"><b><br>
                </b></span><b style="font-weight:normal"><i><span style="font-size:9pt;color:rgb(247,150,70)">Red
                    Hat Certified Engineer, Cisco Certified<u></u><u></u></span></i></b></div>
            <div style="color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><b><i><span style="font-size:9pt;color:rgb(247,150,70)">System
                    & Networ</span></i></b><b><i><span style="font-size:9pt;color:rgb(247,150,70)" lang="EN-US">k Administrator<u></u><u></u></span></i></b></div>
            <div style="color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-size:10pt;color:rgb(31,73,125)" lang="EN-US">Cité OUA Lomé 2<br>
                Tél: 228 22 23 62 62 / 228 97 28 37 37 / 228 9248 77 70<br>
              </span><span style="color:rgb(31,73,125)" lang="EN-US"><br>
              </span><b><span style="font-size:10pt;color:rgb(31,73,125)" lang="EN-US">Disclaimer</span></b><b><span style="font-size:7.5pt;color:rgb(31,73,125)" lang="EN-US">:</span></b><span style="font-size:7.5pt;color:rgb(31,73,125)" lang="EN-US"> This
                email is the property of CICA-RE, and the information
                contained</span><span style="color:rgb(31,73,125)" lang="EN-US"><br>
              </span><span style="font-size:7.5pt;color:rgb(31,73,125)" lang="EN-US">herewith is only intended for the
                recipient(s) named above and may contain information
                that is privileged and confidential. If you are not the
                intended or one of the intended recipient(s), </span><span style="color:rgb(31,73,125)" lang="EN-US"><br>
              </span><span style="font-size:7.5pt;color:rgb(31,73,125)" lang="EN-US">any unauthorized use is prohibited.
                Distribution or copying of this email, or the
                information contained herein, to anyone other than the
                intended recipient is prohibited.</span><span style="color:rgb(31,73,125)" lang="EN-US"><br>
              </span></div>
          </span></div>
        <br>
      </div>
      <br>
      <fieldset class="m_5438916480169909753mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
afnog mailing list
<a class="m_5438916480169909753moz-txt-link-freetext" href="https://www.afnog.org/mailman/listinfo/afnog" target="_blank">https://www.afnog.org/mailman/<wbr>listinfo/afnog</a></pre>
    </blockquote>
    <br>
    <pre class="m_5438916480169909753moz-signature" cols="72">Il n'y a pas de raccourci pour atteindre le développement.
Open source is not limited to software and it is not limited to english either! 
Mefies toi de la médiocrité, c'est la moisissure de l'esprit

-- 
My blog - <a class="m_5438916480169909753moz-txt-link-freetext" href="http://mathias.houngbo.net" target="_blank">http://mathias.houngbo.net</a></pre>
  </div>

<br>______________________________<wbr>_________________<br>
afnog mailing list<br>
<a href="https://www.afnog.org/mailman/listinfo/afnog" rel="noreferrer" target="_blank">https://www.afnog.org/mailman/<wbr>listinfo/afnog</a><br></blockquote></div><br></div>