<?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>Senín ( con n ) &#187; Apache</title>
	<atom:link href="http://www.senin.org/weblog/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.senin.org/weblog</link>
	<description>Mis notas rápidas de perl y shell</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:14:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock</title>
		<link>http://www.senin.org/weblog/2007/11/21/crit-28no-space-left-on-device-mod_rewrite-could-not-create-rewrite_log_lock/</link>
		<comments>http://www.senin.org/weblog/2007/11/21/crit-28no-space-left-on-device-mod_rewrite-could-not-create-rewrite_log_lock/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 18:30:01 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://www.senin.org/weblog/2007/11/21/crit-28no-space-left-on-device-mod_rewrite-could-not-create-rewrite_log_lock/</guid>
		<description><![CDATA[Este error en el que apache se flipa y no es capaz de levantar aún cuando sí tiene espacio en el disco, se soluciona así: ipcs -s &#124; grep apache &#124; perl -e 'while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}']]></description>
			<content:encoded><![CDATA[<p>Este error en el que apache se flipa y no es capaz de levantar aún cuando sí tiene espacio en el disco, se soluciona así:</p>
<pre>ipcs -s | grep apache | perl -e 'while (<stdin>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'</stdin></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.senin.org/weblog/2007/11/21/crit-28no-space-left-on-device-mod_rewrite-could-not-create-rewrite_log_lock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Invalid command &#8216;Order&#8217;, perhaps misspelled or defined by a module not included in the server configuration</title>
		<link>http://www.senin.org/weblog/2006/11/07/invalid-command-order-perhaps-misspelled-or-defined-by-a-module-not-included-in-the-server-configuration/</link>
		<comments>http://www.senin.org/weblog/2006/11/07/invalid-command-order-perhaps-misspelled-or-defined-by-a-module-not-included-in-the-server-configuration/#comments</comments>
		<pubDate>Tue, 07 Nov 2006 16:18:14 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.senin.org/weblog/2006/11/07/invalid-command-order-perhaps-misspelled-or-defined-by-a-module-not-included-in-the-server-configuration/</guid>
		<description><![CDATA[En Debian testing al actualizar ahora ocurre este problema: # /etc/init.d/apache2 restart Forcing reload of web server (apache2)...Syntax error on line 141 of /etc/apache2/apache2.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration failed! Si vemos la documentación de Apache, el comando &#8216;Order&#8217; pertenece al modulo mod_access Al [...]]]></description>
			<content:encoded><![CDATA[<p>En Debian testing al actualizar ahora ocurre este problema:</p>
<pre>
# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 141 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
 failed!
</pre>
<p>Si vemos la documentación de Apache, el comando &#8216;Order&#8217; pertenece al modulo mod_access</p>
<p>Al pararecer este módulo ya no está enlazado estáticamente si no que se cargará dinámicamente, lo podemos hacer con </p>
<pre>
# a2enmod authz_host
</pre>
<p>Lo que ahora lanza otro error:</p>
<pre>
debian:/etc/apache2/mods-available# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 145 of /etc/apache2/apache2.conf:
Invalid command 'TypesConfig', perhaps misspelled or defined by a module not included in the server configuration
 failed!
</pre>
<p>Pareceser que hay que activar todo esto:</p>
<pre>
#a2enmod mime
</pre>
<p>Ahora este otro error:</p>
<pre>
# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...Syntax error on line 22 of /etc/apache2/sites-enabled/000-default:
Invalid command 'ScriptAlias', perhaps misspelled or defined by a module not included in the server configuration
 failed!
</pre>
<p>solucionamos con :</p>
<pre>
#a2enmod alias
</pre>
<p>ahora uno típico:</p>
<pre>
debian:/etc/apache2/mods-available# /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd (no pid file) not running
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
.
</pre>
<p>Añadimos /etc/apache2/apache2.conf</p>
<pre>
ServerName localhost
</pre>
<p>reiniciar y listo</p>
<p>P.D.: en algunas listas recomiendan añadir tambien el modulo setenvif</p>
]]></content:encoded>
			<wfw:commentRss>http://www.senin.org/weblog/2006/11/07/invalid-command-order-perhaps-misspelled-or-defined-by-a-module-not-included-in-the-server-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eaccelator: cache para php</title>
		<link>http://www.senin.org/weblog/2006/05/19/eaccelator-cache-para-php/</link>
		<comments>http://www.senin.org/weblog/2006/05/19/eaccelator-cache-para-php/#comments</comments>
		<pubDate>Fri, 19 May 2006 11:25:08 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://senin.org/weblog/eaccelator-cache-para-php</guid>
		<description><![CDATA[Instalar eaccelerator Requirements &#8212;&#8212;&#8212;&#8212; apache >= 1.3, mod_php >= 4.1, autoconf, automake, libtool, m4 apt-get install php4-dev #/usr/src/ wget http://keihanna.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc2.tar.bz2 tar jxvf eaccelerator-0.9.4-rc2.tar.bz2 cd eaccelerator-0.9.4-rc2 export PHP_PREFIX=&#8221;/usr&#8221; $PHP_PREFIX/bin/phpize ./configure \ &#8211;enable-eaccelerator=shared \ &#8211;with-php-config=$PHP_PREFIX/bin/php-config export PHP_PREFIX=&#8221;/usr/local&#8221; make You must specify the real prefix where PHP is installed in the &#8220;export&#8221; command. It may be &#8220;/usr&#8221; &#8220;/usr/local&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>Instalar eaccelerator</p>
<p>Requirements<br />
&#8212;&#8212;&#8212;&#8212;<br />
apache >= 1.3, mod_php >= 4.1, autoconf, automake, libtool, m4</p>
<p>apt-get install php4-dev</p>
<p>#/usr/src/<br />
wget http://keihanna.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc2.tar.bz2<br />
tar jxvf eaccelerator-0.9.4-rc2.tar.bz2</p>
<p>cd eaccelerator-0.9.4-rc2</p>
<p>export PHP_PREFIX=&#8221;/usr&#8221;<br />
$PHP_PREFIX/bin/phpize</p>
<p>./configure \<br />
&#8211;enable-eaccelerator=shared \<br />
&#8211;with-php-config=$PHP_PREFIX/bin/php-config</p>
<p>export PHP_PREFIX=&#8221;/usr/local&#8221;<br />
make</p>
<p>You must specify the real prefix where PHP is installed in the &#8220;export&#8221;<br />
command. It may be &#8220;/usr&#8221; &#8220;/usr/local&#8221;, or something else.</p>
<p>Step 2. Installing eAccelerator</p>
<p>make install</p>
<p>pepito2:/usr/src/eaccelerator-0.9.4-rc2# make install<br />
Installing shared extensions:     /usr/lib/php4/20020429/<br />
front3<br />
Installing shared extensions:     /usr/lib/php4/20020429/</p>
<p>To install as PHP extension:</p>
<p>en /etc/php/apache2/php.ini<br />
extension=&#8221;eaccelerator.so&#8221;<br />
# memoria  a usar<br />
eaccelerator.shm_size=&#8221;256&#8243;<br />
eaccelerator.cache_dir=&#8221;/var/cache/eaccelerator&#8221;<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.filter=&#8221;"<br />
eaccelerator.shm_max=&#8221;0&#8243;<br />
eaccelerator.shm_ttl=&#8221;0&#8243;<br />
eaccelerator.shm_prune_period=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;0&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;9&#8243;</p>
<p>Step 4. Creating cache directory</p>
<p>mkdir /var/cache/eaccelerator<br />
chmod 0777 /var/cache/eaccelerator</p>
<p># errores:<br />
error: C++ preprocessor &#8220;/lib/cpp&#8221; fails sanity check<br />
soluicon: apt-get install g++</p>
]]></content:encoded>
			<wfw:commentRss>http://www.senin.org/weblog/2006/05/19/eaccelator-cache-para-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interprestar ApacheTop</title>
		<link>http://www.senin.org/weblog/2006/05/19/interprestar-apachetop/</link>
		<comments>http://www.senin.org/weblog/2006/05/19/interprestar-apachetop/#comments</comments>
		<pubDate>Fri, 19 May 2006 11:21:39 +0000</pubDate>
		<dc:creator>jorge</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://senin.org/weblog/interprestar-apachetop</guid>
		<description><![CDATA[Last hit: 09:17:07 atop runtime: 0 days, 00:58:20 09:17:08 All: 638924 reqs ( 182.65/sec) 3433539K ( 981.6K/sec) ( 5.4K/req) 2xx: 455415 (71.3%) 3xx: 175745 (27.5%) 4xx: 7746 ( 1.2%) 5xx: 10 ( 0.0%) R ( 30s): 5195 reqs ( 173.17/sec) 25405K ( 846.8K/sec) ( 4.9K/req) 2xx: 3447 (66.4%) 3xx: 1715 (33.0%) 4xx: 33 ( 0.6%) [...]]]></description>
			<content:encoded><![CDATA[<p>Last hit: 09:17:07        atop runtime:  0 days, 00:58:20              09:17:08<br />
All:       638924 reqs ( 182.65/sec)      3433539K ( 981.6K/sec)  (   5.4K/req)<br />
2xx:  455415 (71.3%) 3xx:  175745 (27.5%) 4xx:  7746 ( 1.2%) 5xx:    10 ( 0.0%)<br />
R ( 30s):    5195 reqs ( 173.17/sec)        25405K ( 846.8K/sec)  (   4.9K/req)<br />
2xx:    3447 (66.4%) 3xx:    1715 (33.0%) 4xx:    33 ( 0.6%) 5xx:     0 ( 0.0%)</p>
<p> REQS REQ/S    KB  KB/S URL<br />
  103   3.4  2983  99.4 /<br />
   56   1.9   239   8.0 /tickerdata/story2.dat<br />
   47   1.6   104   3.6 /home/today/patina.js<br />
   44   1.5    82   2.8 /home/styles/home_d0e2ee.css<br />
<snip></p>
<p>Primera linea<br />
 -Last hit -> ultima peticion<br />
 -tiempo uptime<br />
 -hora actual</p>
<p> Peticiones totales ( peticiones/segundo )<br />
 Kbs totales ( kbs / segundo )<br />
 media kb por peticion</p>
<p> 2xx -> codigo 222<br />
 3xx -> codigo 3xx<br />
 4xx -> codigo 4xx<br />
 4xx -> codigo 5xx</p>
<p> 2ª linea es igual pero de hace 30 segundos, para ver si todo va bien en el momento actual</p>
<p> Teclas : s -> menu de ordenacion</p>
<p> 	r	Sort by REQUESTS<br />
	R	Sort by REQUESTS/SECOND<br />
	b	Sort by BYTES<br />
	B	Sort by BYTES/SECOND</snip></p>
]]></content:encoded>
			<wfw:commentRss>http://www.senin.org/weblog/2006/05/19/interprestar-apachetop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
