<?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>Itimag.com &#187; Php</title>
	<atom:link href="http://www.itimag.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itimag.com</link>
	<description>Blog de un Ingeniero Informático</description>
	<lastBuildDate>Mon, 09 Jan 2012 11:54:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Alertas SMS Gratis</title>
		<link>http://www.itimag.com/unix/monitoring/alertas-sms-gratis/</link>
		<comments>http://www.itimag.com/unix/monitoring/alertas-sms-gratis/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 23:06:32 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
				<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://www.itimag.com/?p=791</guid>
		<description><![CDATA[Me he enterado por los foros de ovh de un sistema de envío de alertas sms gratis mediante el uso de un servicio de Google: el Google Calendar. Podemos exprimir este recurso utilizando el API de Google Calendar y darle múltiples usos. ¿Se os ocurre alguno?  En los foros de OVH se ha pensado en [...]]]></description>
			<content:encoded><![CDATA[<p>Me he enterado por los foros de ovh de un sistema de envío de alertas sms gratis mediante el uso de un servicio de Google: el Google Calendar.</p>
<p>Podemos exprimir este recurso utilizando el <a href="http://code.google.com/apis/gdata/articles/php_client_lib.html">API de Google Calendar</a> y darle múltiples usos. ¿Se os ocurre alguno?  En los <a href="http://foros.ovh.es">foros de OVH</a> se ha pensado en un sistema de monitorización de servidores.</p>
<p>Un usuario de OVH, Power, <a href="http://foros.ovh.es/showthread.php?t=5184">ha realizado un script php</a> para recibir una alerta por sms en cuanto la carga de alguno de sus servidores supera un &#8220;load average&#8221; determinado. Otro usuario ha pedido adaptar este script para recibir alertas sms cuando alguno de sus servidores pierde la conexión a internet así que esta tarde me he puesto en ello.</p>
<p>El script resultante ha sido el siguiente:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;</pre></div></div>

<p>El script requiere de unas librerías llamadas &#8220;Google Data Client Library Files&#8221;, las cuales incluyo en la versión <a href="http://longcook.com/SMS%20PING.zip">descargable del script</a>, preparada para usar. Simplemente debéis introducir activar el servicio de sms hacía vuestro teléfono en la configuración de vuestro google calendar, introducir los datos a éste en el script y añadir los servidores a monitorizar.</p>
<p>¿Cómo funciona el script? Lo que hace es ir comprobando que cada uno de los servidores introducidos respondan a una petición http. En caso de que no responda, se crea un evento en google calendar, el cúal nos enviará un sms a nuestro teléfono.</p>
<p>Se aceptan críticas y sugerencias. Espero que sea de vuestro agrado <img src='http://www.itimag.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.com/unix/monitoring/alertas-sms-gratis/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Acelera tu servidor Apache + PHP con APC (Alternate PHP Cache)</title>
		<link>http://www.itimag.com/unix/apache-unix/acelera-tu-servidor-apache-php-con-apc-cache/</link>
		<comments>http://www.itimag.com/unix/apache-unix/acelera-tu-servidor-apache-php-con-apc-cache/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 22:52:29 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apc]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=747</guid>
		<description><![CDATA[Intalación realizada sobre Linux Debian. Lo primero de todo: actualizar los repositorios: apt-get update Ahora instalamos algunos paquetes necesarios: apt-get install php-pear php5-dev apache2-dev apache2-prefork-dev Instalarmos APC: pecl install apc Ahora que ya tenemos instalado APC, vamos a añadirlo a la configuración de apache. El siguiente comando lo hace solo: echo &#34;extension=apc.so&#34; &#38;gt; /etc/php5/apache2/conf.d/apc.ini Finalmente, [...]]]></description>
			<content:encoded><![CDATA[<p>Intalación realizada sobre Linux Debian.</p>
<p>Lo primero de todo: actualizar los repositorios:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

<p>Ahora instalamos algunos paquetes necesarios:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php-pear php5-dev apache2-dev apache2-prefork-dev</pre></div></div>

<p>Instalarmos APC:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pecl <span style="color: #c20cb9; font-weight: bold;">install</span> apc</pre></div></div>

<p>Ahora que ya tenemos instalado APC, vamos a añadirlo a la configuración de apache. El siguiente comando lo hace solo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;extension=apc.so&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>apc.ini</pre></div></div>

<p>Finalmente, debemos reiniciar apache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<p>Para más información, <a href="http://es.php.net/apc/" target="_self">visita php.net</a>.</p>
<p>Esto es todo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.com/unix/apache-unix/acelera-tu-servidor-apache-php-con-apc-cache/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Instalando un servidor web con Apache + PHP5</title>
		<link>http://www.itimag.com/unix/apache-unix/como-instalar-un-servidor-web-con-apache-php5-en-linux/</link>
		<comments>http://www.itimag.com/unix/apache-unix/como-instalar-un-servidor-web-con-apache-php5-en-linux/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 18:35:09 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[guia]]></category>
		<category><![CDATA[instalar]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[publica]]></category>
		<category><![CDATA[servidor]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=403</guid>
		<description><![CDATA[Continuando con el curso de administración de servidores, os voy a explicar como instalar un servidor web con apache + PHP5. Instalamos apache: apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert Instalamos PHP5: apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite [...]]]></description>
			<content:encoded><![CDATA[<p>Continuando con el curso de administración de servidores, os voy a explicar como instalar un servidor web con apache + PHP5.</p>
<p>Instalamos apache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert</pre></div></div>

<p>Instalamos PHP5:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl</pre></div></div>

<p>Durante la instalación nos aparecerá una pantalla en la que se nos pedirá:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">¿Quiere continuar instalando libc-client sin soporte para Maildir?</pre></div></div>

<p>Marcamos que si.</p>
<p>Una vez realizada la instalación editamos el fichero /etc/apache2/mods-available/dir.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>dir.conf</pre></div></div>

<p>y cambiamos la linea “DirectoryIndex”:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">          DirectoryIndex index.html index.htm index.shtml index.cgi
          index.php index.php3 index.pl index.xhtml</pre></div></div>

<p>Editamos el fichero /etc/apache2/ports.conf y añadimos la linea “Listen 443”:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>ports.conf</pre></div></div>

<p>El fichero resultante es:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">Listen 80
Listen 443</pre></div></div>

<p>Ahora habilitamos algunos módulos de apache (SSL, rewrite, suexec, i include) mediante los siguientes comandos:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">a2enmod ssl
a2enmod rewrite
a2enmod suexec
a2enmod include</pre></div></div>

<p>Finalmente, para que los cambios surjan efecto, recargamos la configuración de Apache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload</pre></div></div>

<p>Ya tenemos nuestro servidor web en marcha. Ahora simplemente debemos abrir el puerto 80 en nuestro router y nuestro servidor web será accesible en internet escribiendo en el navegador nuestra ip pública.</p>
<p>Un saludo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.com/unix/apache-unix/como-instalar-un-servidor-web-con-apache-php5-en-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

