2016-11-15 83 views
-4

誤差在SSH安裝包baibaratsky/PHP的使用WebMoney在Ubuntu服務器14.0.4使用此代碼:要啓用擴展,驗證它們在這些.ini文件中啓用 - Ubuntu的

composer require baibaratsky/php-webmoney 

[email protected]:/var/www/my# composer require baibaratsky/php-webmoney 
Key kartik-v/yii2-widget-fileinput is a duplicate in ./composer.json at line 25 
Do not run Composer as root/super user! See https://getcomposer.org/root for details 
Using version ^0.15.1 for baibaratsky/php-webmoney 
./composer.json has been updated 
Key kartik-v/yii2-widget-fileinput is a duplicate in ./composer.json at line 25 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Your requirements could not be resolved to an installable set of packages. 

    Problem 1 
    - linslin/yii2-curl 1.0.8 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - linslin/yii2-curl 1.0.8 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - linslin/yii2-curl 1.0.8 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - Installation request for linslin/yii2-curl (locked at 1.0.8, required as *) -> satisfiable by linslin/yii2-curl[1.0.8]. 

    To enable extensions, verify that they are enabled in those .ini files: 
    - /etc/php5/cli/php.ini 
    - /etc/php5/cli/conf.d/05-opcache.ini 
    - /etc/php5/cli/conf.d/10-pdo.ini 
    - /etc/php5/cli/conf.d/20-gd.ini 
    - /etc/php5/cli/conf.d/20-intl.ini 
    - /etc/php5/cli/conf.d/20-json.ini 
    - /etc/php5/cli/conf.d/20-mysql.ini 
    - /etc/php5/cli/conf.d/20-mysqli.ini 
    - /etc/php5/cli/conf.d/20-pdo_mysql.ini 
    - /etc/php5/cli/conf.d/20-readline.ini 
    - /etc/php5/cli/conf.d/20-xsl.ini 
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

Installation failed, reverting ./composer.json to its original content. 

我安裝了這個包但不修復錯誤。

sudo apt-get install php5-gd 
sudo apt-get install php5-intl 
sudo apt-get install php5-xsl 
+2

這個ou tput明確指出,你需要'curl'所以安裝'php5-curl' – Bizley

+1

'需要ext-curl'應該是一個提示... –

+0

謝謝你用安裝CURL修復這個錯誤 – user3770797

回答

0

安裝捲曲解決這個錯誤

sudo apt-get install php5-curl 

您將需要以後重新啓動服務器:

sudo service apache2 restart 

另外,如果你正在使用PHP-FPM,你需要重啓php5-fpm代替

sudo service php5-fpm restart 
+1

另外:'phpenmod curl' – Narf