Sinkko.org Mediaräppänä

Mediaperheen näivettynyt pää-äänenkannattaja

Sinkko.org Mediaräppänä header image 2

Artikkelin kirjoitti Kimmo

Päivitysvinkkejä PHP5 5.2.11 Debian Lenny

22. Syyskuuta 2009 · Ei Kommenttia

[See English summary in the end of article]

PHP5 on päivittynyt ja korjannut muutamia vakavia tietoturvaongelmia. Kääntäminen tuottaa taas pientä tuskaa GD 2.0.35:n kanssa (gdkanji.so ei löydä libiconv:ia). Tässä pari vinkkiä, pätevät Debian Lennyyn.

1) Libiconv vaaditaan

Aiempi PHP5 versio 5.2.8 ei vaatinut erillistä libiconv:ia asennettavaksi tai sitten päivitys Etchistä Lennyyn on muuttanut asian. Asenna libiconv-1.13-1 (konfiguroi, käännä ja aja ldconfig -v).

2) configure skripti ei löydä juuri asentamaasi libiconvi:ia

Anna siis configure optio –with-iconv=/usr/local/lib

3) make install ei toimi tyhjällä httpd.conf:illa

Lisää siis /etc/apache2/httpd.conf tiedostoon seuraavat rivit, jotta axps onnistuu:

#LoadModule directive to aid module installations
#LoadModule dummy_module /usr/lib/apache2/modules/mod_dummy.so

4) Aja libtool make install:in jälkeen

libtool –finish /root/php5/php-5.2.11/libs

Ja voilá! 🙂

English summary: Building PHP5 5.2.11 fails under Debian Lenny. If you have succesfully configured and compiled PHP with GD and need to upgrade to the latest version, there might be some problems. I had a problem, that configure has a new (un-documented?) prerequisite libiconv 1.13-1. This library needs to be installed and the configure script needs to be applied “–with-iconv=<dir>” where <dir> is the installed library dir, like /usr/local/lib. Then your empty httpd.conf may not comply with axps and therefore you need to add those dummy -module comments as described above. Then configure, compile and install the new PHP5. Remember to run libtool –finisih for php5 libs at the end. GD version used is the latest stable 2.0.35.

Avainsanat: · , , , , , , , , , , , , , , , , , , , ,

0 kommenttia tähän mennessä ↓

  • Miksei kukaan kommentoi...

Kirjaudu kommentoidaksesi.