zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    poj 2388
    BUAA 1489
    poj 2524
    poj 2109
    poj 2503 Babelfish
    poj All in All
    poj 1611 The Suspects
    poj 2299
    poj 1328
    hdu 1008 Elevator
  • 原文地址:https://www.cnblogs.com/cutepig/p/4329580.html
Copyright © 2011-2022 走看看