PHP&SQL/

FreeBSD下Apache的PHP模块的安装

发布
更新
字数
269
阅读
1 分钟

今天装freebsd,然后装apache,再装php和php扩展.没有问题.
然后重启apache,发现打不开php页面,提示下载.
咦?没有装好php的模块啊…
然后检查httpd.conf文件,发现没有php5_module的配置行.于是手工添加:

再重启apache,还是报错,提示没有发现’libphp5.so’云云…
奇怪…在网上找了下,在
http://forums.freebsd.org/viewtopic.php?t=42961
看到了如下内容:

text
Always check /usr/ports/UPDATING before installing or upgrading ports. In this case, see entry 20140327:
20140327:
AFFECTS: users of lang/php5 and lang/php55 with Apache module
AUTHOR: ale@FreeBSD.org

The Apache PHP module has been separated from the main PHP port.
If it is needed, install either www/mod_php5 or www/mod_php55.

哦,原来安装方式更新了.后面的就简单了…

bash
cd /usr/ports/www/mod_php55
make install clean

再试试,嗯,没有问题了…

评论

正在载入评论…

留下评论

人机验证
四位数字,看不清可点击图片刷新

评论经审核后显示。

回到顶部 ↑