Discuz! Board
标题:
android安装light-httpd并且配置php
[打印本页]
作者:
zangcf
时间:
2016-7-6 15:18
标题:
android安装light-httpd并且配置php
1, 下载php-5.4.2_lighttpd_1.4.29_armv5.tar.gz
2, 解包这个目录,得到system目录
3, 修改文件/system/etc/lighttpd/lighttpd.conf
server.document-root = "/sdcard/www"
4, 按照到系统目录:
adb push system /system
cannot open 'system/bin/lighttpd/': No such file or directory
cannot open 'system/bin/php/': No such file or directory
push: system/etc/php/php.ini -> /system/etc/php/php.ini
push: system/etc/lighttpd/lighttpd.conf -> /system/etc/lighttpd/lighttpd.conf
push: system/var/www/index.php -> /system/var/www/index.php
push: system/xbin/php-cgi -> /system/xbin/php-cgi
push: system/xbin/fcgiserver -> /system/xbin/fcgiserver
push: system/xbin/reload_lighttpd.sh -> /system/xbin/reload_lighttpd.sh
push: system/xbin/lighttpd-static -> /system/xbin/lighttpd-static
push: system/xbin/reload_fcgi.sh -> /system/xbin/reload_fcgi.sh
push: system/LICENSE.txt -> /system/LICENSE.txt
9 files pushed. 0 files skipped.
2637 KB/s (14543131 bytes in 5.384s)
可见,上面两个软连接push失败,我们需要手动生成
5, adb shell
root@konka6735_bk929_l:/ # cd system/bin
ln -s /system/xbin/lighttpd-static lighttpd <
ln -s /system/xbin/php-cgi php <
root@konka6735_bk929_l:/system/bin #
6,准备一个空的fcgiserver.log文件
再/system/var下面新建一个目录
adb push fcgiserver.log /system/var/log/
7, 准备www文件
8, 启动服务/system/xbin/fcgiserver & lighttpd -f /system/etc/lighttpd/lighttpd.conf
欢迎光临 Discuz! Board (http://47.89.242.157:9000/bbs/discuz/)
Powered by Discuz! X3.2