<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Michael,<br>
<div class="moz-cite-prefix"><br>
</div>
<blockquote type="cite"
cite="mid:ema780eb08-14d7-4c4f-9865-3099c803f1a6@334ffb94.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style id="css_styles">blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }a img { border: 0px; }li[style='text-align: center;'], li[style='text-align: center; '], li[style='text-align: right;'], li[style='text-align: right; '] { list-style-position: inside;}body { font-family: Calibri; font-size: 16pt; }.quote { margin-left: 1em; margin-right: 1em; border-left: 5px #ebebeb solid; padding-left: 0.3em; }</style>
<div>I am having problems with WordPress CLI scripts andÂ
open_basedir. The BlueOnyx GUI page will not accept the folder
paths that need to be allowed so I have been manually editing
the php.ini to put a ; in front of the open_basedir directive.
That works but gets over written every so often and then the
errors come back.</div>
<div><br>
</div>
<div>I have open_basedir allowed in both the server and vsite GUI
configs but that does not seem to actually do anything.</div>
<div><br>
</div>
<div>I am sure I am doing something wrong but there is no search
on the mailing list archive any longer and google was no help
with BlueOnyx specifically.</div>
</blockquote>
<br>
CLI does not know for which Vsite a php script is executed, so Vsite
config doesn't have any impact to CLI. Server config should work,
but is a security hole. The best way is to change command line (in
cron?)<br>
<br>
Change<br>
/usr/bin/php /path/to/script.php<br>
to<br>
/usr/bin/php -d open_basedir=none /path/to/script.php<br>
<br>
This should work and would be the best solution.<br>
<br>
Hope that helps.<br>
<br>
Best regards,<br>
Juerg<br>
</body>
</html>