Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 22|回复: 0
打印 上一主题 下一主题

android安装light-httpd并且配置php

[复制链接]

1198

主题

2060

帖子

7058

积分

超级版主

Rank: 8Rank: 8

积分
7058
跳转到指定楼层
楼主
发表于 2016-7-6 15:18:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Comsenz Inc.

GMT+8, 2025-12-15 02:07 , Processed in 0.010794 second(s), 8 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表