How to make Gallery 2 in IIS 5 can run url rewrite module?

lamkacheong

Joined: 2005-06-26
Posts: 15
Posted: Mon, 2005-07-11 14:08

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):

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Mon, 2005-07-11 15:22

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.

 
lamkacheong

Joined: 2005-06-26
Posts: 15
Posted: Mon, 2005-07-11 15:48

is url rewrite a freeware?
it can force the tests to pass?

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Mon, 2005-07-11 16:45

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.

 
lamkacheong

Joined: 2005-06-26
Posts: 15
Posted: Tue, 2005-07-12 06:41

yes, I have installed it, but how to force all the tests to pass when configuring it?

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Tue, 2005-07-12 08:17

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.

 
lamkacheong

Joined: 2005-06-26
Posts: 15
Posted: Mon, 2005-07-18 07:35

after installation, I can only see "configure" and "uninstall", there is no button which named "activate"
I am using Gallery 2 beta 3

 
pelle
pelle's picture

Joined: 2004-12-10
Posts: 389
Posted: Tue, 2005-07-19 18:54

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.

 
lamkacheong

Joined: 2005-06-26
Posts: 15
Posted: Thu, 2005-07-21 10:53

what's the latest snapshot? you mean CVS?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-07-21 11:38
 
lamkacheong

Joined: 2005-06-26
Posts: 15
Posted: Thu, 2005-07-21 12:37

I got it
Thanks so much

 
edriss
edriss's picture

Joined: 2004-07-19
Posts: 74
Posted: Thu, 2005-07-21 14:50

lamkacheong,
please let us know if/how you succeed 'cause i would also like to try this as well.
thanks,

 
SJ073

Joined: 2007-06-28
Posts: 6
Posted: Sat, 2007-08-25 06:53

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?