Ошибки при запуске Drush on Media Temple (GS)
Я пытаюсь заставить Drush 8 работать на нашем хостинге Media Temple (GS), но получаю ошибки. Смотрите вывод моего терминала ниже:
site.com@n10:~/domains/site.org/web$ drush90
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /nfs/c11/h04/mnt/###/domains/site.org/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php on line 50
Drush command terminated abnormally due to an unrecoverable [error]
error.
Error: syntax error, unexpected ':', expecting ';' or '{' in
/nfs/c11/h04/mnt/###/domains/site.org/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php,
line 50
Drush was not able to start (bootstrap) Drupal. [error]
Hint: This error can only occur once the database connection
has already been successfully initiated, therefore this error
generally points to a site configuration issue, and not a
problem connecting to the database.
Из того, что я понимаю, версия PHP вызывает эту синтаксическую ошибку. К сожалению, указание версии PHP не работает. Вот мой псевдоним:
alias drush90='/usr/bin/php5-latest -c /home/###/etc/drush.ini /home/###/domains/site.org/vendor/bin/drush'
php5-latest
на самом деле это PHP 7. Я не совсем понимаю соглашение об именах MT, но, как бы то ни было, drush, похоже, не использует указанную мной версию PHP. Вот вывод для drush status
:
Drush was attempting to connect to:
Drupal version : 8.4.2
Site URI : http://default
Database driver : mysql
Database hostname : internal-db.s###.gridserver.com
Database port :
Database username : db###
Database name : db###_site
Database : Connected
Default theme : nellek
Administration theme : seven
PHP executable : /usr/bin/php
PHP configuration : /home/###/etc/php.ini
/nfs/c11/h04/mnt/###/users/.hom
e/.drush/drush.ini
PHP OS : Linux
Drush script : /nfs/c11/h04/mnt/###/domains/an
site.org/vendor/
drush/drush/drush.php
Drush version : 8.1.15
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
Install profile : standard
Drupal root : /nfs/c11/h04/mnt/###/domains/site.org/web
Drupal Settings File : sites/default/settings.php
Site path : sites/default
File directory path : sites/default/files
Temporary file : /tmp
directory path
Sync config path : sites/default/files/config_###/
sync
Я делаю что-то неправильно?