gevans Posted September 29, 2010 Share Posted September 29, 2010 Hey guys, I've been looking at installing mod_gzip but don't seem to be getting anywhere too quickly.... Setup; xampp 1.7.2 apache 2.2.12 php 5.3.0 os - windows 7 I've added mod_gzip.so into my xampp/apache/modules/ folder. I got the file from the following location - http://www.gknw.net/development/apache/httpd-2.0/win32/modules/mod_gzip-2.0.55-w32.zip I added the following to httpd.conf; LoadModule gzip_module modules/mod_gzip.so <IfModule mod_gzip.c> mod_gzip_on Yes mod_gzip_item_include file \.htm$ mod_gzip_item_include mime text/.* mod_gzip_item_exclude file error/.* mod_gzip_item_exclude mime ^image/.* mod_gzip_temp_dir "/tmp" mod_gzip_command_version mod_gzip_version CustomLog logs/gzip.log mod_gzip_info2 </IfModule> I get the following error in "error.log" when trying to restart apache; httpd.exe: Syntax error on line 141 of C:/xampp/apache/conf/httpd.conf: Cannot load C:/xampp/apache/modules/mod_gzip.so into server: The specified module could not be found. The file location is fine (as far as I can see) and there are no typos (as far as I can see). Does anyone have any ideas? Cheers, Gareth Quote Link to comment https://forums.phpfreaks.com/topic/214718-installing-mod_gzip/ Share on other sites More sharing options...
trq Posted September 29, 2010 Share Posted September 29, 2010 This line.... LoadModule gzip_module modules/mod_gzip.so tries to load an so file, windows uses dll's. Quote Link to comment https://forums.phpfreaks.com/topic/214718-installing-mod_gzip/#findComment-1117131 Share on other sites More sharing options...
gevans Posted September 29, 2010 Author Share Posted September 29, 2010 I've also tried the following; LoadModule gzip_module modules/ApacheModuleGzip.dll <IfModule mod_gzip> mod_gzip_on Yes mod_gzip_item_include file \.htm$ mod_gzip_item_include mime text/.* mod_gzip_item_exclude file error/.* mod_gzip_item_exclude mime ^image/.* mod_gzip_temp_dir "/tmp" mod_gzip_command_version mod_gzip_version CustomLog logs/gzip.log mod_gzip_info2 </IfModule> and get the following; httpd.exe: Syntax error on line 141 of C:/xampp/apache/conf/httpd.conf: Cannot load C:/xampp/apache/modules/ApacheModuleGzip.dll into server: The specified module could not be found. and the file exists. Quote Link to comment https://forums.phpfreaks.com/topic/214718-installing-mod_gzip/#findComment-1117132 Share on other sites More sharing options...
gevans Posted September 29, 2010 Author Share Posted September 29, 2010 All sorted; the modules for Apache Win32 were renamed from *.dll to *.so as of Apache version 1.3.15! I had the .so for apache 2 instead of apache 2.2 Quote Link to comment https://forums.phpfreaks.com/topic/214718-installing-mod_gzip/#findComment-1117153 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.