Omeka Classic tells me mod-rewrite is not enabled.
-
It's already enabled in https://git.cloudron.io/packages/omeka-s-app/-/blob/master/Dockerfile?ref_type=heads#L34
@girish Sorry, this is using the LAMP app in order to install Omeka Classic. Some plugins I want to try install only into Omeka Classic. I've looked in the dir which @robi mentioned, tweaked somethings, but still Omeka won't install. My apache conf (with my tweaks in bold
<VirtualHost *:80> **RewriteEngine On** DocumentRoot /app/data/public LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy CustomLog "|/bin/cat" proxy ErrorLog "|/bin/cat" <Directory /app/data/public> **Options FollowSymLinks** AllowOverride All Require all granted </Directory> # Do not remove this include. It's required for your app to see the Real IP Include "/app/code/apache/rpaf.conf" # This line can be commented out, if you do no require PHPMyAdmin Access Include "/app/code/apache/phpmyadmin.conf" </VirtualHost>
And my .htaccess in /app/data/public is:
RewriteEngine on # If you know mod_rewrite is enabled, but you are still getting mod_rewrite # errors, uncomment the line below and replace "/" with your base directory. # RewriteBase /
(based on https://forum.omeka.org/t/help-with-htaccess/1191).
The error message at https://omeka.example.com/install
Omeka Installation Error mod_rewrite is not enabled. Apache's mod_rewrite extension must be enabled for Omeka to work properly. Please enable mod_rewrite and try again.
-
@girish Sorry, this is using the LAMP app in order to install Omeka Classic. Some plugins I want to try install only into Omeka Classic. I've looked in the dir which @robi mentioned, tweaked somethings, but still Omeka won't install. My apache conf (with my tweaks in bold
<VirtualHost *:80> **RewriteEngine On** DocumentRoot /app/data/public LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy CustomLog "|/bin/cat" proxy ErrorLog "|/bin/cat" <Directory /app/data/public> **Options FollowSymLinks** AllowOverride All Require all granted </Directory> # Do not remove this include. It's required for your app to see the Real IP Include "/app/code/apache/rpaf.conf" # This line can be commented out, if you do no require PHPMyAdmin Access Include "/app/code/apache/phpmyadmin.conf" </VirtualHost>
And my .htaccess in /app/data/public is:
RewriteEngine on # If you know mod_rewrite is enabled, but you are still getting mod_rewrite # errors, uncomment the line below and replace "/" with your base directory. # RewriteBase /
(based on https://forum.omeka.org/t/help-with-htaccess/1191).
The error message at https://omeka.example.com/install
Omeka Installation Error mod_rewrite is not enabled. Apache's mod_rewrite extension must be enabled for Omeka to work properly. Please enable mod_rewrite and try again.
@scooke I just unzipped it on the demo server LAMP, set the DB.ini and changed public/ ownership to www-data to fix permissions.
You may have to copy the .htaccess file over if it didn't copy over.
No need to set any rewrite stuff, as it's already set in the .htaccess file in the .zip archive.
Check it out before someone nukes it: https://omeka-classic.demo.cloudron.io
In fact, if you simply download those two files from there to your server, it should make it work.
-
Thank you @robi, it was the invisible .htaccess that wasn't getting copied over that was the culprit (even though I cp -R'ed).