duanqiao8925
duanqiao8925
2014-04-10 08:13

phpbrew安装特定的php版本(ubuntu 13.04)

已采纳

I am using phpbrew have installed specific php version use:

phpbrew install 5.3.10 +default +apxs2=/usr/bin/apxs2

show me a information:

Apache module dir /usr/lib/apache2/modules is not writable.
Please consider using chmod or sudo.

i have no idea how to do that.if someone can help me, it will be great! Thanks!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • douhuan1648 douhuan1648 7年前

    It means the user you're running as does not have permissions to modify the directory /usr/lib/apache2/modules, which is necessary to do the installation. You're advised to either modify the permissions of the directory using chmod (bad idea unless you know what you're doing) or to run the command with superuser credentials via sudo:

    $ sudo phpbrew install 5.3.10 +default +apxs2=/usr/bin/apxs2
    
    点赞 评论 复制链接分享
  • doris20141022 doris20141022 7年前

    Try to run same command using sudo

    sudo phpbrew install 5.3.10 +default +apxs2=/usr/bin/apxs2
    
    点赞 评论 复制链接分享