Страница 1 из 1

Composer

Добавлено: 02 янв 2015, 00:18
ntzch
Пытаюсь поставить Drush (консоль для друпал) через composer, но при наборе команды
composer install
начинают сыпаться ошибки, решил проверить на других командах, например
composer -V
.
Делаю всё в консоли от OpenServer (5.2.2 версия), вот какие ошибки показываются:
Cannot load the ionCube PHP Loader - it was built with configuration API220121212,TS,VC11, whereas running engine is API220100525,NTS,VC9

Warning: PHP Startup: mbstring: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: bz2: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'z:/modules/php/PHP-5.5/ext/php_curl.dll' - ╬яхЁрЎшюээр  ёшёЄхьр эх ьюцхЄ чряєёЄшЄ№ %1.
 in Unknown on line 0

Warning: PHP Startup: exif: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: gd: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: gettext: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: igbinary: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: imap: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: mongo: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: mysqli: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'z:/modules/php/PHP-5.5/ext/php_openssl.dll' - ╬яхЁрЎшюээр  ёшёЄхьр эх ьюцхЄ чряєёЄшЄ№ %1.
 in Unknown on line 0

Warning: PHP Startup: PDFlib: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: pdo_pgsql: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: pdo_sqlite: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: redis: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: soap: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: sockets: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: sqlite3: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: timezonedb: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: xmlrpc: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0

Warning: PHP Startup: xsl: Unable to initialize module
Module compiled with module API=20121212
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
Ошибки со всеми командами одни и те же, drush поставить так и не получилось.

Не подскажете из-за чего это может быть и как исправить?

Добавлено: 02 янв 2015, 00:36
Максим
Прочтите руководство, вы не умеете работать с консолью в Open Server.

Добавлено: 02 янв 2015, 00:50
ntzch
Если вы о том, что сначала надо запускать сервер, а потом консоль, то я так и делаю, в принципе pear работает, команды для модуля php тоже работают, проблема только с Composer... Может я какой-то другой момент упустил?

Добавлено: 02 янв 2015, 00:52
Максим
ntzch, перечитайте еще раз руководство по работе с консолью, особенно последнее предложение, а потом подумайте, что вы делаете не так.

Добавлено: 02 янв 2015, 01:04
ntzch
Всё же разобрался в чём проблема, ошибки при использовании composer наблюдались только в папке с drush, обратил вннимание, что там была папка со своим php, когда удалил эту папку, то ошибка пропала

Добавлено: 02 янв 2015, 01:13
Максим
ntzch, очевидно что вы переключили модуль PHP в настройках Open Server, но не перезапустили после этого консоль. Никакие папки с PHP которые у вас там есть или были не имеют отношения работе PHP в Open Server.

Но если вы пытались запустить и использовать движок PHP из той папки (что удалили) в консоли Open Server, то тогда проблема конечно очевидна, но тогда об этом нужно было писать сразу.

Добавлено: 02 янв 2015, 01:18
ntzch
Я эту папку не сразу и заметил, тут, что вероятно, сам drush и использует модуль php из этой папки... В общем, в следующий раз буду знать,