Home > Uncategorized > Hosted Virtual Server

Hosted Virtual Server

April 22nd, 2010 admin

Hosted Virtual Server



With a GoDaddy Virtual Server, how do I get a crontab job to execute a PHP script on one of my hosted Domains?

I know how to setup a crontab job, but when I schedule a PHP job it never runs.

You need to verify that GoDaddy’s PHP installation includes a command-line interpreter. If it does, its location must be referenced within the script, for example:

#!/usr/bin/php
// script starts here
?>

Alternatively, the interpreter must be called explicitly in the command line, for example:

/usr/bin/php myscript.php

If there is no command-line interpreter on the system, you need to call a command-line browsing utility such as lynx or wget, which would activate your script via HTTP.

BlueArc :How to create an Enterprise Virtual Server with an IP address

Comments are closed.