LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't config mod_deflate on apache2 (https://www.linuxquestions.org/questions/linux-software-2/cant-config-mod_deflate-on-apache2-245387/)

joeyta 10-21-2004 12:50 AM

Can't config mod_deflate on apache2
 
I am trying to config mod_deflate on Apache 2.0.45.

The Procedure on the below:
step1:
Code:

/usr/local/apache2/bin/apxs -i -c /home/gma/httpd-2.0.45/modules/filters/mod_deflate.c
step2:
Comment "CustomLog logs/access_log common" and instead by "CustomLog logs/deflate_log deflate" in httpd.conf

step3:
Insert the following code in httpd.conf:
Code:

LoadModule deflate_module modules/mod_deflate.so
DeflateFilterNote ratio
LogFormat '"%v %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" (%{ratio}n)' deflate
LogFormat '"%v %h %l %u %t "%r" %>s %b "%{ Referer }i" "%{ User-Agent }i"" (%{ ratio }n)' deflate
<Location />
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch MSIE !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
</Location>

when i restart apache and return the error from server on the below:
Code:

Syntax error on line 1084 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_deflate.so into server: /usr/local/apa
che2/modules/mod_deflate.so: Undefined symbol "deflate"

Can anyone help me to solve this problem?

joeyta 10-21-2004 06:14 PM

No body can help me?

Dilireus 02-18-2005 03:58 PM

I've been having the same problem for months. Have not been able to get mod_deflate to work at all on any distro of linux (Red Hat, Mandrake, Debian) - not that I believe this is related to the distro. I am getting that same error message:

Code:

Syntax error on line 1084 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_deflate.so into server: /usr/local/apache2/modules/mod_deflate.so: Undefined symbol "deflate"

Have tried various versions of Apache (2.0.46-2.0.52) and zlib 1.1.4-1.2.1.


All times are GMT -5. The time now is 08:58 AM.