[solved]G2 on Apache2 on Win32; zip, avi,mp4 and url-rewrite
ArthurWetselaar
Joined: 2002-06-11
Posts: 38 |
Posted: Tue, 2005-06-21 21:54 |
Hi, Below my setup info I will point out small changes I had to make for g2 to work on Win32. maybe this info can help some other user on Win32. My setup: All modules are enabled except shutterfly,nokia image upload and Photoaccess. 1 The zip and unzip functionality can be a little tough. Next to zip.exe and unzip.exe you will need zipc.exe. At least my versions of zip and unzip needed that. However G2 will not find it, it looks in the dir where the file to be zipped/unzipped is. Even if zipc.exe is in the same dir as zip.exe and unzip.exe it doesn't work. After I copied zipc.exe to /windows/system32 the zip functionality of G2 worked. 2 In my CVS version of G2 (nightly build 16-06-05) there was no mime type declared for avi and mp4 files. I just added the following: 3 For mod-rewrite to work I had to do the most stuff. But all the alterations are mod-rewrite and Apache specific. They have nothing to do with G2. However, the G2 test told me that Apache Mod-rewrite worked correctly. But when I went into my galleries all URL's were broken. So the test is for this moment not adequate enough on Win32. Things I had to alter in my setup to make url rewriting work:
LoadModule rewrite_module modules/mod_rewrite.so 3.2 Enable symlinks for the gallery2 dir in httpd.conf. My rather unrestrictive options for that dir are: Options IncludesNOEXEC Indexes MultiViews FollowSymLinks ExecCGI 3.3 Add a rewrite log in httpd.conf to see what is happening: 3.4 Restart the Apache service. 4 Changing key php.ini values to suit the bigger demands of G2: 5 In order to make the localisation of g2 (multi-language) work you need the gettext extension of php. This can be enabled in php.ini. G2 does hint you for that. However gettext is a little strange extension. First find the extension in your php.ini and remove the # in front of the line But now comes the crux; gettext.dll is depending on \php-install-dir\dll\iconv.dll To see this all in working visit http://www.wetselaar.com/gallery2 .[/] |
|
Posts: 32509
thanks for the feedback!
Posts: 32509
could you create a feature request on http://sf.net/projects/gallery/ for mime type video/x-msvideo mp4, avi ?
thanks
Posts: 38
feature request:
http://sourceforge.net/tracker/index.php?func=detail&aid=1225176&group_id=7130&atid=357130