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

  • I have used RackSRV for around two years now for colocation and the service has been fantastic. The network is incredibly fast and reliable, any planned maintenance has always been announced well before it is carried out. The level of customer service Jon and his team provide is also faultless and they are often exceed...

    Chris - The Hosting Heroes Ltd
  • For a few months I used the services of Racksrv I was fully satisfied that: - Good cost / quality servers - Quick commissioning - Good online support, quick reactivity If I can think it Racksrv can build it ... ;-) Thanks for your excellent service, keep it up!

    Jean-Marc - Eden Voice
  • I've had excellent service for last 2 years! Jon and his team have been excellent in their communication and at dealing with any problems.

    Abishek
  • I've been with RackSRV now for quite some months, and their service has been outstanding. Their customer support is fantastic, and since I've been somewhat of a 'needy' client in terms of upgrades / downgrades, they have maintained their professionalism and excellent service throughout. I am more tha...

    Carl - LoxTech Gaming
  • RackSRV offers a great service, I've been with them since 2008. Excellent support is provided, sometimes you get answers in a matter of minutes, even on Sundays! Pricing is much lower than most, what more could you ask for? Highly recommended to anybody!

    Maurizio
  • Have dealt with Racksrv for years, great company, great support, quick answers, will be with them for many more I hope

    Nick - Sort It.biz Limited
  • I have been using RackSRV for 14 months now and have had no problems with any of the service provided. The network has been very fast and coupled with excellent quality servers the service has been second to none!

    Anthony - Fortec Trading Ltd
0