1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Creating a cron entry to run a PHP file.

Discussion in 'XenForo Questions and Support' started by Edrondol, Jan 3, 2014.

  1. Edrondol

    Edrondol Well-Known Member

    Okay, I'm flustered. I want to set up a cron to run a simple php file but I don't know how to do this using the XF "Create New Cron Entry". Specifically, I don't know how to get it to call the php file from its location, which is OUTSIDE the library directory.

    Any help is appreciated and please, speak to me like I'm five because that's about the level I'm at while working on this! ;)
  2. AndyB

    AndyB Well-Known Member

    I use Webmin to run a cron which calls a stand alone PHP script. I would think cPanel would also allow this as well.
  3. Edrondol

    Edrondol Well-Known Member

    Interesting. I hadn't thought of using my cPanel. I was so focused on doing it through XF. I'll give that a shot! Thanks!
  4. Edrondol

    Edrondol Well-Known Member

    Worked like a bloody charm, @AndyB !

    edit: For those who wanted to know, there's a place in cPanel where you can do this. cPanel -> Advanced -> Cron Jobs.
    AndyB likes this.

Share This Page