Foros del Web » Administración de Sistemas » Apache »

mod_deflate o mod_gzip centos DirectAdmin

Estas en el tema de mod_deflate o mod_gzip centos DirectAdmin en el foro de Apache en Foros del Web. Hola, estoy estancado no se como instalar el modulo o si esta activarlo. Sigo el tutorial de: http://forum.directadmin.com/showthread.php?t=126&s= @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código BASH: Ver original cd ...
  #1 (permalink)  
Antiguo 31/03/2016, 15:48
Avatar de luzzifer  
Fecha de Ingreso: julio-2009
Ubicación: Paraná - Argentina
Mensajes: 169
Antigüedad: 14 años, 9 meses
Puntos: 3
mod_deflate o mod_gzip centos DirectAdmin

Hola, estoy estancado no se como instalar el modulo o si esta activarlo. Sigo el tutorial de: http://forum.directadmin.com/showthread.php?t=126&s=
Código BASH:
Ver original
  1. cd /root
  2. wget http://aleron.dl.sourceforge.net/sou...-1.3.26.1a.tgz
  3.  
  4. tar zfx mod_gzip-1.3.26.1a.tgz
  5. cd mod_gzip-1.3.26.1a

You must now open Makefile in your favorite editor and change the first line to:

APXS?=/usr/sbin/apxs


Save it, and continue: <<<<----------------------------------------------- ACA ES DONDE FALLO
Código BASH:
Ver original
  1. make build
  2. make install
Next, open /etc/httpd/conf/httpd.conf in your favorite editor. The installer has already modified the httpd.conf file for you, but you'll need to make some minor changes. When you reach the LoadModule section of httpd.conf, find the mod_gzip line (commented out) and delete it. After all the LoadModules, paste:

Código BASH:
Ver original
  1. LoadModule gzip_module        /usr/lib/apache/mod_gzip.so
  2. #LoadModule frontpage_module   /usr/lib/apache/mod_frontpage.so
  3. LoadModule perl_module        /usr/lib/apache/libperl.so
  4.  
  5. <IfModule mod_gzip.c>
  6. mod_gzip_on Yes
  7. mod_gzip_minimum_file_size 300
  8. mod_gzip_maximum_file_size 0
  9. mod_gzip_maximum_inmem_size 100000
  10. mod_gzip_item_include file \.htm$
  11. mod_gzip_item_include file \.html$
  12. mod_gzip_item_include file \.shtml$
  13. mod_gzip_item_include file \.shtm$
  14. mod_gzip_item_include file \.jsp$
  15. mod_gzip_item_include file \.php$
  16. mod_gzip_item_include file \.pl$
  17. mod_gzip_item_include file \.cgi$
  18. mod_gzip_item_include mime text/.*
  19. mod_gzip_item_include mime ^application/x-httpd-php
  20. mod_gzip_item_include mime httpd/unix-directory
  21. mod_gzip_item_include handler ^perl-script$
  22. mod_gzip_item_include handler ^server-status$
  23. mod_gzip_item_include handler ^server-info$
  24. mod_gzip_item_exclude file .css$
  25. mod_gzip_item_exclude file .js$
  26. #mod_gzip_item_exclude mime ^image/.*
  27. mod_gzip_dechunk yes
  28. mod_gzip_temp_dir /tmp
  29. mod_gzip_keep_workfiles No
  30. mod_gzip_can_negotiate yes
  31. mod_gzip_send_vary Off
  32. mod_gzip_item_exclude mime ^image/.$
  33. mod_gzip_item_exclude mime ^image/
  34. mod_gzip_item_exclude rspheader Content-Type:image/*
  35. </IfModule>

Scroll down a bit future and find the AddModule section of httpd.conf. At the end, remove the mod_gzip line (commented out), and below all the AddModules, paste this:
Code:

Código BASH:
Ver original
  1. AddModule mod_gzip.c

Save httpd.conf and exit the editor. Finally, restart Apache (/etc/rc.d/init.d/httpd restart).

-----------------------------------------------------------------

Bueno donde fallo es ahí donde les marque donde tengo que cambiar una linea dentro del archivo Makefile edito el Archivo por consola "Terminal" y lo guardo al cambio. Modificando la primera linea como dice el tutorial.
Me dice que cambie la primera linea por esta APXS?=/usr/sbin/apxs y la Linea original es APXS?=/usr/local/sbin/apxs
El error es el siguiente:
Código BASH:
Ver original
  1. [root@ns1 mod_gzip-1.3.26.1a]# make build
  2. /usr/sbin/apxs -Wc,-Wall,-O3,-fomit-frame-pointer,-pipe -c mod_gzip.c mod_gzip_debug.c mod_gzip_compress.c -o mod_gzip.so
  3. /var/www/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/include -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache  -Wall,-O3,-fomit-frame-pointer,-pipe  -c -o mod_gzip.lo mod_gzip.c && touch mod_gzip.slo
  4. cc1: error: no se reconoce la opción de línea de comando "-Wall,-O3,-fomit-frame-pointer,-pipe"
  5. apxs:Error: Command failed with rc=65536
  6. .
  7. make: *** [build] Error 1
Y intentando nomas intento ingresar make install y me arroja el siguiente error:
Código BASH:
Ver original
  1. [root@ns1 mod_gzip-1.3.26.1a]# make install
  2. /usr/sbin/apxs -A -i mod_gzip.so
  3. apxs:Error: Sorry, cannot determine bootstrap symbol name.
  4. apxs:Error: Please specify one with option `-n'.
  5. make: *** [install] Error 1
  6. [root@ns1 mod_gzip-1.3.26.1a]#

Algunos Datos:
CentOS 6.7 32bits
DirectAdmin 1.44.3
Apache 2.2.31

Si falta algun dato me lo piden que con gustos se los daré. Ante todo disculpen el desorden y que sea tan extenso quería ser lo mas claro posible. Desde ya gracias.

Etiquetas: centos, directadmin, php, www
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 04:06.