<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Yes, now I remember,     Require all
      granted<br>
      <br>
      is necessary in later Apache2.2<br>
      <br>
      It's also in the Opencms docs in apache server configuration.<br>
      <br>
<a class="moz-txt-link-freetext" href="http://documentation.opencms.org/opencms-documentation/server-installation/apache-webserver-configuration/index.html">http://documentation.opencms.org/opencms-documentation/server-installation/apache-webserver-configuration/index.html</a><br>
      <br>
      <br>
      <br>
      Am 08.09.2016 um 10:18 schrieb Attilio Salaris:<br>
    </div>
    <blockquote
cite="mid:CAKQDVOmRa4vi8QuiMSxeiv0TnS72KuqnwKJLxUa4GQbntpHGfw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I resolved my problem.</div>
        <div>I configured my Apache Virtual Host using this directive:</div>
        <div><br>
        </div>
        <div>
          <div><Directory "folderpath"></div>
          <div>    Order Allow,Deny</div>
          <div>    Allow from All</div>
          <div>    Require all granted</div>
          <div></Directory></div>
        </div>
        <div><br>
        </div>
        <div>Now when i republish a resource on Opencms the error 403
          not appear.</div>
        <div><br>
        </div>
        <div>Thank you.</div>
        <div>Attilio</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-09-08 9:46 GMT+02:00 Christoph
          Kukulies <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:kuku@physik.rwth-aachen.de" target="_blank">kuku@physik.rwth-aachen.de</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">
              <div>What OS?<br>
                <br>
                What is the owner of the files? What owner are
                tomcat/apache2 running under?
                <div>
                  <div class="h5"><br>
                    <br>
                    Am 07.09.2016 um 12:02 schrieb Attilio Salaris:<br>
                  </div>
                </div>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="ltr">
                      <p style="font-size:12.8px"><span
style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">1.<span>       </span></span><span
style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Try
                          running tomcat as a service.</span></p>
                      Done
                      <p style="font-size:12.8px"><span
style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">2.<span>       </span></span><span
style="font-size:11pt;font-family:calibri,sans-serif;color:rgb(31,73,125)">Try
                          setting default permissions for new files and
                          folders.</span></p>
                      Done
                      <div><br>
                      </div>
                      <div>but apache always return error 403 on the
                        republished resources.</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2016-09-07 10:33
                        GMT+02:00 <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:Honey.Bhandari@cognizant.com"
                            target="_blank">Honey.Bhandari@cognizant.com</a>></span><wbr>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div link="blue" vlink="purple" lang="EN-US">
                            <div>
                              <p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><span>1.<span
                                      style="font:7.0pt "Times New
                                      Roman"">       </span></span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Try
                                  running tomcat as a service.</span></p>
                              <p><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><span>2.<span
                                      style="font:7.0pt "Times New
                                      Roman"">       </span></span></span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Try
                                  setting default permissions for new
                                  files and folders.</span></p>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Regards</span></p>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Honey</span></p>
                              <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                              <p class="MsoNormal"><b><span
                                    style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a
                                    moz-do-not-send="true"
                                    href="mailto:opencms-dev-bounces@opencms.org"
                                    target="_blank">opencms-dev-bounces@opencms.or<wbr>g</a>
                                  [mailto:<a moz-do-not-send="true"
                                    href="mailto:opencms-dev-bounces@opencms.org"
                                    target="_blank">opencms-dev-bounces@op<wbr>encms.org</a>]
                                  <b>On Behalf Of </b>Attilio Salaris<br>
                                  <b>Sent:</b> Wednesday, September 07,
                                  2016 1:52 PM<br>
                                  <b>To:</b> The OpenCms mailing list
                                  <<a moz-do-not-send="true"
                                    href="mailto:opencms-dev@opencms.org"
                                    target="_blank">opencms-dev@opencms.org</a>><br>
                                  <b>Subject:</b> Re: [opencms-dev] File
                                  permissions on static export</span></p>
                              <div>
                                <div>
                                  <p class="MsoNormal"> </p>
                                  <div>
                                    <div>
                                      <p class="MsoNormal">Thank you
                                        Honey for your fast reply.</p>
                                    </div>
                                    <p class="MsoNormal">I've already
                                      changed the file's permission
                                      manually but when I changed a
                                      resources and I republish the
                                      permissions of this file changed
                                      in 640.</p>
                                    <div>
                                      <p class="MsoNormal"> </p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal">Attilio</p>
                                    </div>
                                  </div>
                                  <div>
                                    <p class="MsoNormal"> </p>
                                    <div>
                                      <p class="MsoNormal">2016-09-07
                                        10:12 GMT+02:00 <<a
                                          moz-do-not-send="true"
                                          href="mailto:Honey.Bhandari@cognizant.com"
                                          target="_blank">Honey.Bhandari@cognizant.com</a>><wbr>:</p>
                                      <blockquote
                                        style="border:none;border-left:solid
                                        #cccccc 1.0pt;padding:0in 0in
                                        0in
                                        6.0pt;margin-left:4.8pt;margin-right:0in">
                                        <div>
                                          <div>
                                            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Permission
                                                issue – do chmod –R 755
                                                <folder-name> to
                                                fix the issue.</span></p>
                                            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                                            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Regards</span></p>
                                            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Honey</span></p>
                                            <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
                                            <p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a
                                                  moz-do-not-send="true"
