You are not logged in.

#1 2011-07-20 10:25:44

Cosmin
Member
Registered: 2008-10-06
Posts: 248

[Solved] Drush problem

Hi, I installed drush from AUR, but it is not working. I get this error:

PHP Warning:  require_once(): open_basedir restriction in effect. File(/usr/lib/drush/includes/environment.inc) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/) in /usr/lib/drush/drush.php on line 26
PHP Warning:  require_once(/usr/lib/drush/includes/environment.inc): failed to open stream: Operation not permitted in /usr/lib/drush/drush.php on line 26
PHP Fatal error:  require_once(): Failed opening required '/usr/lib/drush/includes/environment.inc' (include_path='.:/usr/share/pear') in /usr/lib/drush/drush.php on line 26

I have installed php-pear and here is my php.ini.

Thanks in advance for any advice.

Last edited by Cosmin (2011-07-20 14:02:27)

Offline

#2 2011-07-20 12:21:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] Drush problem

Offline

#3 2011-07-20 14:01:55

Cosmin
Member
Registered: 2008-10-06
Posts: 248

Re: [Solved] Drush problem

falconindy wrote:

Thank you.

The Solution is:

set open_basedir variable to NO VALUE.

Offline

#4 2014-11-21 14:37:08

ram4nd
Member
From: Estonia
Registered: 2014-11-13
Posts: 4
Website

Re: [Solved] Drush problem

Add "/usr/lib/drush/" to open_basedir. I wouldn't just remove all restrictions.

Offline

Board footer

Powered by FluxBB