04 Feb 2010 à 12:46 par isontheline
Vous souhaitez installer PHP sur votre Fonera ? Suivez le guide !
Introduction
Cet article n'aborde que l'installation de PHP en ligne de commande (PHP-CLI).Possibilité 1 : Installer PHP sur la mémoire Flash
Éditez le fichier /etc/opkg.conf pour y inclure une nouvelle source de paquets:| 1. | src snapshots http://downloads.openwrt.org/kamikaze/8.09.2/atheros/packages ![]() |
| 2. | dest root / |
| 3. | dest ram /tmp |
| 4. | lists_dir ext /var/opkg-lists |
Mettez à jour opkg et ses fichiers de configuration :
| 1. | opkg update |
Installez PHP :
| 1. | opkg install php5 php5-cli |
Vous pouvez désormais tester vos scripts :
| 1. | php5-cli -r "echo 'Bonjour le monde!';" |
opkg.conf :
src snapshots http://downloads.openwrt.org/kamikaze/8.09.2/atheros/packages

dest root /tmp/run/mountd/sda1/FONERA_ROOT
dest ram /tmp
lists_dir ext /var/opkg-lists
opkg update
php5 :
opkg install php5
opkg install php5-cli
symbolic links to libs :
ln -s /tmp/run/mountd/sda1/FONERA_ROOT/usr/lib/libz.so /usr/lib/libz.so.1
ln -s /tmp/run/mountd/sda1/FONERA_ROOT/usr/lib/libcrypto.so.0.9.8 /usr/lib/li
bcrypto.so.0.9.8
ln -s /tmp/run/mountd/sda1/FONERA_ROOT/usr/lib/libssl.so.0.9.8 /usr/lib/libss
l.so.0.9.8