2017-03-14 6 views
1

내가 설치하고 this article에 설명 된대로 drush 실행 내 서버는- Drush

Drush를 사용하여 세계의 php.ini 파일 된 CloudLinux 및 cagefs.drupal7입니다 drish.ini 파일 대신이 문제는 open_basedir 및 disable_finctions 함수에 대한 일부 오류를 발생시킵니다.

> The following restricted PHP modes have non-empty values:   
> [error] open_basedir and disable_functions. This configuration is 
> incompatible with drush. Please check your configuration settings in 
> /opt/cpanel/ea-php56/root/etc/php.ini or in your drush.ini file; see 
> examples/example.drush.ini for details. is_dir(): open_basedir 
> restriction in effect.      [warning] 
> File(/usr/share/drush/commands) is not within the allowed path(s): 
> (/home/:/usr/lib/php:/usr/local/lib/php:/usr/local/bin:/usr/share/drush:/usr/share/drush/commands:/etc:/tmp) 
> preflight.inc:518 PHP configuration  : 
> /opt/cpanel/ea-php56/root/etc/php.ini 
>       /home/username/.drush/drush.ini PHP OS     : Linux Drush script   : /usr/local/bin/drush Drush 
> version   : 8.1.9 Drush temp directory : /tmp Drush 
> configuration : Drush alias files  : 

그래서 내가 /opt/cpanel/ea-php56/root/etc/php.ini 대신 /홈을 사용하기위한 drush : 나는 drush 상태를 실행할 때

날 다음 command.give /username/.drush/drush.ini

어떻게 서버 php.ini 파일 대신 drush.ini 파일을 사용할 수 있습니까?

보안 reasone을 위해 전역 php.ini 파일을 편집하고 싶지 않습니다.

답변

1

.bashrc 파일에 EXPORT PHP_INI = "/ home/username/.drush/drush.ini"를 추가 했습니까?

+0

** **/home/username/.drush/drush.bashrc **에 하나의 파일 ** **/home/username/.bashrc **에 다른 파일 ** drush.bashrc에 코드를 추가 할 때 Drush에서 아무런 변화가 없으며 drush 명령으로 오류가 발생하면 .bashrc 파일에 코드를 추가하십시오 **/home/username/.drush/drush.ini : permission dennied * * – omiti

+0

나는이 두 줄을 모든 파일에 추가했지만 어떤 변화도 볼 수 없다 .PHP 설정 위에서 쓴 2 개의 주소에서 파일 호출. – omiti

+0

그리고 recieve 오류 "내보내기 명령을 찾을 수 없습니다" – omiti