Installation mysteries

Hi Folks,

I have just installed Zenphoto version 1.4.12 [c1d7e8900b] (Official build). I have at least one mystery.

phpinfo() reports: Loaded Modules ... mod_rewrite and srvr-info reports likewise, however, ZenPhoto under Options > General "Setup did not detect a working mod_rewrite facility."

How do I diagnose this?

Thanks for the help,

Chris.

Comments

  • fretzl Administrator, Developer
    Check if a `.htaccess` file is present in the root of your installation.
    If so, delete it and run setup.
    Setup will ask if you want a `.htaccess` file to be created.
  • Hi Fretzl,

    I followed your instructions. I discovered and removed .htaccess. I browsed to http://zen.tryx.org/zp-core/setup.php and the page displays:
    Click to restore the setup scripts and run setup.
    If I click this link, nothing happens. I'm stuck...

    Thanks for the help,

    Chris.
  • Hi Fretzl,

    I noticed that the files is .../setup had been renamed to *.xxx and when I removed that superfluous extension, everything worked correctly.

    Thanks for the help,

    Chris.
  • Hi Fretzl,

    Spoke too soon...
    About to update tables...
    Done with table update

    Mod_Rewrite check:
    [Mod_rewrite]
    gives me a red circle with an embedded "X".

    It might be helpful to know that my server is running SELinux, so I have to set context appropriately to pass R/W setup checks, but .htaccess was produced successfully. Something else is happening.

    Thanks for the help,

    Chris.
  • acrylian Administrator, Developer
    Sorry I have no idea why the mod_rewrite check may fail on your server. I have no experience with server configuration itself. If you didn't setup the server yourself maybe ask your host/server admin. Maybe he can tell more.

    I noticed that the files is .../setup had been renamed to *.xxx and when I
    Yes, that is correct, that is protection of the setup files. Please see also:
    http://www.zenphoto.org/news/installation-and-upgrading/#re-running-and-re-uploading-setup-files
  • Hi Acrylian,

    I also have no idea why mod-rewrite check fails. I set up the server, and I am reasonably knowledgeable. I have tried dropping SELinux, and that has had no effect, meaning I still have an indication that mod_rewrite is not passing some test. Are there logs that might explain this?

    Thanks for the help,

    Chris.
  • acrylian Administrator, Developer
    Sorry, I have no idea. Using ZP on several different shared hosts and it was always reliable so far for me at least.

    Generally the check in setup tries to get a page by a rewritten url. If that fails it assumes mod rewrite is not available.

    Is your server running Apache with SELinux at all? Did you try `print_r(apache_get_modules())` if mod_rewrite is properly installed? On Nginx for example the check will always fail it does not use htaccess.
  • Hi Acrylian,

    > Is your server running Apache with SELinux at all?

    Yes. I have dropped SELinux and run setup to see if SELinux was the problem, but I have no change in behavior, meaning ZenPhoto still reports lack of working mod_rewrite facility.

    > "Did you try print_r(apache_get_modules()) if mod_rewrite is properly installed?"

    No. I used the native apache facility, mod_info, which indicated that mod_rewrite was configured.

    Thanks for the help,

    Chris.
  • fretzl Administrator, Developer
    Are the permissions for the .htaccess file correct?
    Maybe try different permissions.
  • Hi Fretzl,

    I think file permissions are correct:

    # ls .htaccess -lZ
    -r--r--r--. apache apache system_u:object_r:httpd_sys_rw_content_t:s0 .htaccess

    Thanks for the help,

    Chris.
Sign In or Register to comment.