Jumpbox Installation


FYI for anyone installing Omeka on a Jumpbox server and using a sub-directory (i.e.non-root installation):

You will get a mod_rewrite error upon installation unless you go into install/.htaccess and rewrite the base.

RewriteBase /public/YOUR_SUB-DIRECTORY

You will obviously have to rewrite the base in the other .htaccess files as well.

I may have to revisit this as I am currently unable to login using the expected URL. Instead I have to login at:


...which brings up the uncomfortable looking: MYSITE/admin/index.php/users/login

UPDATE: Omeka is now broken! Will update when I figure out what I did wrong. May need help on this!

Actually, what I did was:

RewriteBase /public/SUB-DIRECTORY/install

This allowed me to install Omeka and changed the log-in url, but it seems to have changed something so that only the admin panel and home page work correctly. Everything else produces errors.

I reinstalled, changing all three .htaccess files (root, admin, install) to reflect the correct base ...

RewriteBase /public/SUB-DIRECTORY/

But now it is back to telling me that mod_rewrite is not enabled.

Okay, this appears to have worked:

RewriteBase public/mysubdirectory/install

RewriteBase public/mysubdirectory

RewriteBase public/mysubdirectory/admin

It seems odd that I couldn't just rewrite the base to the general subdirectory in the root .htaccess file (as I've done on other servers), so I'm guessing this extra step is necessary only for the Jumpbox set-up. Anyway, I hope this is helpful to someone someday, because it took me way too long to figure it out!

Thanks for the tip. I am using Ubuntu 8.04, and adding the RewriteBase lines (with directory paths specific to my machine, of course) to the .htaccess files, as described above, worked. I also had to add:

<Directory "/public/mysubdirectory">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all

to my apache2 sites-available configuration file.

Good explanation about RewriteBase at <a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteBase">http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteBase</a>.