Enter promo code HALFMANAGED at checkout for 50% off your first month’s bill on any managed service!
50% off managed hosting with code HALFMANAGED

Need help? We may have the answer for you already!

PHP as a Cron CentOS/Fedora

When adding a PHP script as a cron you need to ensure that you include the full PHP directory, simply running the following will not allow the script to run:

30 6 * * * php -q public_html/clients/scripts/mycron.php

Using the following will allow the PHP script to be used within a cron process:

30 6 * * * /usr/local/bin/php -q /home/username/public_html/clients/admin/mycron.php

Note how we need to utilise the full directory structure to ensure both the PHP process is called correctly and has the full directory of your PHP script.

News @ RackSRV

Customer Feedback

  • Your service has been great during the time I have been with you, therefore I wish your company all the best and success for the future.

    Chee - Code Infinity
  • A big thanks to Jon, he has provided us an excellent support service over the last few months. If your looking for a host which offers high speeds then this is the perfect place for you!

    Bryan
  • Jon provides a very professional service and is always on hand to help out with any issues or questions I have. I've never had any complaints over the last 3 years using this service and the response time for any queries is excellent. I'd recommend this service to anyone looking to host a server with a pr...

    Paul
  • I lead a team of bleeding edge text miners at meme-machines.com, and need reliable colocation and support for our custom hot-rod hardware. That's what I get from Jon and the team at RackSRV, but I also get more. When mysteries emerge, and in our line of work that's unavoidable, they will always go quietly and...

    Chris - Datamonkees
  • Service was always excellent and hopefully it will remain so on the other service will still have with you.

    Sharon - MDS Transmodal Ltd.
  • Great service, very helpful and lightning fast replies, always going out of their way to help. Never noticed any downtime and great value for money, Look no more if you want a quality service!

    Daniel - IoxHost
  • Using RackSRV has been a pleasure due to fast response times when I need help along with super fast services - I can highly recommend.

    Michael - Create All Media
0