<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JMGiner.eu &#187; gzip</title>
	<atom:link href="http://www.jmginer.eu/tag/gzip/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jmginer.eu</link>
	<description>José Manuel Giner</description>
	<lastBuildDate>Mon, 30 Jan 2012 17:11:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Mod_Layout + Gzip + cPanel = Todo Funcionando OK!!</title>
		<link>http://www.jmginer.eu/hosting/mod_layout-gzip-cpanel-todo-funcionando-ok.html</link>
		<comments>http://www.jmginer.eu/hosting/mod_layout-gzip-cpanel-todo-funcionando-ok.html#comments</comments>
		<pubDate>Wed, 03 Sep 2008 09:34:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hosting y servidores]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[mod_layout]]></category>

		<guid isPermaLink="false">http://www.jmginer.eu/?p=116</guid>
		<description><![CDATA[Así es, no solo he conseguido hacer funcionar mod_layout, si no que a demás, he averiguado como hacer para que funcionen las páginas con compresión Gzip NOTA: Realizado con WHM/cPanel + Apache 2.2 + mod_layout 5.1, pero para que funcione sin ningún problema la versión que mejor funciona es Apache 1.3. Proceso: Descargamos mod_layout. Descomprimimos [...]]]></description>
			<content:encoded><![CDATA[<p>Así es, no solo he conseguido hacer funcionar mod_layout, si no que a demás, he averiguado como hacer para que funcionen las páginas con compresión Gzip <img src='http://www.jmginer.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>NOTA:</strong> Realizado con WHM/cPanel + Apache 2.2 + mod_layout 5.1, pero para que funcione sin ningún problema la versión que mejor funciona es Apache 1.3.</p>
<p>Proceso:</p>
<ul>
<li>Descargamos <a href="http://tangent.org/362/mod_layout.html" target="_blank">mod_layout</a>.</li>
<li>Descomprimimos y editamos el archivo Makefile sustituyendo&#8230;</li>
</ul>
<blockquote><p>APXS=apxs<br />
APACHECTL=apachectl<br />
CC=`apxs -q CC`<br />
INC=-I`apxs -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME<br />
LD_SHLIB=`apxs -q LDFLAGS_SHLIB`</p></blockquote>
<p>Dejándolo así:</p>
<blockquote><p>Dejarlo así :<br />
APXS=/usr/local/apache/bin/apxs<br />
APACHECTL=apachectl<br />
CC=`/usr/local/apache/bin/apxs -q CC`<br />
INC=-I`/usr/local/apache/bin/apxs -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME<br />
LD_SHLIB=`/usr/local/apache/bin/apxs -q LDFLAGS_SHLIB`</p></blockquote>
<ul>
<li>Guardamos el Makefile</li>
<li>Ejecutamos make</li>
<li>Ejecutamos make install</li>
</ul>
<p>Editamos el archivo /usr/local/apache/conf/httpd.conf añadiendo:</p>
<p>&lt;IfModule mod_layout.c&gt;<br />
AddOutputFilter LAYOUT htm html php php3 php4 php5 shtml<br />
AddType application/x-httpd-php .html .php .php5 .shtml<br />
LayoutHeader /ruta de nuestro texto publicitario/ads.txt<br />
&lt;/IfModule&gt;</p>
<p>Y reiniciamos Apache!!</p>
<p>Ya tenemos ModLayout funcionando!!!! Pero&#8230; ohhh, las páginas con Gzip no funcionan <img src='http://www.jmginer.eu/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Tenemos 2 opciones:</p>
<p>Opción 1 &#8211; Nos vamos al WHM &gt; Service Configuration &gt; PHP Configuration Editor &gt; Switch to Advanced Mode &gt; disable_functions Y añadimos la función: ob_start</p>
<p>Anda!! por lo menos las webs ya se ven <img src='http://www.jmginer.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  dan un error tipo: <strong>Warning</strong>:  ob_start() has been disabled for security reasons, pero por lo menos se ven <img src='http://www.jmginer.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Opción 2 &#8211; WHM &gt; Software &gt; Apache Update, y recompilamos Apache deshabilitando Zlib.<br />
Tendremos que reinstalar Mod_Layout en este caso, ya que al recompilar se ha desinstalado&#8230;</p>
<p>Yo personalmente opto por la opción 2&#8230; cada uno a gustos&#8230;</p>
<p>Bueno&#8230; espero que os haya servido!!<br />
Un saludo!!</p>
<div id="crp_related"><h3>Temas relacionados:</h3><ul><li><a href="http://www.jmginer.eu/linux/instalar-java-tomcat-7-y-el-conector-apache-mod_jk-en-centos-6.html" rel="bookmark" class="crp_title">Instalar Java, Tomcat 7 y el conector Apache mod_jk en CentOS 6</a></li><li><a href="http://www.jmginer.eu/hosting/como-desde-una-vm-openvz-con-cpanel-en-proxmox-y-configurada-en-un-disco-ssd-conecto-por-nfs-y-utilizo-un-disco-sata-para-almacenamiento.html" rel="bookmark" class="crp_title">Cómo desde una vm openvz con cPanel en Proxmox y configurada en un disco SSD, conecto por NFS y utilizo un disco SATA para almacenamiento</a></li><li><a href="http://www.jmginer.eu/sitios-web/futurobinariocom.html" rel="bookmark" class="crp_title">FuturoBinario.com</a></li><li><a href="http://www.jmginer.eu/uncategorized/spam-del-7581.html" rel="bookmark" class="crp_title">Spam del 7581</a></li><li><a href="http://www.jmginer.eu/hosting/interfaz-gui-openv.html" rel="bookmark" class="crp_title">Proxmox &#8211; Interfaz Gui OpenVZ</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.jmginer.eu/hosting/mod_layout-gzip-cpanel-todo-funcionando-ok.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

