title: PHP Cron Problems - using plesk: dynamic library, open_basedir
body: <p>I entered the following command through plesk (control panel) crontab, to run a php file once an hour:</p>
  
  <pre><code>php httpdocs/cron/script.php
  </code></pre>
  
  <p>And I am getting the following 2 error messages (once an hour, to my email):</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/http.so' -
  /usr/lib/php/modules/http.so: cannot open shared object file: No such file or directory in
  Unknown on line 0
  PHP Warning:  require_once(): open_basedir restriction in effect.
  File(../include/functions.php) is not within the allowed path(s):
  (/var/www/vhosts/basedomain.com:/tmp) in /var/www/vhosts/example.com/httpdocs/cron/script.php
  on line 2
  PHP Warning:  require_once(../include/functions.php): failed to open stream: Operation not
  permitted in /var/www/vhosts/example.com/httpdocs/cron/script.php on line 2
  PHP Fatal error:  require_once(): Failed opening required '../include/functions.php'
  (include_path='.:') in /var/www/vhosts/example.com/httpdocs/cron/script.php on line 2
  </code></pre>
  
  <p>Note: Line 2 has <code>require_once(../include/functions.php);</code></p>
  
  <p>I realized these are 2 different issues. I tried solving each separately and they are both still with me. Any help would be appreciated. Thanks</p>