[BlueOnyx:20722] Re: 5209R "Open Basedir (Vsite):" not working?

Michael Stauber mstauber at blueonyx.it
Fri Feb 24 02:57:45 -05 2017


Hi Dirk,

> In my case I want sendmail -> aliases call a php programm /home/sites/<somedomain>/artisan.sh which runs
> 
> /home/solarspeed/php/bin/php -c /home/sites/<somedomain>/php.ini /home/sites/<somedomain>/laravel/artisan mail:parse
> 
> But I got the error message, that /home/solarspeed/php/bin/php is not in the open_basedir.

Ah, I see what you're doing there. For things like this just make a copy
php.ini and place it somewhere. Like this:

mkdir /home/sites/<somedomain>/php-extra
cp /home/sites/<somedomain>/php.ini
/home/sites/<somedomain>/php-extra/php.ini

Then edit that extra php.ini and comment out the open_basedir line and
just use that one to call your script:

/home/solarspeed/php/bin/php -c
/home/sites/<somedomain>/php-extra/php.ini
/home/sites/<somedomain>/laravel/artisan mail:parse

The Vsite's php.ini will always have open_basedir as that's mandatory.
Hence I suggest the little work around with a separate one.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list