href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.or<wbr>g</a>
                                                [mailto:<a
                                                  moz-do-not-send="true"
href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@op<wbr>encms.org</a>]
                                                <b>On Behalf Of </b>Attilio
                                                Salaris<br>
                                                <b>Sent:</b> Wednesday,
                                                September 07, 2016 1:38
                                                PM<br>
                                                <b>To:</b> <a
                                                  moz-do-not-send="true"
href="mailto:opencms-dev@opencms.org" target="_blank">opencms-dev@opencms.org</a><br>
                                                <b>Subject:</b>
                                                [opencms-dev] File
                                                permissions on static
                                                export</span></p>
                                            <div>
                                              <div>
                                                <p class="MsoNormal"> </p>
                                                <div>
                                                  <p class="MsoNormal">Hi,</p>
                                                  <div>
                                                    <p class="MsoNormal"> </p>
                                                  </div>
                                                  <div>
                                                    <p class="MsoNormal">I'm
                                                      using Opencms
                                                      9.5.3 on Tomcat 8
                                                      and Apache 2.2.
                                                      I'm configured the
                                                      file<b> opencms-importexport.xml
                                                      </b>with CmsOnDemandStaticExportHa<wbr>ndler
                                                      class
                                                      on <staticexporthandler>
                                                      node.</p>
                                                  </div>
                                                  <div>
                                                    <p class="MsoNormal">When
                                                      I republish an
                                                      existing resource,
                                                      the permessions on
                                                      filesystem changed
                                                      from 755 to 640
                                                      and Apache return
                                                      Permission Denied
                                                      for the resource
                                                      republished, so
                                                      the resource is
                                                      not visible on the
                                                      online website.</p>
                                                  </div>
                                                  <div>
                                                    <p class="MsoNormal">This
                                                      error disappear
                                                      when I delete the
                                                      entire export
                                                      folder.</p>
                                                  </div>
                                                  <div>
                                                    <p class="MsoNormal">Any
                                                      ideas to resolve
                                                      this problem?</p>
                                                  </div>
                                                  <div>
                                                    <p class="MsoNormal"> </p>
                                                  </div>
                                                  <div>
                                                    <p class="MsoNormal">Thank
                                                      you.</p>
                                                  </div>
                                                  <div>
                                                    <p class="MsoNormal">Attilio</p>
                                                  </div>
                                                  <div>
                                                    <div>
                                                      <p
                                                        class="MsoNormal"> </p>
                                                    </div>
                                                    <p class="MsoNormal">--
                                                    </p>
                                                    <div>
                                                      <p><strong><span
                                                          style="font-size:10.0pt;font-family:"Arial",sans-serif">Attilio
                                                          Salaris -
                                                          ConsulMedia
                                                          Srl</span></strong><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
                                                          Via Mattei 72
                                                          - 09170
                                                          Oristano (OR)
                                                          - ITALY<br>
                                                          tel <a
                                                          moz-do-not-send="true"
href="tel:%2B39%200783%2071405" target="_blank">+39 0783 71405</a>; fax
                                                          <a
                                                          moz-do-not-send="true"
href="tel:%2B39%200783%20301727" target="_blank"> +39 0783 301727</a> <br>
                                                          e-mail: </span><a
moz-do-not-send="true" href="mailto:alasi@consulmedia.it"
                                                          target="_blank"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif">asalaris@consulmedia.it</span></a><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"> - </span><a
moz-do-not-send="true" href="http://www.consulmedia.it/" target="_blank"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif">http://www.consulmedia.it</span></a><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span></p>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                          </div>
                                          <p class="MsoNormal">This
                                            e-mail and any files
                                            transmitted with it are for
                                            the sole use of the intended
                                            recipient(s) and may contain
                                            confidential and privileged
                                            information. If you are not
                                            the intended recipient(s),
                                            please reply to the sender
                                            and destroy all copies of
                                            the original message. Any
                                            unauthorized review, use,
                                            disclosure, dissemination,
                                            forwarding, printing or
                                            copying of this email,
                                            and/or any action taken in
                                            reliance on the contents of
                                            this e-mail is strictly
                                            prohibited and may be
                                            unlawful. Where permitted by
                                            applicable law, this e-mail
                                            and other e-mail
                                            communications sent to and
                                            from Cognizant e-mail
                                            addresses may be monitored.
                                          </p>
                                        </div>
                                        <p class="MsoNormal"
                                          style="margin-bottom:12.0pt"><br>
                                        </p>
                                      </blockquote>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888">
                  <div>-- <br>
                    Chris Christoph P. U. Kukulies kukulies (at) <a
                      moz-do-not-send="true"
                      href="http://rwth-aachen.de" target="_blank">rwth-aachen.de</a>
                  </div>
                </font></span></div>
            <br>
            ______________________________<wbr>_________________</blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
    </div>
  </body>
</html>