Open the apache module mod_deflate

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Open the apache module mod_deflate

Postby zeusx » 02. October 2008 14:12

hi friend

My environment is xampp1.6.8, in order to provide web browsing speed, I would like to open a module mod_deflate, I do /

LoadModule deflate_module modules / mod_deflate.so
LoadModule dir_module modules / mod_dir.so
# LoadModule dumpio_module modules / mod_dumpio.so
LoadModule env_module modules / mod_env.so
# LoadModule expires_module modules / mod_expires.so
# LoadModule ext_filter_module modules / mod_ext_filter.so
LoadModule headers_module modules / mod_headers.so

Open mod_deflate module. But can not start apache.

I would like to ask how I can open a Web browser to accelerate open mod_deflate? Mod_deflate to open at the same time running eaccelerator with Zend Optimizer to accelerate it?

Thanks!!
zeusx
 
Posts: 3
Joined: 29. September 2008 12:34

Postby Wiedmann » 02. October 2008 20:19

But can not start apache.

Why not? (error message)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

I get the same problem with mod_deflate

Postby pioneear » 17. October 2008 17:15

As soon as i try to load mod_deflate i get this error message:

With httpd.exe:

httpd.exe: Syntax error on line 112 of C:/xampp/apache/conf/httpd.conf: Cannot load C:/xampp/apache/modules/mod_deflate.so into server: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

with apache.exe:
apache.exe: Syntax error on line 112 of C:/xampp/apache/conf/httpd.conf: Cannot load C:/xampp/apache/modules/mod_deflate.so into server: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

It's just one module no other config changes from default installation.

I've read somewhere you need to load libz.so as well but this does not come with the xampp package
http://brand.key2crm.org.uk - CRM for Charities
pioneear
 
Posts: 4
Joined: 23. April 2008 13:38
Operating System: Ubuntu 10.04

Postby Sharley » 17. October 2008 22:18

After doing some research on mod_deflate and it's usage it may be possible that your implementation of mod_deflate or how it is being called/run that is the issue here, as syntax errors usually mean a typo when editing a conf/ini file (possible use of a word processor instead of a text editor) or, as in this case perhaps, a mal-implementation of a server configuration file entry.

These pages might be worth a read:
Apache Module mod_deflate

Apache Wiki ReInflating

Apache Wiki httpd.conf Example

Also some useful background and other user's experiences with mod_deflate using this Google search which, among a few other Google searches, gave me some insight into your issue and other issues that may arise using mod_deflate on an Apache Windows Server installation.

BTW libz is not a module in XAMPP but zlib is included in XAMPP as a dll in the apache\bin folder - which may indicate it was included when apache was compiled by the developers.

Not sure if this helps but a while ago (2006) I downloaded the ZipBinaries archive for another project and installed them in a folder I named zip within the apache\bin folder - they included such exe files as gzip, zip and sfx etc.
IIRC they were for use with ffmpeg or perhaps Imagemagik but my memory has faded as to why I set them up in XAMPP now.

I mention the zip binaries because, when researching mod_deflate, gzip (gunzip) was mentioned from time to time.
HTH
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Postby pioneear » 19. October 2008 13:53

I think most of us know how to modify the httpd.conf file.

But i have tried it using PFE and various other editor tools to simply remove # before the line (93) LoadModule deflate_module modules/mod_deflate.so

This is what i did

1. Downloaded the latest installer exe of xampp from the site

XAMPP for Windows 1.6.8, 2008/09/28 / xampp-win32-1.6.8-installer.exe

2. Installed xampp using default settings didn't change any of the options during installation.

3. Started xampp control panal and started Apache everythings fine.

4. Opened httpd.conf in C:\xampp\apache\conf went to line 93 and removed the # before the line LoadModule deflate_module modules/mod_deflate.so (using notepad / pfe / NEdit )

5. Tried to run Apache it failed. Opened command promt went to C:\xampp\apache\bin and typed in http.exe or apache.exe

the following error came up

httpd.exe: Syntax error on line 93 of C:/xampp/apache/conf/httpd.conf: Cannot lo
ad C:/xampp/apache/modules/mod_deflate.so into server: This application has fail
ed to start because the application configuration is incorrect. Reinstalling the
application may fix this problem.

OR

apache.exe: Syntax error on line 93 of C:/xampp/apache/conf/httpd.conf: Cannot lo
ad C:/xampp/apache/modules/mod_deflate.so into server: This application has fail
ed to start because the application configuration is incorrect. Reinstalling the
application may fix this problem.

Now this is simply loading the mod_deflate module no other configuration changes were made and it stopped apache from starting up.

Then if I place the # back in on line 93 apache works fine again.
http://brand.key2crm.org.uk - CRM for Charities
pioneear
 
Posts: 4
Joined: 23. April 2008 13:38
Operating System: Ubuntu 10.04

an unknown filter was not added: DEFLATE

Postby cphowdy » 21. November 2008 13:52

hi,

I have a problem: I tried to activate mod_deflate but when I start apache it sais in the error.log:

[Fri Nov 21 13:05:55 2008] [error] an unknown filter was not added: DEFLATE

I googled this error but didn't find anything helpful excepted this thread.

Can anyone help me?
cphowdy
 
Posts: 1
Joined: 21. November 2008 13:25

Postby Wiedmann » 21. November 2008 13:55

I tried to activate mod_deflate

How exactly?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 44 guests