les paquets installés :
opkg install lighttpd lighttpd-mod-status lighttpd-mod-cgi
opkg install pgsql-server pgsql-cli
opkg install php5-cgi
opkg install php5-mod-gd
opkg install php5-mod-pgsql
opkg install php5-mod-sockets
opkg install php5-mod-session
opkg install php5-mod-pcre
opkg install php5-mod-fileinfo
opkg install php5-mod-iconv
opkg install php5-mod-mbstring
opkg install php5-mod-mcrypt
opkg install php5-mod-pdo
opkg install php5-mod-pdo-pgsql
opkg install php5-mod-pdo-sqlite
opkg install php5-mod-sqlite
opkg install php5-mod-sqlite3
opkg install php5-mod-tokenizer
les options que j'ai (surement) modifié, du moins ce qui me parait pertinent :
lighttpd.conf
Code:
server.modules = (
"mod_status",
"mod_cgi",
)
server.network-backend = "write"
server.document-root = "/web/"
index-file.names = ( "index.html", "index.php", "default.html", "index.htm", "default.htm" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
server.port = 81
server.dir-listing = "enable"
server.upload-dirs = ( "/tmp" )
#### CGI module
#cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" )
cgi.assign = ( ".php" => "/usr/bin/php-cgi" )
#### status module
status.status-url = "/server-status"
status.config-url = "/server-config"
php.ini
Code:
[PHP]
doc_root = "/web"
pour le php.ini, decommenter les modules installés
pour postgreSQL :
Code:
uci set postgresql.config.PGDATA=/srv/postgresql/data
uci set postgresql.config.PGLOG=/srv/postgresql/data/postgresql.log
uci commit
mkdir -p /srv/postgresql/data
chown postgres /srv/postgresql/data
su - postgres
LC_COLLATE="C" initdb --pwprompt -D /srv/postgresql/data
postgre necessite de tourner avec un user non root, donc il faut un firmware avec busybox modifié
--> chez.tinico.free.fr/fonera2n
voila les infos brutes, dis moi si tu bloques sur quelque chose
pas sur d'avoir le temps de mettre au propre sur le wiki, alors n'hesites pas

Ti nicO