vendredi 19 février 2010

Play with Symfony 2

Hi folks!

The sfLive 2010 conference was a great day because it has marked the realease of Symfony 2 PR1 !!

Let's play a little with this new framework...
  • Dependency Injection,
  • Twig templating,
  • Bundles,
  • Controllers,
  • Doctrine 2 :),
  • ...

I initiated a git sandbox to let you see how it works...

jeudi 18 février 2010

install PHP 5.3.1 on ubuntu 9.10

PHP 5.3.1 is a requirement if you want to test Symfony2 alpha :

And there is a demo available on my github:

http://github.com/docteurklein/symfony2-tests


Here we go:

add this deb repository in your /etc/apt/sources.list:

deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all

then :

sudo apt-get update && apt-get upgrade


then: ( if it's already installed )

sudo apt-get remove libapache2-mod-php5 php-pear php5 php5-cli php5-common php5-curl php5-gd php5-memcache php5-mysql php5-xdebug php5-apc php5-mcrypt

then:

sudo apt-get install libapache2-mod-php5 php-pear php5 php5-cli php5-common php5-curl php5-gd php5-memcache php5-mysql php5-xdebug php5-apc php5-mcrypt


if some dependencies cannot be installed, do it manually :

wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu38_3.8.1-2ubuntu0.2_i386.deb

sudo dpkg -i libicu38_3.8.1-2ubuntu0.2_i386.deb


wget http://fr.archive.ubuntu.com/ubuntu/pool/main/libt/libtool/libltdl7_2.2.4-0ubuntu4_i386.deb

sudo dpkg -i libltdl7_2.2.4-0ubuntu4_i386.deb

wget http://fr.archive.ubuntu.com/ubuntu/pool/main/libt/libtool/libltdl3_1.5.26-1ubuntu1_i386.deb

sudo dpkg -i libltdl3_1.5.26-1ubuntu1_i386.deb


Voilà!

dimanche 15 novembre 2009

appart story

Posted by Picasa

Le fabuleux appart de kiby....

mercredi 14 octobre 2009

Build php5.3 from source

sudo apt-get install libtidy-dev curl libcurl4-openssl-dev libcurl3 libcurl3-gnutls zlib1g zlib1g-dev libxslt1-dev libzip-dev libzip1 libxml2 libsnmp-base libsnmp15 libxml2-dev libsnmp-dev libjpeg62 libjpeg62-dev libpng12-0 libpng12-dev zlib1g zlib1g-dev libfreetype6 libfreetype6-dev libbz2-dev libmcrypt-dev libmcrypt4 apache2-prefork-dev apache2-dev

Get snapshots de php5.3.x from http://php.net

http://fr.php.net/get/php-5.3.0.tar.gz/from/this/mirror


...for example


tar -zxf php-5.3.0.tar.gz


cd php-5.3.0

make distclean



./configure --with-apxs2=/usr/bin/apxs2 -prefix=/opt/php --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-tidy=/usr --with-curl=/usr/bin --with-curlwrappers --with-openssl-dir=/usr --with-zlib-dir=/usr --enable-mbstring --with-pdo-mysql=/usr --with-xsl=/usr --with-ldap --with-xmlrpc --with-iconv-dir=/usr --with-snmp=/usr --enable-exif --enable-calendar --with-bz2=/usr --with-mcrypt=/usr --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=/usr --enable-mbstring --enable-zip --with-pear --with-config-file-path=/etc/php5 --with-config-file-scan-dir=/etc/php5/conf.d



make

sudo make install


then,

install your php extensions ( apc, mcrypt, pdo, ... )

If unavailable, try:


sudo pecl install pdo


If you have to change your php.ini path, you can use Apache conf Directive :


PHPIniDir /etc/php5/apache2


but with the 'with-config-file-path=/etc/php5' configure option, it will search for /etc/php5/php.ini, so you only have to make a symbolic link between /etc/php5/php.ini /etc/php5/apache2/php.ini