Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. Omeka Classic tells me mod-rewrite is not enabled.

Omeka Classic tells me mod-rewrite is not enabled.

Scheduled Pinned Locked Moved LAMP
7 Posts 3 Posters 431 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • scookeS Offline
    scookeS Offline
    scooke
    wrote on last edited by
    #1

    How do I enable please?

    A life lived in fear is a life half-lived

    1 Reply Last reply
    0
    • robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #2

      Look in the /app/data/apache dir for the config

      Conscious tech

      1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        It's already enabled in https://git.cloudron.io/packages/omeka-s-app/-/blob/master/Dockerfile?ref_type=heads#L34

        scookeS 1 Reply Last reply
        0
        • girishG girish

          It's already enabled in https://git.cloudron.io/packages/omeka-s-app/-/blob/master/Dockerfile?ref_type=heads#L34

          scookeS Offline
          scookeS Offline
          scooke
          wrote on last edited by scooke
          #4

          @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.
          

          A life lived in fear is a life half-lived

          robiR 1 Reply Last reply
          0
          • scookeS scooke

            @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.
            
            robiR Offline
            robiR Offline
            robi
            wrote on last edited by robi
            #5

            @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.

            Conscious tech

            1 Reply Last reply
            0
            • scookeS Offline
              scookeS Offline
              scooke
              wrote on last edited by
              #6

              Thank you @robi, it was the invisible .htaccess that wasn't getting copied over that was the culprit (even though I cp -R'ed).

              A life lived in fear is a life half-lived

              robiR 1 Reply Last reply
              0
              • scookeS scooke

                Thank you @robi, it was the invisible .htaccess that wasn't getting copied over that was the culprit (even though I cp -R'ed).

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #7

                @scooke nod, I used cp -a * but forgot I also had to do .*

                Conscious tech

                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search