Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何使用,请指教 #12

Open
qxdjz opened this issue Apr 4, 2017 · 2 comments
Open

如何使用,请指教 #12

qxdjz opened this issue Apr 4, 2017 · 2 comments

Comments

@qxdjz
Copy link

qxdjz commented Apr 4, 2017

我的openwrt安装php后,无法运行php命令,不知道如何运行该php脚本

@commanderZY
Copy link

php-cgi或者php-cli,但是运行后可能会出现认证错误,不知道你的解决了没

@commanderZY
Copy link

需要web环境,把php放在web网站目录下运行,以natapp.php为例,建议使用php-cli运行,php-cli natapp.php --authtoken=xxxxx即可。提醒:1.php需要5.6以上,php还需要开启openssl扩展模块;2.在openwrt上似乎没有php这个命令,要使用php-cli或者php-cgi或者php-fcgi,当然这些软件可能是需要手动安装的,因为你配置php和web环境时可能没有配置这些模块;3.三个php文件支持三种服务器,ngrok的,我正在试着搭建这个服务器,毕竟有自己的服务器比较方便,还有sunny和natapp的服务器,他们都有免费服务器,运行对应的php客户端需要注册获取对应的隧道ID,以下提到的均为其免费服务器的使用情况,sunny的可以自己设置域名及http用户名密码,但是不是很稳定,natapp的不提供域名服务,会强制更换域名和端口,但是使用的阿里云的服务器,在国内使用相对稳定一些。感觉作者的php版本挺好的,对系统平台的依赖性相对go版本低很多,希望更多的人参与进来进行维护及开发。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants