【问题标题】:run composer.phar install from elsewhere从其他地方运行 composer.phar install
【发布时间】:2015-12-21 05:14:06
【问题描述】:

我需要在/public/website/examplewebstie.com/dev.examplewebsite.com/examplewebsite/ 运行composer.phar 安装。

但我的服务器对高于/public/website/ 的级别有open_basedir 限制。

有没有办法从/public/website 运行作曲家,但要在/public/website/examplewebstie.com/dev.examplewebsite.com/examplewebsite/ 中进行更改 (这就是我有我的composer.json)而不删除open_basedir 限制?

也许是一个符号链接的解决方法?

【问题讨论】:

  • 你能去/public/website/examplewebstie.com/dev.examplewebsite.com/examplewebsite/运行php /public/composer.phar install吗?

标签: symfony composer-php open-basedir


【解决方案1】:

尝试运行

$ php composer.phar diagnose 

首先,如果成功且没有显示任何问题,请尝试运行

$ php composer.phar install --working-dir /public/website/examplewebstie.com/dev.examplewebsite.com/examplewebsite

不过,您的路径中似乎有错字。

参考见

【讨论】:

    猜你喜欢
    • 2019-11-30
    • 1970-01-01
    • 1970-01-01
    • 2013-02-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-20
    相关资源
    最近更新 更多