Member
Member
cjm51213   2016-04-12, 20:34
#1

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.

Administrator
Administrator
fretzl   2016-04-13, 07:34
#2

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.

Member
Member
cjm51213   2016-04-14, 16:28
#3

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:

Quote:Click to restore the setup scripts and run setup.
If I click this link, nothing happens. I'm stuck...

Thanks for the help,

Chris.

Member
Member
cjm51213   2016-04-14, 16:34
#4

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.

Member
Member
cjm51213   2016-04-14, 17:02
#5

Hi Fretzl,

Spoke too soon...

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.

Thanks for the help,

Chris.

Administrator
Administrator
acrylian   2016-04-14, 18:41
#6

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

Member
Member
cjm51213   2016-04-15, 18:43
#7

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.

Administrator
Administrator
acrylian   2016-04-16, 08:22
#8

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.

Member
Member
cjm51213   2016-04-20, 18:44
#9

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.

Administrator
Administrator
fretzl   2016-04-21, 15:01
#10

Are the permissions for the .htaccess file correct?
Maybe try different permissions.

Member
Member
cjm51213   2016-04-28, 22:01
#11

Hi Fretzl,

I think file permissions are correct:

ls .htaccess -lZ


-r--r--r--. apache apache system_u:object_r:httpd_sys_rw_content_t0 .htaccess

Thanks for the help,

Chris.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.