my web server notes

published 3/08/2018

some notes :

  • setup web server
    • opkg install lighttpd lighttpd-mod-cgi

    • opkg install php7 php7-cgi php7-mod-ctype php7-mod-gd php7-mod-mbstring php7-mod-hash php7-mod-json php7-mod-zip

    • in (/etc/lighttpd/conf.d/30-cgi.conf) cgi.assign add line : ".php"  => "/usr/bin/php-cgi"

 

  • setup USB
    • opkg install e2fsprogs kmod-usb-storage kmod-fs-ext4  kmod-usb-uhci kmod-usb-ohci kmod-usb2 usbutils block-mount

    • block detect > /etc/config/fstab