[Koha-bugs] [Bug 10646] mod_rewrite should be enabled by the postinst script
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jul 25 22:23:17 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10646
--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 19952
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19952&action=edit
Bug 10646: mod_rewrite should be enabled by the postinst script
This patch makes the post install scripts used by the .deb packages
enable the mod_rewrite module (which is mandatory if you want to run Koha).
It tests the module isn't already enabled, and enables if necesary, and reloads
Apache configuration.
To test:
- Install current koha-common packages on a fresh setup. Make sure you have
mod_rewrite
disabled (its the default if you didn't have apache and it was just pulled by
koha-common
at least on Ubuntu 12.04). Run
$ a2dismod rewrite
to make sure it is disabled on your test box.
Create a new koha instance like this:
$ koha-create --create-db name
You'll get an error like this:
Syntax error on line 76 of /etc/koha/apache-shared.conf:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not
included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
, build your own packages, make sure you have mod_rewrite disabled
(which is the default on Ubuntu 12.04 at least), and install the package.
Create a new instance issuing:
- Apply the patch, build your packages, repeat:
No apache warning about the rewrite module.
Regards
To+
Sponsored-by: Universidad Nacional de Cordoba
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list