Openwrt lamp
https://applefreak111.wordpress.com/2013/03/12/howtoopenwrt-lamp-stack%E5%AE%89%E8%A3%9D/
opkg update
安裝Lighttpd, MySQL 5, 和PHP 5。
opkg install lighttpd lighttpd-mod-cgi lighttpd-mod-fastcgi
vi /etc/lighttpd/lighttpd.conf
cgi.assign = ( “.php” => “/usr/bin/php-cgi” )
index-file.names = ( “index.html”, “default.html”, “index.htm”, “default.htm”, “index.php” )
modify port
opkg install php5 php5-cgi
vi /etc/php.ini
doc_root = “/www1″
mkdir /www1
echo “<?php phpinfo(); ?>” > /www1/index.php
/etc/init.d/lighttpd restart
安裝Lighttpd, MySQL 5, 和PHP 5。
opkg install lighttpd lighttpd-mod-cgi lighttpd-mod-fastcgi
vi /etc/lighttpd/lighttpd.conf
cgi.assign = ( “.php” => “/usr/bin/php-cgi” )
index-file.names = ( “index.html”, “default.html”, “index.htm”, “default.htm”, “index.php” )
modify port
opkg install php5 php5-cgi
vi /etc/php.ini
doc_root = “/www1″
mkdir /www1
echo “<?php phpinfo(); ?>” > /www1/index.php
/etc/init.d/lighttpd restart