Announcement

Collapse
No announcement yet.

error with cron job

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • error with cron job

    I'm trying to setup a cron job for my affiliate program (using PAP) with the following path:

    /usr/local/bin/php -q /home/dhuhmhsc/public_html/pap/scripts/dailyreports.php
    (above two lines are supposed to be in one line only)

    But I received the following error message:

    "Warning: require_once(../settings/settings.php): failed to open
    stream: No such file or directory in
    /home/dhuhmhsc/public_html/pap/scripts/global.php on line 16

    Fatal error: require_once(): Failed opening required
    '../settings/settings.php'
    (include_path='.:/usr/lib/php:/usr/local/lib/php') in
    /home/dhuhmhsc/public_html/pap/scripts/global.php on line 16"

    The "../settings/settings.php" folder and file are existed in the directory.

    According to PAP support:

    "That error means, that is something wrong with your path, you should ask your hosting support"

    How to rectify this error?
    http://www.r2rwealthsecrets.com

  • #2
    Re: error with cron job

    Try changing the path you have set as

    .:/usr/lib/php:/usr/local/lib/php')

    to '../usr/lib/php:/usr/local/lib/php') Two dots ".." instead of ".:"
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment


    • #3
      Re: error with cron job

      Do you know where I can set this path? I did not set it on my own in the first place. I simply use the default setup provided by PAP.

      .:/usr/lib/php:/usr/local/lib/php
      http://www.r2rwealthsecrets.com

      Comment

      Working...
      X