Solved

Can I run php script with cron without using apache and how

Posted on 2011-02-25
1
203 Views
Last Modified: 2012-05-11
Can I run php script with cron without using apache and how?
0
Comment
Question by:omnitechnics
1 Comment
 
LVL 28

Accepted Solution

by:
Jan Springer earned 125 total points
ID: 34979515
An example of running every 5 minutes:

*/5 * * * * USER /usr/bin/php /full/path/to/script.php

substitute "USER" with the username that you want it to run as
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Redirect from old domain to new domain 19 75
XAMPP 14 48
PHP in Apache server 20 102
New OSQA server has a ton of fake users 4 71
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question