Bug 18216

Summary: Apache2.4 403 errors for Gitified or git clone installs
Product: Koha Reporter: Olli-Antti Kivilahti <olli-antti.kivilahti>
Component: Installation and upgrade (command-line installer)Assignee: Olli-Antti Kivilahti <olli-antti.kivilahti>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: mtompset
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17464
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 18216 - Apache2 grants access to Koha modules and templates

Description Olli-Antti Kivilahti 2017-03-06 10:52:06 UTC
Fixes this install step for dev installs:

https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages#403_errors_for_Gitified_or_git_clone_installs

--SNIP--
 403 errors for Gitified or git clone installs

In Ubuntu 14.04 you may discover that your gitified install returns 403 errors - this is because of the changes to Apache directory security. A possible fix includes adding the following stanza to apache2.conf (could be added in the virtualhost, or in one of the koha-shared*.conf files as well):

<Directory /home/my-user/koha-src/koha/>
     Options Indexes FollowSymLinks
     AllowOverride None
     Require all granted
</Directory>
--SNAP--
Comment 1 Olli-Antti Kivilahti 2017-03-06 10:53:20 UTC
Created attachment 60833 [details] [review]
Bug 18216 - Apache2 grants access to Koha modules and templates

Fixes this install step for dev installs:

https://wiki.koha-community.org/wiki/Koha_on_ubuntu_-_packages#403_errors_for_Gitified_or_git_clone_installs

--SNIP--
 403 errors for Gitified or git clone installs

In Ubuntu 14.04 you may discover that your gitified install returns 403 errors - this is because of the changes to Apache directory security. A possible fix includes adding the following stanza to apache2.conf (could be added in the virtualhost, or in one of the koha-shared*.conf files as well):

<Directory /home/my-user/koha-src/koha/>
     Options Indexes FollowSymLinks
     AllowOverride None
     Require all granted
</Directory>
--SNAP--
Comment 2 Katrin Fischer 2017-10-15 11:46:48 UTC
Comparing to other entries in the conf file I noticed that "" are missing:

<Directory "__OPAC_WWW_DIR__">
vs.
<Directory __PERL_MODULE_DIR__>

I think this patch could fix issues with the git installation for those still using it, so would be nice to have.
Comment 3 Mark Tompsett 2017-10-25 01:49:22 UTC
What about the debian/template/apache* files that might be related? This only really fixes old school git installs.
Comment 4 Katrin Fischer 2023-09-10 13:18:04 UTC
First release of 2.4 was in 2012 (https://de.wikipedia.org/wiki/Apache_HTTP_Server#Apache_2.4). ktd is using 2.4.56.

I believe this is probably no longer needed, please reopen if you disagree!