Register
Login
Contribute
Subscribe
RSS
News
FAQForge
ISPConfig
Subscribe
Contribute
Forums
Howtos
Navigation
Howtos
Linux
Android
CentOS
Debian
Fedora
Kernel
Mandriva
PCLinuxOS
SuSE
Ubuntu
Web Server
Apache
Cherokee
Lighttpd
nginx
Backup
Control Panels
ISPConfig
DNS
BIND
MyDNS
PowerDNS
djbdns
Desktop
Email
Anti-Spam/Virus
Postfix
FTP
High-Availability
Lighttpd
Monitoring
MySQL
Programming
C/C++
PHP
Samba
Security
Anti-Spam/Virus
Storage
Virtualization
KVM
OpenVZ
VMware
VirtualBox
Xen
Other
FreeBSD
Commercial
Mini-Howtos
Linux
Apache
Backup
DNS
Errors
FTP
MySQL
Networking
PHP
Postfix
Security
Sendmail
Shell
Other
ISPConfig
Forums
Contribute
Create Content
Subscription
Login
Site Map/RSS Feeds
Facebook
News
Embedding Other Languages in BASH Scripts
Computers are today's pencils
Mixxx – The most advanced free DJ software
HP CEO Scorecard: Google Android 3, Windows 8 Zero
The Kirk and Spock Approaches to Big Data
ZevenOS 3.1 Neptune Screenshot Tour
Review: Korora 18 "Flo" KDE
Open Source & Big Data: DataStax Expands Hadoop, Cassandra in Europe
Pidora: Fedora Linux for the Raspberry Pi ARMs Up (Thanks to Seneca)
24 Peachy Free Linux Games (Part 3 of 4)
more
Recent comments
Re: Installation successful, but I can't receive any mail...
21 hours 7 min ago
ssl
21 hours 13 min ago
No Mails could be send.... Connection refused
1 day 2 hours ago
array param function
1 day 8 hours ago
Thank you so much. 2 thumbs
1 day 9 hours ago
Great post... But...
1 day 10 hours ago
Instead of copying and
1 day 15 hours ago
 Correction: fro m_address=`
1 day 21 hours ago
tuto thanks
2 days 1 hour ago
WFM
2 days 3 hours ago
Newsletter
Subscribe to HowtoForge Newsletter
and stay informed about our latest HOWTOs and projects.
(To unsubscribe from our newsletter, visit this
link
.)
English
|
Deutsch
|
Site Map/RSS Feeds
|
Advertise
HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials
>
ISPConfig 3
>
General
server wide cron job
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Do you like HowtoForge? Please consider supporting us by
becoming a subscriber
.
Thread Tools
Display Modes
#
1
2nd December 2012, 14:53
manarak
Senior Member
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
server wide cron job
I need to run some cron jobs on PHP scripts that should have server-wide access, what would be the best location to store them and how to set them up so that they don't have any permissions issues?
manarak
View Public Profile
Send a private message to manarak
Find all posts by manarak
Sponsored Links
#
2
3rd December 2012, 09:45
falko
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
You can set them up as root by running
Code:
crontab -e
__________________
Falko
--
Download the
ISPConfig 3 Manual
! | Check out the
ISPConfig 3 Billing Module
!
FB:
http://www.facebook.com/howtoforge
nginx-Webhosting: Timme Hosting
| Follow me on:
falko
View Public Profile
Send a private message to falko
Visit falko's homepage!
Find all posts by falko
#
3
3rd December 2012, 10:10
manarak
Senior Member
Join Date: Apr 2009
Posts: 245
Thanks: 32
Thanked 6 Times in 5 Posts
thank you Falko
I need to test the script first, is there a way to execute the PHP script from http with root privileges?
would something like that work if I add it to /etc/sudoers
Code:
web1 ALL=(ALL) NOPASSWD: /usr/bin/php -f /var/www/clients/client1/web/myscript.php
?
manarak
View Public Profile
Send a private message to manarak
Find all posts by manarak
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Switch to Linear Mode
Hybrid Mode
Switch to Threaded Mode
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
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Linux Forums
HOWTO-Related Questions
Installation/Configuration
Server Operation
Desktop Operation
Kernel Questions
Programming/Scripts
Technical
Suggest HOWTO
ISPConfig 3
General
Installation/Configuration
ISPConfig 3 Priority Support
Plugins/Modules/Addons
Tips/Tricks/Mods
Feature Requests
Developers' Forum
ISPConfig 2
General
Installation/Configuration
Tips/Tricks/Mods
Feature Requests
Developers' Forum
MyDNSConfig
General
Other Forums
Smalltalk
Forum Suggestions
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Cron job runs on both master and mirror server, why?
snowfly
Installation/Configuration
7
15th May 2013
21:37
ISPConfig 3.0.3.3 fresh instalation - email tab is empty
artur_gib
Installation/Configuration
13
16th March 2013
00:51
Statistic not working
mzo
Installation/Configuration
49
20th April 2011
12:19
Sending mail ISPConfig 3 but not receivind
catza
Installation/Configuration
20
19th May 2010
12:47
amavis & ispconfig 3
yalex2000
Installation/Configuration
20
18th February 2010
17:02
All times are GMT +2. The time now is
21:00
.
Contact Us
-
HowtoForge - Linux Howtos and Tutorials
-
Archive
-
Top
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Recent comments
21 hours 7 min ago
21 hours 13 min ago
1 day 2 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 15 hours ago
1 day 21 hours ago
2 days 1 hour ago
2 days 3 hours ago