找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7737|回复: 12

[更新含PHP7.0正式版等大量新软件的软件源]发一个支持 HTTP/2 的 nginx

[复制链接]
发表于 2015-11-20 00:33 | 显示全部楼层 |阅读模式
本帖最后由 cmheia 于 2015-12-20 02:21 编辑

UPDATE:20151220
更新 PHP 7.0.1
更新 baidupcs



UPDATE:20151214
更新 ARIA2 1.19.3
增加 motion 3.4.1
更新 openssl 1.0.2e



UPDATE:20151204
更新 PHP7.0.0正式版,增加以下扩展:
  1. bcmath
  2. bz2
  3. memcached
  4. mysqlnd
复制代码

更新 ARIA2 1.19.2



UPDATE:20151201
更新 ARIA2 1.19.0



UPDATE:20151129
增加 memcached



UPDATE:20151128
更新 PHP7.0.0RC8。增加 mysql 扩展,兼容使用 mysql_* 函数的旧程序。



UPDATE:20151126
总算搞定 PHP 的 IMAP 扩展,顺便把编译的 IPK 包挂出来,做了个小小的源,这里的软件部分看似与Entware-ng重复,但是我这里更多的是最新软件。
还增加了一些 Entware-ng 没有的软件包,例如 PHP7、krb5-libs 和 perp_2.07 (就是那个售价 50nb 的帖子,我把它编译成 IPK 了,哼,叫你卖 50)。

下面是重点
一句话添加:
  1. wget -O - http://entware.cmheia.com:88/binaries/mipsel/installer.sh | sh
复制代码


如果没有预先安装好Entware-ng,这里会自动帮你装上。

手动添加:
打开 /opt/etc/opkg.conf ,在最前面添加一行:
  1. src/gz cmheia-entware-ng http://entware.cmheia.com:88/binaries/mipsel
复制代码


在线预览软件源提供的 IPK 包:
点这里
已验证: nginx 1.9.7 + PHP7 组合可以正常使用 HTTP/2,打开 chrome 的信息页面就能看到:




ORIGINAL:20151120
最近在折腾 nginx 随手发个版本。

目前 Chrome 浏览器的实现中 HTTP/2 仅支持 SSL 方式,所以想要尝试 HTTP/2 还需要自备域名以及证书。
作为测试,可以使用以下脚本自行生成“伪”证书:
  1. #!/bin/sh

  2. DIMAINNAME=mydomain.com

  3. openssl req -new -newkey rsa:2048 -nodes -out ${DIMAINNAME}.csr -keyout ${DIMAINNAME}.key -subj "/C=CN/ST=Earth/L=China/O=Dabria Org./OU=IT Dept./CN=*.${DIMAINNAME}"
  4. openssl x509 -req -days 3650 -in ${DIMAINNAME}.csr -signkey ${DIMAINNAME}.key -out ${DIMAINNAME}.crt
复制代码

这样做出来的证书必然会收到浏览器发出的安全警告:

正常的网站(12306 不正常)不该这么玩,当然还是要正规证书的。

呐,这就是正规证书的效果:

诚然,目前的 SSL 多数还是要钱。但是,价格不到 ¥10 啊,少抽包烟就省出来了(然而楼主并不抽烟)。
实在不想出钱?!
好吧,我败了,这里可以申请免费的:
  1. https://buy.wosign.com/free/
复制代码


免nb下载:
点这里 密码: btm7

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2015-11-20 00:39 | 显示全部楼层
本帖最后由 cmheia 于 2015-11-26 01:43 编辑

哦,差点忘了,这是编译配置参数,所有涉及的扩展均为今日最新。

  1. nginx version: nginx/1.9.7
  2. built by gcc 4.8.5 (OpenWrt GCC 4.8.5 unknown)
  3. built with OpenSSL 1.0.2d 9 Jul 2015 (running with LibreSSL 2.3.1)
  4. TLS SNI support enabled
  5. configure arguments: --crossbuild=Linux::mipsel --prefix=/opt --conf-path=/opt/etc/nginx/nginx.conf --with-ipv6 --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --add-module=nginx-upstream-check --with-http_gunzip_module --with-http_gzip_static_module --with-http_secure_link_module --with-http_v2_module --add-module=nginx-substitutions-filter --with-openssl=libressl --with-libatomic=libatomic_ops --error-log-path=/opt/var/log/nginx/error.log --pid-path=/opt/var/run/nginx.pid --lock-path=/opt/var/lock/nginx.lock --http-log-path=/opt/var/log/nginx/access.log --http-client-body-temp-path=/opt/var/lib/nginx/body --http-proxy-temp-path=/opt/var/lib/nginx/proxy --http-fastcgi-temp-path=/opt/var/lib/nginx/fastcgi --http-uwsgi-temp-path=/opt/var/lib/nginx/uwsgi --http-scgi-temp-path=/opt/var/lib/nginx/scgi --with-cc=mipsel-openwrt-linux-uclibc-gcc --with-cc-opt='-I/home/hao/router/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/opt/include -I/home/hao/router/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/include -I/home/hao/router/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/usr/include -I/home/hao/router/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/include -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float' --with-ld-opt='-L/home/hao/router/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/opt/lib -L/home/hao/router/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/home/hao/router/Entware-ng/staging_dir/target-mipsel_mips32r2_uClibc-1.0.8/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -L/home/hao/router/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/usr/lib -L/home/hao/router/Entware-ng/staging_dir/toolchain-mipsel_mips32r2_gcc-4.8.5_uClibc-1.0.8/lib -lssp'
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-24 00:55 | 显示全部楼层

烧纸好~~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2015-11-24 22:21 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-25 10:11 | 显示全部楼层
来看看先
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-25 21:43 | 显示全部楼层
看看也行,。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-25 23:11 | 显示全部楼层
这个不错
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-26 00:14 | 显示全部楼层
来看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-26 07:25 | 显示全部楼层
顶楼主!!1
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-26 21:03 | 显示全部楼层
存档
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-12-14 22:41 | 显示全部楼层
谢谢烧纸,找这个很久了,谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-12-15 23:43 | 显示全部楼层
本帖最后由 iOutMan 于 2015-12-15 23:44 编辑

楼主,弄个一键安装NGINX+PHP+MYSQL的脚本撒
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-12-31 09:11 | 显示全部楼层
不懂,支持。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 05:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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