Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply  Buggy Item
Stephen
 
1
[ubuntu] Execute a .php file via command line

Hi,

I have a php file that I need to execute via a cronjob. This file should be run by the www-data user as its a file in my /var/www/project folder.

When I run this file under root (php -f cron.php) everything works perfectly, but I want it to run under the www-data to be safe.

Before I...
11-16-2010, 07:40 AM
Reply
Subscribe to this thread Subscribed Users  Add Reply  Buggy Item


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [SOLVED] mdadm array creation - what's wrong with this command? nteddyflowccsj 4 266 09-20-2018 10:02 PM
Last Post: Monday12
  [other] Can't ISO file be edited? Gerhard1 0 26 09-19-2018 05:03 AM
Last Post: Gerhard1
  [xubuntu] Replacing Thunar messed up desktop file operations QuailC1945 2 369 08-31-2018 10:24 PM
Last Post: Monday12
  [SOLVED] Rsyslog cannot log to file lkeridunuuue 2 230 08-31-2018 10:12 PM
Last Post: Monday12
  conky, conkyrc and statfs64 no such file or directory Fganly216 3 446 08-31-2018 10:10 PM
Last Post: Monday12
  [ubuntu] PS command fails jindymas11 1 177 08-31-2018 09:40 PM
Last Post: Monday12
  [ubuntu] Incorrect device shown on root by mount command and GParted. lodiliagloverj 3 500 08-31-2018 09:36 PM
Last Post: Monday12
  [ubuntu] E:Malformed Description-md5 line wemersonhendersrong 2 269 08-31-2018 04:43 AM
Last Post: Monday12
  [ubuntu] Can't mount TrueCrypt partition - "Bad file descriptor" tsergiohaynesz 2 232 08-31-2018 04:27 AM
Last Post: Monday12
  ifconfig command missing from 18.04 bionic Wilma 0 30 08-28-2018 04:56 AM
Last Post: Wilma

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2018