Bug 18216 - Apache2.4 403 errors for Gitified or git clone installs
Summary: Apache2.4 403 errors for Gitified or git clone installs
Status: RESOLVED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (command-line installer) (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Olli-Antti Kivilahti
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-06 10:52 UTC by Olli-Antti Kivilahti
Modified: 2023-09-10 13:18 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 18216 - Apache2 grants access to Koha modules and templates (2.09 KB, patch)
2017-03-06 10:53 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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!