How to make Gallery 2 in IIS 5 can run url rewrite module?
I have installed ISAPI_rewrite
I have read the post regarding similar problem for Gallery 1.5.
The author asked us to change $gallery->app->feature["rewrite"] = 0; to $gallery->app->feature["rewrite"] = 1; in config.php.
But in Gallery2, the line doesn't exist.
Please help
----
Gallery URL (optional):
Gallery version: 2
Webserver (with version): IIS 5
Datatabase (with version):
PHP version (eg 4.2.1): 5
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: Windows XP
Web browser/version: IE
G1 version (for migration bugs):
Posts: 389
I've never used ISAPI_rewrite myself, but if you want to try the mod_rewrite module out of the box for ISAPI you could install URL Rewrite and follow the instructions in the configuration page. You can force the tests to pass and activate URL Rewrite.
Posts: 15
is url rewrite a freeware?
it can force the tests to pass?
Posts: 389
URL Rewrite is the G2 module for generating and parsing short URLs (gallery2/v/album/...).
Go to the Site Admin / Modules page and install URL Rewrite.
Posts: 15
yes, I have installed it, but how to force all the tests to pass when configuring it?
Posts: 389
First you hit the 'install' link, then you hit either 'activate' or 'configure' - depending on if you need to configure. Since you have installed it I assume you didn't need to configure it, which is good. Now, if it says 'deactivate' that indicates that URL Rewrite now is active. You should also have a green thumb in the left column. Try browsing around your Gallery and see if things work. You should get URLs like gallery2/v/albumName/subAlbum/imageName.jpg.html.
Posts: 15
after installation, I can only see "configure" and "uninstall", there is no button which named "activate"
I am using Gallery 2 beta 3
Posts: 389
Did you hit configure?
You need to configure it. Hit the configure link and see if the test passes. You need the latest snapshot to be able to override the test and force URL Rewrite to activate.
At a second thought, does ISAPI_rewrite even use .htaccess files? I would imagine that it uses some other configuration file.
Again, the chanses are slim that this will work.
Posts: 15
what's the latest snapshot? you mean CVS?
Posts: 32509
http://codex.gallery2.org/index.php/Gallery2:faq#Where_can_I_get_the_latest_version_of_G2.3F
Posts: 15
I got it
Thanks so much
Posts: 74
lamkacheong,
please let us know if/how you succeed 'cause i would also like to try this as well.
thanks,
Posts: 6
I have it installed but it does not pass the tests when I select configure. The config page is requesting the path to the httpd.ini file but the install did not create one....
I uninstalled and reinstalled it to no avail. Anyone?