ZenphotoCMS Forum
Server seems not to be Apache or Apache-compatible, skipping .htaccess test - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Server seems not to be Apache or Apache-compatible, skipping .htaccess test (/thread-3225.html)



Server seems not to be Apache or Apache-compatible, skipping .htaccess test - egret - 2008-07-04

I'm installing ZP for the first time and getting the following warning during the install.

"Server seems not to be Apache or Apache-compatible, skipping .htaccess test"

The server is running Apache version 1.3.41 (Unix)

I have tried using a blank .htaccess file and one with some content but get the same result.

I would like to use the Apache mod_rewrite functionality for simple URLs so i assume i need this working.

Any help would be much appreciated.


Server seems not to be Apache or Apache-compatible, skipping .htaccess test - sbillard - 2008-07-04

Your server seems not to be identifying itself.

There is code in setup.php circa line 546 that checks this.
` if (!stristr($_SERVER['SERVER_SOFTWARE'], "apache") && !stristr($_SERVER['SERVER_SOFTWARE'], "litespeed")) {

checkMark(-1, gettext("Server seems not to be Apache or Apache-compatible, skipping [code].htaccess[/code] test"), "", "");

} else {`

You can change the if statement to `if (false) {` and setup will process the .htaccess file. Alternatively, you can manually edit the file and set mod_rewrite in the admin gallery options tab.


Server seems not to be Apache or Apache-compatible, skipping .htaccess test - egret - 2008-07-04

I changed the "if" statement as suggested and the install worked well. Thank you