Results 1 to 5 of 5

Thread: Cron Job Problems

  1. #1
    Senior Members' Member Matt1eD's Avatar
    Join Date
    Feb 2005
    Location
    London
    Posts
    2,462
    Thanks
    0
    Thanked
    0 times in 0 posts
    • Matt1eD's system
      • Motherboard:
      • MSI K9N6SGM-V GeForce 6100
      • CPU:
      • Athlon 64 LE-1620 2.41GHz
      • Memory:
      • 2 GB DDR2
      • Storage:
      • 1.25 TB
      • Graphics card(s):
      • Onboard
      • PSU:
      • eBuyer Extra Value 500W!
      • Operating System:
      • XP Pro

    Cron Job Problems

    Last night I put an RSS aggregator on my server. Frankly I love this app. and the one feature it misses I've asked the developer and he's going to do. I have however encountered a problem.

    I've never used cron jobs before and it needs to update the RSS list every ten minutes by calling fetch.php.

    If I visit this manually I just get...

    Quote Originally Posted by fetch.php
    ERROR: lockdir exists or isn't writable, please remove the folder 'lockdir' in order to continue
    I've tried around 20 different possibilities for server locations on this, any ideas! The instructions give this...

    Quote Originally Posted by INSTALL INSTRUCTIONS
    6) Create the following cron job, REMEMBER TO CHANGE THE PATH!!!
    */10 * * * * cd /path/to/lylina/ && /usr/bin/php fetch.php >/dev/null 2>/dev/null
    If you are using cPanel, you can add the following cron job using these steps:
    -Login to cPanel
    -Click the 'Cron jobs' button
    -Choose 'Standard'
    -Command to run should be, REMEMBER TO CHANGE THE PATH!!!
    cd /path/to/lylina/ && /usr/bin/php fetch.php >/dev/null 2>/dev/null
    -Set it to run Every Ten Minutes, Every Hour, Every Day, Every Month, Every Weekday
    Cpanel in its file manager gives this as the path...

    /public_html/mattdickins/rssreader/

    I'm using CPANEL 10
    Tis a linux server
    There's a limit to how much I can find out about it as it's not at home, however if you need more details please ask.

    Any help would be greatly appreciated. Thanks

  2. #2
    Senior Member
    Join Date
    Nov 2005
    Posts
    501
    Thanks
    0
    Thanked
    0 times in 0 posts
    At a guess I'd say the command line PHP interpreter runs as your own user but when you access it through the web server it runs as apache. Make sure 'lockdir' is writeable by the web server, I guess you probably can't chown or chgrp it to the apache user so you may need to chmod -R 666 it.

  3. #3
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    At a complete guess... there might be a bit of the path before /public_html/..., so you might need to go onto your hosting company's site and see what that bit is. For example, it might be something like this (I've just taken this from 3dpixelnet.com)

    /home/httpd/vhosts/matt-dickens.co.uk/public_html/mattdickins/rssreader/
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  4. #4
    Senior Members' Member Matt1eD's Avatar
    Join Date
    Feb 2005
    Location
    London
    Posts
    2,462
    Thanks
    0
    Thanked
    0 times in 0 posts
    • Matt1eD's system
      • Motherboard:
      • MSI K9N6SGM-V GeForce 6100
      • CPU:
      • Athlon 64 LE-1620 2.41GHz
      • Memory:
      • 2 GB DDR2
      • Storage:
      • 1.25 TB
      • Graphics card(s):
      • Onboard
      • PSU:
      • eBuyer Extra Value 500W!
      • Operating System:
      • XP Pro
    chmodded it to 666, which refreshed to 155....

    User Group World
    Read Y Y
    Write
    Execute Y Y Y

    Am using the path Cpanel gives me.

    Returns this error:

    /bin/sh: line 1: cd: /public_html/mattdickins/rssreader/: No such file or directory

  5. #5
    Senior Members' Member Matt1eD's Avatar
    Join Date
    Feb 2005
    Location
    London
    Posts
    2,462
    Thanks
    0
    Thanked
    0 times in 0 posts
    • Matt1eD's system
      • Motherboard:
      • MSI K9N6SGM-V GeForce 6100
      • CPU:
      • Athlon 64 LE-1620 2.41GHz
      • Memory:
      • 2 GB DDR2
      • Storage:
      • 1.25 TB
      • Graphics card(s):
      • Onboard
      • PSU:
      • eBuyer Extra Value 500W!
      • Operating System:
      • XP Pro
    Quote Originally Posted by mike_w
    At a complete guess... there might be a bit of the path before /public_html/..., so you might need to go onto your hosting company's site and see what that bit is. For example, it might be something like this (I've just taken this from 3dpixelnet.com)

    /home/httpd/vhosts/matt-dickens.co.uk/public_html/mattdickins/rssreader/
    Played around with different ones last night, might drop them an email.

    Thanks all.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Geforce 6600GT AGP problems? Try this...
    By Mutley in forum Graphics Cards
    Replies: 33
    Last Post: 09-02-2008, 10:28 AM
  2. Real problems with XFX GeForce 6600GT AGP
    By Mutley in forum Graphics Cards
    Replies: 17
    Last Post: 06-05-2007, 01:15 AM
  3. My experience with Windows XP Pro x64 Edition
    By Paul Adams in forum Software
    Replies: 7
    Last Post: 20-04-2007, 11:59 PM
  4. Problems with new machine
    By kasavien in forum SCAN.care@HEXUS
    Replies: 5
    Last Post: 31-01-2006, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •