Kahuki Webmaster Forum and Discussion Community  

Go Back   Kahuki Webmaster Forum and Discussion Community > Website Development & Management > Web Hosting

Web Hosting Discussions on all aspects of web hosting, choosing a host, reviews and technical things.



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2006, 12:39 AM
Member
 
Join Date: May 2006
Posts: 51
tchowdhr is on a distinguished road
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.

Reply With Quote
  #2 (permalink)  
Old 11-05-2006, 01:08 AM
Rookie
 
Join Date: Oct 2005
Posts: 8
malen is on a distinguished road
You cant execute a php script by calling itself because the php runs from within the web server!

Your best option is to set up cron to run
"lynx - source http://youraddress/yourphp.php"

lynx is a command line web browser which most linux systems have installed by default!

Reply With Quote
  #3 (permalink)  
Old 11-06-2006, 06:06 PM
Rookie
 
Join Date: Nov 2005
Posts: 3
b0ggy is on a distinguished road
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
<?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.

Reply With Quote
  #4 (permalink)  
Old 02-14-2008, 08:15 AM
Rookie
 
Join Date: Feb 2008
Posts: 1
VirtualOdin is on a distinguished road
Arrow

You've probably long since given up on this or solved it yourself, but I had the same issue and here's how I fixed it. LINK



Last edited by VirtualOdin; 02-14-2008 at 11:41 PM. Reason: typo
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free virtual cc in 30 seconds dont pay for virtual cc akmmanjunath Business & Legal Issues 17 07-08-2008 11:04 AM
Script that I made that searches deleted domains with high PageRank alexts Domains 4 10-19-2007 08:13 PM
Does GoDaddy.com have an advanced script editor so I can program my own HTML? Walin Web Hosting 1 09-17-2006 08:52 AM
are yahoo domains cheaper then godaddy at the end of the day? Raphs Domains 1 08-04-2006 11:57 AM
(WS2003E, GoDaddy Virtual Server, SMTP, Plesk) How do you get outgoing email to work in IIS6.0? nitinparwal Web Hosting 1 04-23-2006 08:50 AM


All times are GMT. The time now is 08:20 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0