简体   繁体   English

如何在ubuntu中安装composer以使用omnipay?

[英]How to install composer in ubuntu for using omnipay?

I am working to implement online payment system in codeigniter. 我正在努力在Codeigniter中实现在线支付系统。 So, I am using omnipay with codeigniter. 因此,我在Codeigniter中使用omnipay。 For this reason, I have to install composer. 因此,我必须安装作曲家。

I am trying several times to install composer in ubuntu 12.04. 我正在尝试几次在ubuntu 12.04中安装composer。 But I have failed. 但是我失败了。 My terminal display an error as, 我的终端显示一个错误,

 Could not create file /var/www/tcm/composer.phar: fopen(/var/www/tcm/composer.phar):
 failed to open stream: Permission denied
 Download failed: fopen(/var/www/tcm/composer.phar): failed to open stream: Permission 
 denied fwrite() expects parameter 1 to be resource, boolean given

Could you suggest me, How can I solve this problem ? 你能建议我,我该如何解决这个问题?

I have found the solution. 我找到了解决方案。 I have to change the directory file permission to 777. Now it is ok. 我必须将目录文件权限更改为777。现在可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM