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."
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.
Quote: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.
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]I noticed that the files is .../setup had been renamed to *.xxx and when I [/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?
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.
> 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.