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
If so, delete it and run setup.
Setup will ask if you want a `.htaccess` file to be created.
I followed your instructions. I discovered and removed .htaccess. I browsed to http://zen.tryx.org/zp-core/setup.php and the page displays: If I click this link, nothing happens. I'm stuck...
Thanks for the help,
Chris.
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.
Spoke too soon... 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.
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
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.
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.
> 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.
Maybe try different permissions.
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.