{"id":1524,"date":"2012-02-07T17:49:23","date_gmt":"2012-02-07T23:49:23","guid":{"rendered":"http:\/\/www.uv.mx\/personal\/gvera\/?p=1524"},"modified":"2012-02-07T17:49:23","modified_gmt":"2012-02-07T23:49:23","slug":"como-instalar-pear-en-php-5-3-10-sobre-iis-7-5","status":"publish","type":"post","link":"https:\/\/www.uv.mx\/personal\/gvera\/2012\/02\/07\/como-instalar-pear-en-php-5-3-10-sobre-iis-7-5\/","title":{"rendered":"Como instalar PEAR en PHP 5.3.10 sobre IIS 7.5"},"content":{"rendered":"<p><a href=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear1.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1526\" src=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear1-500x186.gif\" alt=\"\" width=\"500\" height=\"186\" srcset=\"https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear1-500x186.gif 500w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear1-300x111.gif 300w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear1-205x75.gif 205w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear1.gif 815w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a>Utilizo PEAR en mi instalaci\u00f3n de PHP por el paquete <a title=\"Mail\" href=\"http:\/\/pear.php.net\/package\/Mail\" target=\"_blank\">Mail <\/a>que me permite enviar correos electr\u00f3nicos a un SMTP con autenticaci\u00f3n. En los \u00faltimos paquetes binarios de PHP para Windows, ya no viene incluido el script de instalaci\u00f3n de PEAR, por lo que he tenido que hacerlo manualmente. Aqui la bit\u00e1cora.<!--more--><\/p>\n<p><a href=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear2.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-1527\" src=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear2.gif\" alt=\"\" width=\"214\" height=\"370\" srcset=\"https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear2.gif 268w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear2-174x300.gif 174w\" sizes=\"auto, (max-width: 214px) 100vw, 214px\" \/><\/a>En el blog oficial de PEAR, abordan este detalle en una breve pero acertada entrada: <a title=\"Blog PEAR\" href=\"http:\/\/blog.pear.php.net\/2009\/07\/01\/php-53-windows-and-pear\/\" target=\"_blank\">http:\/\/blog.pear.php.net\/2009\/07\/01\/php-53-windows-and-pear\/<\/a>. Lo que no dice es que primero hay que descargar el archivo <em>go-pear.phar<\/em> y despu\u00e9s ejecutar la instrucci\u00f3n que mencionan.<\/p>\n<h3>Obtener PEAR<\/h3>\n<p>Como lo indica la p\u00e1gina de <a title=\"PEAR\" href=\"http:\/\/pear.php.net\/manual\/en\/installation.getting.php\" target=\"_blank\">PEAR<\/a>, hay que traer el archivo\u00a0<em><\/em><a title=\"Instalar PEAR\" href=\"http:\/\/pear.php.net\/go-pear.phar\" target=\"_blank\">http:\/\/pear.php.net\/go-pear.phar<\/a> y colocarlo en la carpeta PEAR dentro de la instalaci\u00f3n de PHP. Este archivo es el instalador de PEAR.<\/p>\n<h3><a href=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear3.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1528\" src=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear3.gif\" alt=\"\" width=\"238\" height=\"124\" \/><\/a>EJECUTAR EL INSTALADOR<\/h3>\n<p>Ahora si, hay que ejecutar la instrucci\u00f3n que el <a title=\"Blog PEAR\" href=\"http:\/\/blog.pear.php.net\/2009\/07\/01\/php-53-windows-and-pear\/\" target=\"_blank\">blog de PEAR<\/a> nos indica. Pero mejor, vamos a hacer un archivo .bat que ejecute esta instrucci\u00f3n para siguientes instalaciones:<\/p>\n<p><code>@ECHO OFF<br \/>\nset PHP_BIN=php.exe<br \/>\n%PHP_BIN% -d output_buffering=0 PEAR\\go-pear.phar<br \/>\npause<br \/>\n<\/code><br \/>\nEste archivo lo guardo con el nombre go-pear.bat en el directorio ra\u00edz de mi instalaci\u00f3n de PHP.<\/p>\n<p><a href=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear4.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1531\" src=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear4.gif\" alt=\"\" width=\"270\" height=\"127\" \/><\/a>Por \u00faltimo, abro una ventana de comando con privilegios de administrador y ejecuto mi archivo que acabo de crear <em>go-pear.bat<\/em>.<\/p>\n<p><a href=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear5.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1532\" src=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear5-500x117.gif\" alt=\"\" width=\"500\" height=\"117\" srcset=\"https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear5-500x117.gif 500w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear5-300x70.gif 300w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear5.gif 662w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a>Sigo las instrucciones de acuerdo a como quiero mi instalaci\u00f3n y al final, ejecut\u00f3 el archivo para registrar las variables de entorno de PEAR.<\/p>\n<h3><a href=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear6.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1533\" src=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear6-500x346.gif\" alt=\"\" width=\"500\" height=\"346\" srcset=\"https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear6-500x346.gif 500w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear6-300x208.gif 300w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear6.gif 660w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a>INSTALAR UN PAQUETE<\/h3>\n<p>Como lo coment\u00e9 al inicio, para utilizar la clase para enviar correo electr\u00f3nico por medio de un SMTP, necesito instalar el paquete Mail de PEAR. Para hacer esto, en mi ventana de comando, dentro de mi directorio de PHP, ejecuto lo siguiente:<\/p>\n<p><code>pear install --alldeps mail<br \/>\n<\/code><\/p>\n<p><a href=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear7.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1534\" src=\"http:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear7-500x268.gif\" alt=\"\" width=\"500\" height=\"268\" srcset=\"https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear7-500x268.gif 500w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear7-300x161.gif 300w, https:\/\/www.uv.mx\/personal\/gvera\/files\/2012\/02\/pear7.gif 529w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a>Listado de comandos de PEAR: <a title=\"Comandos de PEAR\" href=\"http:\/\/pear.php.net\/manual\/en\/guide.users.commandline.commands.php\" target=\"_blank\">http:\/\/pear.php.net\/manual\/en\/guide.users.commandline.commands.php<\/a><\/p>\n<p>Listo! Tengo mi PEAR instalado con mi paquete Mail en mi equipo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Utilizo PEAR en mi instalaci\u00f3n de PHP por el paquete Mail que me permite enviar correos electr\u00f3nicos a un SMTP con autenticaci\u00f3n. En los \u00faltimos paquetes binarios de PHP para Windows, ya no viene incluido el script de instalaci\u00f3n de PEAR, por lo que he tenido que hacerlo manualmente. Aqui la bit\u00e1cora.<\/p>\n","protected":false},"author":2,"featured_media":1526,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[11,14,93,36],"class_list":["post-1524","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-articulos-2","tag-iis","tag-pear","tag-php"],"_links":{"self":[{"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/posts\/1524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/comments?post=1524"}],"version-history":[{"count":0,"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/posts\/1524\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/media\/1526"}],"wp:attachment":[{"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/media?parent=1524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/categories?post=1524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uv.mx\/personal\/gvera\/wp-json\/wp\/v2\/tags?post=1524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}