我正在使用phpbrew安装特定的php版本使用:
phpbrew install 5.3.10 +default +apxs2=/usr/bin/apxs2
给我看一条信息:
Apache module dir /usr/lib/apache2/modules is not writable.
Please consider using chmod or sudo.
我不知道该怎么做。如果有人能帮我,那就太好了!谢谢
这意味着您运行的用户没有修改目录/usr/lib/apache2/modules
的权限,这是进行安装所必需的。建议您使用chmod
修改目录的权限(除非您知道自己在做什么,否则这是个坏主意),或者通过sudo
:使用超级用户凭据运行命令
$ sudo phpbrew install 5.3.10 +default +apxs2=/usr/bin/apxs2
尝试使用sudo 运行相同的命令
sudo phpbrew install 5.3.10 +default +apxs2=/usr/bin/apxs2