php 5.3 https://cdn1.keopx.net/ es PHP 5.2 en Ubuntu Lucid (Downgrade) https://cdn1.keopx.net/blog/php-52-en-ubuntu-lucid-downgrade <span>PHP 5.2 en Ubuntu Lucid (Downgrade)</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Tras la actualización a Ubuntu 10.04, nos ha traído algún que otra incompatibilidad en el código php de algunas aplicaciones, algunas de ellas relacionadas con Drupal. Vamos a ver como tener una versión anterior de php.</p> <pre> <code class="language-bash">#!/bin/sh # Script to install PHP 5.2 from 9.10 on 10.04 # And pin it so it does not get updated PKGS=`dpkg -l | grep php | awk '{print $2}'` apt-get remove $PKGS sed s/lucid/karmic/g /etc/apt/sources.list | tee /etc/apt/sources.list.d/karmic.list mkdir -p /etc/apt/preferences.d/ for PACKAGE in $PKGS do echo "Package: $PACKAGE Pin: release a=karmic Pin-Priority: 991 " | tee -a /etc/apt/preferences.d/php done apt-get update apt-get install $PKGS</code></pre><p>Hora ya tendremos los repositorios de karmic para la el php que contiene la version 5.2 Referencias:</p> <ul><li><a href="http://2bits.com/drupal-planet/various-ways-running-php-52-ubuntu-1004-lucid-lynx.html">http://2bits.com/drupal-planet/various-ways-running-php-52-ubuntu-1004-lucid-lynx.html</a></li> <li><a href="http://civicactions.com/blog/2010/may/26/ubuntu_1004_and_drupal">http://civicactions.com/blog/2010/may/26/ubuntu_1004_and_drupal</a></li> <li><a href="http://randyfay.com/node/63">http://randyfay.com/node/63</a></li> <li><a href="http://mrkandy.wordpress.com/2010/04/16/install-php-5-2-x-in-ubuntu-10-04-lucid/">http://mrkandy.wordpress.com/2010/04/16/install-php-5-2-x-in-ubuntu-10-04-lucid/</a></li> </ul></div> <span><span>keopx</span></span> <span><time datetime="2010-07-02T17:54:05+02:00" title="Viernes, Julio 2, 2010 - 17:54">Vie, 02/07/2010 - 17:54</time> </span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/php" hreflang="es">PHP</a></div> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/categoria/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/php" hreflang="es">php</a></div> <div class="field__item"><a href="/tag/php-53" hreflang="es">php 5.3</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comentarios</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=190&amp;2=field_comments&amp;3=comment" token="-RlDJZY-Ed1asPAuCt6me5QCDLHjHESA-4SIDMydOIM"></drupal-render-placeholder> </div> </div> </section> Fri, 02 Jul 2010 15:54:05 +0000 keopx 190 at https://cdn1.keopx.net Instalacion de php 5.2.x en Debian Testing (squeeze) https://cdn1.keopx.net/blog/instalacion-de-php-52x-en-debian-testing-squeeze <span>Instalacion de php 5.2.x en Debian Testing (squeeze)</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Para poder funcionar correctamente con Drupal 6.x es necesario el tener una versión anterior a la existente en el repositorio. En este caso es necesario la instalación de la versión de 5.2.x de php. Para ello es necesario desactualizar o eliminar todos los paquetes de php que tengamos. Creamos el siguiente script.</p> <pre lang="bash" line="1" xml:lang="bash"> sudo nano quitar_php.sh</pre><!--break--><pre lang="bash" line="1" xml:lang="bash"> php_installed=`dpkg -l | grep php| awk '{print $2}' |tr "\n" " "` echo $php_installed sudo apt-get purge $php_installed</pre><p>Y ejecutamos.</p> <pre lang="bash" line="1" xml:lang="bash"> sudo sh quitar_php.sh</pre><p>Ahora procedemos a configurar las preferencias y repositorios para desacargar la nueva versión. <strong>/etc/apt/preferences.d/php</strong></p> <pre lang="bash" line="1" xml:lang="bash"> sudo nano /etc/apt/preferences.d/php</pre><p>Y pegamos:</p> <pre lang="bash" line="1" xml:lang="bash"> Package: php5 Pin: release a=lenny Pin-Priority: 991 Package: php5-exactimage Pin: release a=lenny Pin-Priority: 991 Package: php5-ffmpeg Pin: release a=lenny Pin-Priority: 991 Package: php5-gpib Pin: release a=lenny Pin-Priority: 991 Package: php5-lasso Pin: release a=lenny Pin-Priority: 991 Package: php5-mapscript Pin: release a=lenny Pin-Priority: 991 Package: php5-ming Pin: release a=lenny Pin-Priority: 991 Package: php5-uuid Pin: release a=lenny Pin-Priority: 991 Package: php5-adodb Pin: release a=lenny Pin-Priority: 991 Package: php5-auth-pam Pin: release a=lenny Pin-Priority: 991 Package: php5-clamav Pin: release a=lenny Pin-Priority: 991 Package: php5-geoip Pin: release a=lenny Pin-Priority: 991 Package: php5-idn Pin: release a=lenny Pin-Priority: 991 Package: php5-memcache Pin: release a=lenny Pin-Priority: 991 Package: php5-memcached Pin: release a=lenny Pin-Priority: 991 Package: php5-ps Pin: release a=lenny Pin-Priority: 991 Package: php5-radius Pin: release a=lenny Pin-Priority: 991 Package: php5-sasl Pin: release a=lenny Pin-Priority: 991 Package: php5-suhosin Pin: release a=lenny Pin-Priority: 991 Package: php5-svn Pin: release a=lenny Pin-Priority: 991 Package: php5-cgi Pin: release a=lenny Pin-Priority: 991 Package: php5-cli Pin: release a=lenny Pin-Priority: 991 Package: php5-curl Pin: release a=lenny Pin-Priority: 991 Package: php5-dbg Pin: release a=lenny Pin-Priority: 991 Package: php5-dev Pin: release a=lenny Pin-Priority: 991 Package: php5-enchant Pin: release a=lenny Pin-Priority: 991 Package: php5-gd Pin: release a=lenny Pin-Priority: 991 Package: php5-gmp Pin: release a=lenny Pin-Priority: 991 Package: php5-imap Pin: release a=lenny Pin-Priority: 991 Package: php5-interbase Pin: release a=lenny Pin-Priority: 991 Package: php5-intl Pin: release a=lenny Pin-Priority: 991 Package: php5-ldap Pin: release a=lenny Pin-Priority: 991 Package: php5-mcrypt Pin: release a=lenny Pin-Priority: 991 Package: php5-odbc Pin: release a=lenny Pin-Priority: 991 Package: php5-pgsql Pin: release a=lenny Pin-Priority: 991 Package: php5-pspell Pin: release a=lenny Pin-Priority: 991 Package: php5-recode Pin: release a=lenny Pin-Priority: 991 Package: php5-snmp Pin: release a=lenny Pin-Priority: 991 Package: php5-sqlite Pin: release a=lenny Pin-Priority: 991 Package: php5-sybase Pin: release a=lenny Pin-Priority: 991 Package: php5-tidy Pin: release a=lenny Pin-Priority: 991 Package: php5-xmlrpc Pin: release a=lenny Pin-Priority: 991 Package: php5-xsl Pin: release a=lenny Pin-Priority: 991 Package: php5-librdf Pin: release a=lenny Pin-Priority: 991 Package: php5-remctl Pin: release a=lenny Pin-Priority: 991 Package: php5-symfony1.0 Pin: release a=lenny Pin-Priority: 991 Package: php5-xapian Pin: release a=lenny Pin-Priority: 991 Package: php5-xcache Pin: release a=lenny Pin-Priority: 991 Package: php5-xdebug Pin: release a=lenny Pin-Priority: 991 Package: php5-common Pin: release a=lenny Pin-Priority: 991 Package: php5-mysql Pin: release a=lenny Pin-Priority: 991 Package: libapache2-mod-php5 Pin: release a=lenny Pin-Priority: 991 Package: libapache2-mod-php5filter Pin: release a=lenny Pin-Priority: 991 Package: php-pear Pin: release a=lenny Pin-Priority: 991</pre><p><strong>/etc/apt/sources.list</strong></p> <pre lang="bash" line="1" xml:lang="bash"> $ sudo nano /etc/apt/sources.list</pre><pre lang="bash" line="1" xml:lang="bash"> # deb cdrom:[Debian GNU/Linux testing _testing_ - Official Snapshot i386 CD Binary-1 20100416-11:48]/ testing main #deb cdrom:[Debian GNU/Linux testing _testing_ - Official Snapshot i386 CD Binary-1 20100416-11:48]/ testing main deb http://ftp.de.debian.org/debian/ testing main non-free contrib deb-src http://ftp.de.debian.org/debian/ testing main non-free contrib deb http://security.debian.org/ testing/updates main contrib non-free deb-src http://security.debian.org/ testing/updates main contrib non-free ### Chromium deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main ### Opera deb http://deb.opera.com/opera testing non-free ### VirtualBox deb http://download.virtualbox.org/virtualbox/debian lenny non-free ### Multimedia deb http://www.debian-multimedia.org stable main contrib non-free #deb http://www.debian-multimedia.org testing main contrib non-free</pre><p><strong>/etc/apt/sources.list.d/lenny.list</strong></p> <pre lang="bash" line="1" xml:lang="bash"> $ sudo nano /etc/apt/sources.list.d/lenny.list</pre><pre lang="bash" line="1" xml:lang="bash"> deb http://ftp.de.debian.org/debian/ lenny main non-free contrib deb-src http://ftp.de.debian.org/debian/ lenny main non-free contrib</pre><p><strong>/etc/apt/apt.conf</strong></p> <pre lang="bash" line="1" xml:lang="bash"> $ sudo nano /etc/apt/apt.conf</pre><pre lang="bash" line="1" xml:lang="bash"> APT::Default-Release "testing"; APT::Cache-Limit 100000000; Apt::Get::Purge; APT::Clean-Installed; APT::Get::Fix-Broken; APT::Get::Fix-Missing; APT::Get::Show-Upgraded "true"; </pre><p>Ahora actualizamos e instalamos los paquetes.</p> <pre lang="bash" line="1" xml:lang="bash"> $ sudo aptitude update</pre><pre lang="bash" line="1" xml:lang="bash"> $ sudo aptitude install -t lenny php5</pre><p>En este caso solo hemos instalado php5, pero podríamos instalar todos lo que necesitásemos. Nos mostrara un listado con las dependencias y deberemos ser cuidadosos a la hora de elegir que paquetes instalamos. Lo mismo sucederá cuando actualicemos el equipo.</p> </div> <span><span>keopx</span></span> <span><time datetime="2010-06-01T15:17:26+02:00" title="Martes, Junio 1, 2010 - 15:17">Mar, 01/06/2010 - 15:17</time> </span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/php" hreflang="es">PHP</a></div> <div class="field__item"><a href="/categoria/sistemas" hreflang="es">Sistemas</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/php" hreflang="es">php</a></div> <div class="field__item"><a href="/tag/sistemas" hreflang="es">Sistemas</a></div> <div class="field__item"><a href="/tag/php-53" hreflang="es">php 5.3</a></div> </div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comentarios</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=183&amp;2=field_comments&amp;3=comment" token="Gyam1J1DGHfJNpDFJFto-kWbSc3LSNuIucmZQA7tNbM"></drupal-render-placeholder> </div> </div> </section> Tue, 01 Jun 2010 13:17:26 +0000 keopx 183 at https://cdn1.keopx.net NetBeans php y xdebug https://cdn1.keopx.net/blog/netbeans-php-y-xdebug <span>NetBeans php y xdebug</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Con el nuevo desarrollo de módulos de Drupal para poder debugear he necesitado configurar varias herramientas.</p> <ul><li><a href="http://bits.netbeans.org/netbeans/6.8/community/fcs/bundles/netbeans-6.8-ml-linux.sh">NetBeans 6.8</a> soporte php</li> <li><a href="http://drupal.org/">Drupal</a></li> <li><a href="http://www.xdebug.org/">Xdebug</a></li> <li><a href="https://nbdrupalsupport.dev.java.net/files/documents/8560/115265/org-netbeans-modules-php-drupal-module.nbm">nbdrupalsupport</a></li> </ul><p>Para ellos instalamos el paquete de los repositorios de xdebug para php:</p> <pre> <code class="language-bash">sudo aptitude install php5-xdebug</code></pre><p>Una vez realizado esto configuramos nuestro php.ini</p> <p>En mi caso: <code> </code></p> <pre> <code class="language-bash">sudo nano /etc/php5/apache2/php.ini</code></pre><p>Y añadimos al principio:</p> <pre> <code class="language-ini">[PHP] zend_extension=/usr/lib/php5/20060613+lfs/xdebug.so [debug] ; Remote settings xdebug.remote_autostart=off xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 ; General xdebug.auto_trace=off xdebug.collect_includes=on xdebug.collect_params=off xdebug.collect_return=off xdebug.default_enable=on xdebug.extended_info=1 xdebug.manual_url=http://www.php.net xdebug.show_local_vars=0 xdebug.show_mem_delta=0 xdebug.max_nesting_level=100 ;xdebug.idekey= ; Trace options xdebug.trace_format=0 xdebug.trace_output_dir=/tmp xdebug.trace_options=0 xdebug.trace_output_name=crc32 ; Profiling xdebug.profiler_append=0 xdebug.profiler_enable=0 xdebug.profiler_enable_trigger=0 xdebug.profiler_output_dir=/tmp xdebug.profiler_output_name=crc32</code></pre><p> </p> </div> <span><span>keopx</span></span> <span><time datetime="2008-12-26T13:42:04+01:00" title="Viernes, Diciembre 26, 2008 - 13:42">Vie, 26/12/2008 - 13:42</time> </span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/php" hreflang="es">PHP</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/xdebug" hreflang="es">Xdebug</a></div> <div class="field__item"><a href="/tag/php" hreflang="es">php</a></div> <div class="field__item"><a href="/tag/netbeans" hreflang="es">Netbeans</a></div> <div class="field__item"><a href="/tag/php-53" hreflang="es">php 5.3</a></div> </div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comentarios</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=54&amp;2=field_comments&amp;3=comment" token="mgwrng5-mVw3TK8g81XeXIKqkH4oEJba5Qxus511gEk"></drupal-render-placeholder> </div> </div> </section> Fri, 26 Dec 2008 12:42:04 +0000 keopx 54 at https://cdn1.keopx.net