<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all<div class=""><br class=""></div><div class="">The command below will bypss open_basedir restrictions without going via the wget/curl method. This comes in handy when you dont want to expose your PHP scripts to the outside world for example...</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">/home/solarspeed/php/bin/php -d open_basedir=NULL /home/sites/<a href="http://www.mysite.com/web/myfile.php" class="">www.mysite.com/web/myfile.php</a> </div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">GK</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 16 Nov 2015, at 12:31 PM, Dan Porter <<a href="mailto:twinwolf.monitor@gmail.com" class="">twinwolf.monitor@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I was not calling them that way - simply with:  php  /home/sites/www.mysite/myfile.php   Thanks I will give that a try and if that does not work then I will go with Maurice's suggestion.   Thanks for the ideas guys!!!<div class=""><br class=""></div><div class="">Dan</div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature">Dan Porter<br class="">Twin Wolf Technology Group, LLC<br class=""></div></div>
<br class=""><div class="gmail_quote">On Sun, Nov 15, 2015 at 7:07 PM, Jim Matysek <span dir="ltr" class=""><<a href="mailto:matysekj@usms.org" target="_blank" class="">matysekj@usms.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <div class="">Are you explicitly referencing the
      Solarspeed PHP in your cron file? In my shell files that are
      executed by cron, I have to call php like this in order to get the
      Solarspeed version of php rather than the "stock" php from the
      server:<br class="">
      <br class="">
      /home/solarspeed/php/bin/php /home/sites/<a href="http://www.mysite.com/myfile.php" target="_blank" class="">www.mysite.com/myfile.php</a><span class="HOEnZb"><font color="#888888" class=""><br class="">
      <br class="">
      -jim<br class="">
      <br class="">
    </font></span></div><div class=""><div class="h5">
    <blockquote type="cite" class="">
      <div dir="ltr" class="">
        <div class="">I am hitting a brick wall.   I have a VPS with a single
          site.  It will never have more sites.   It has the PHP upgade
          and is running PHP version 5.6.12</div>
        <div class=""><br class="">
        </div>
        <div class="">A cron job has been setup by root to run a PHP script but
          it is giving the familiar open_basedir error as follows:</div>
        <div class=""><br class="">
        </div>
        <div class="">PHP Warning:  include(): open_basedir restriction in
          effect. <br class="">
          File(/home/.sites/143/site2/web/home/include/init.inc.php) is
          not within the allowed path(s):
(/tmp/:/var/lib/php/session/:/usr/sausalito/configs/php/:/usr/share/pear)<br class="">
        </div>
        <div class=""><br class="">
        </div>
        <div class="">According to both the GUI and PHPinfo the open_basedir
          includes this path</div>
        <div class=""><br class="">
        </div>
        <div class="">
          <div class="">Local value:</div>
          <div class="">/var/lib/php/session/:/usr/sausalito/configs/php/:/tmp/:/home/solarspeed/php/share/pear:/home/.sites/143/site2/<span style="white-space:pre-wrap" class="">   </span></div>
          <div class=""><br class="">
          </div>
          <div class="">Master Value:</div>
          <div class="">/var/lib/php/session/:/usr/sausalito/configs/php/:/tmp/:/home/solarspeed/php/share/pear:/home/.sites/143/site2/</div>
        </div>
        <div class=""><br class="">
        </div>
        <div class="">If it helps, PHP Info also reported the following:</div>
        <div class="">
          <div class="">Configuration File (php.ini) Path<span style="white-space:pre-wrap" class=""> </span>/home/solarspeed/php/etc</div>
          <div class="">Loaded Configuration File<span style="white-space:pre-wrap" class=""> </span>/home/sites/<a href="http://www.xxxxxxxxx.com/php.ini" target="_blank" class=""></a><a href="http://www.xxxxxxxxx.com/php.ini" target="_blank" class="">www.XXXXXXXXX.com/php.ini</a></div>
        </div>
        <div class=""><br class="">
        </div>
        <div class="">I am guessing some how this software is not looking at the
          php.ini file for the site.   Is that because it is in a root
          cron job?   What can I do to make this work?<br class="">
        </div>
        <div class=""><br class="">
        </div>
        <br clear="all" class="">
        <div class="">
          <div class="">Dan Porter<br class="">
            Twin Wolf Technology Group, LLC <br class="">
          </div>
        </div>
      </div>
      <br class="">
    </blockquote>
    <br class="">
    <br class="">
  </div></div></div>

<br class="">_______________________________________________<br class="">
Blueonyx mailing list<br class="">
<a href="mailto:Blueonyx@mail.blueonyx.it" class="">Blueonyx@mail.blueonyx.it</a><br class="">
<a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx" rel="noreferrer" target="_blank" class="">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">Blueonyx mailing list<br class=""><a href="mailto:Blueonyx@mail.blueonyx.it" class="">Blueonyx@mail.blueonyx.it</a><br class="">http://mail.blueonyx.it/mailman/listinfo/blueonyx<br class=""></div></blockquote></div><br class=""></div></div></body></html>