Home
Help
Login
Register
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced Search
HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Design and Development
Site and Server Administration
setup cron to execute PHP file
Pages: [
1
]
Go Down
« previous
next »
Topic: setup cron to execute PHP file (Read 1141 times)
setup cron to execute PHP file
« on: March 19, 2009, 07:18:17 AM »
Harry
Newbie
iTrader: 0
Posts: 11
I am trying to setup a cron job for my web site but it doesn't seem to be working. I have set it as follow:
usr/local/bin/php /home/xxxxxxx/public_html/xxxxxx/cron.php
Am I missing something?
Thanks,
Harry
Logged
Re: setup cron to execute PHP file
« Reply #1 on: March 19, 2009, 11:52:33 AM »
Kailash
Administrator
Newbie
iTrader: 50
Posts: 286
The cron seems to work fine but you forgot / in the cron command. It should be:
/
usr/local/bin/php /home/xxxxxxx/public_html/xxxxxx/cron.php
You can also try the following cron to execute php file:
php -q /home/xxxxxxx/public_html/xxxxxx/cron.php
Kailash
«
Last Edit: September 23, 2009, 10:22:06 PM by Kailash
»
Logged
cPanel/WHM Configuration
|
Web Hosting Discussion Blog
Windows VPS Hosting
WordPress Premium Themes
Re: setup cron to execute PHP file
« Reply #2 on: March 19, 2009, 09:53:21 PM »
Harry
Newbie
iTrader: 0
Posts: 11
hmm... I was not aware it was the mistake. Now, cron job is working fine.
Harry
Logged
Pages: [
1
]
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
WebHosting Related
-----------------------------
=> cPanel/WHM
=> WebsitePanel Support Forum
=> HELM and other Hosting control panels
=> Email Management Software & Email Clients
=> Domain Registration
=> VPS Hosting
=> Dedicated Server Hosting
=> Script/software installation and upgrade
=> Other Web Hosting Stuff
-----------------------------
Design and Development
-----------------------------
=> WordPress Themes
=> Programming
===> ASP
===> PHP
===> .NET Development
=> Site and Server Administration
===> Apache
===> Microsoft IIS
===> Security
=> Databases
===> MySQL
===> MSSQL server
===> MS Access
=> HTML, CSS and Website Design & Programming
=> Forums and Content Management
-----------------------------
Operating System
-----------------------------
=> Windows
=> Linux
-----------------------------
Search Engines
-----------------------------
=> Google
=> Yahoo
=> MSN
=> Other Search Engines
=> Search Engine optimization and Link Exchange
-----------------------------
Payment Gateways
-----------------------------
=> 2Checkout
=> PayPal and PayPal Manager (Verisign)
=> Other Payment Processors
-----------------------------
General
-----------------------------
=> How Tos
===> SmarterMail and other Email Servers
===> Linux
===> Windows
===> cPanel/WHM
===> HELM and other Hosting Control Panels
=> Free Services
=> Paid Services
=> Marketplace
===> Advertising Sales & Affiliate Programs
===> Forex Trading (Currency Trading)
-----------------------------
NEWS, Alert and Entertainment!!!
-----------------------------
=> Introduce yourself
=> Suggestions
=> General Chat
=> Contests
Untitled Document
Home
|
Forum
|
Blog
|
Wordpress KB
|
Discount Coupon Codes
Best Windows Hosting
|
Buy on Amazon
|
Amazon Store
|
Sitemap
|
Sitemap
|
Privacy Policy