Archive for July, 2009

PHP 5.3 and PHP-GTK packages

Wednesday, July 8th, 2009

Some days ago I compiled and packaged PHP 5.3 and the GTK-extension. I also put this in my Ubuntu-repository (i386 only):

http://wiki.kaspernj.org/index.php/KnjUbuntuRepository

You can install it like this:

sudo aptitude install php53-cli php53-gtk2

You can then start you PHP-GTK-scripts like this:

php53-gtk myscript.php

You can also start it without the Gtk-extension with:

php53 myscript.php

Notice all the extensions has to be loaded through dl() og the “php.ini” which is placed in “/opt/php53/lib/”. Also the SQLite3 is built static, where all the other extensions are build shared.

Happy hacking…