hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Run PHP with Crontab - Help!

Forum Jump

Run PHP with Crontab - Help!

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Old 01-14-2006, 12:54 PM
PCIStudios PCIStudios is offline
Join Date: Jan 2005
Posts: 12

Run PHP with Crontab - Help!

Hey all,

I'm having some major problems trying to run a PHP script with crontab. The script is located at I have tried multiple crontabs and none have worked. Right now it looks like this:


When that command is entered and I ask crontab to send out an email to be with the results, I recieve this error in my email:

/bin/sh: line 1: /usr/bin/wget: Permission denied

I have also tried other methods, to no avail. I am using hostingzoom hosting, so I'm not sure if I need to do something with paths, or if they need to set something up. Also, I have run chmod 755 on the file crontest.php so it should be executable.

What else to I need to do to get this script to run regularly? I have heard that I need to put some kind of line at the beginning of the crontest.php script, and also that I may need to modify the command. Any ideas? Thanks much!

Custom Web Design Services

Sponsored Links
Old 01-14-2006, 01:00 PM
PCIStudios PCIStudios is offline
Join Date: Jan 2005
Posts: 12
Update - problem solved thanks to the helpful guys at ResellerZoom. I just needed to enter this cron command:

/usr/bin/php -q /home/my_username/www/crontest.php

Custom Web Design Services

Old 01-14-2006, 06:41 PM
netserve netserve is offline
WHT Addict
Join Date: May 2001
Posts: 142
The other option would have been to use lynx (command line based web browser)

Colocation and Dedicated Servers

Sponsored Links

Related posts from
Title Type Date Posted

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
Web Hosting News:



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?