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 support and service has been excellent and should I be looking to host again, you’ll be at the top of my list.

    Neville - watchuktv.co.uk
  • Nothing less than an excellent service! I'm also a long term member on WHT and I recommend your company to everyone who are looking for a hosting company in UK.

    Blagoj
  • Service has been great - no complaints at all. Thanks for the service and flexibility over the years.

    John - Clark Craft Products
  • Due organization problems we decided to cancel our VPS service however we think RackSRV is the best quality-price service we've ever used, thanks!

    Noechelon
  • Absolutely brilliant service, what brought me to racksrv in the first place was the speed at which they replied to my emails, and the support has continued to be superb. Jon has always been great, and particular thanks to Liam for helping me sort my most recent issue.

    Tom - Thplabs
  • Highly recommend RackSRV, We have been a customer for over 6 years with no issues. They has been extremely accommodating to all our needs, Our project has come to an end so we've had to cancel service, and even then they have helped massively in the termination of service and handover of data. Will remember th...

    Stuart - About IT Ltd
  • We have been very satisfied with the quality of service, and especially the level of support given for an unmanaged server, Jon is always there to help out. Very professional and polite, will be considering this company again!

    Keith
0