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
  [lubuntu] how do i alphabetize a list from a text file? erikduop 0 3 02-13-2018 03:50 AM
Last Post: erikduop
  Sending a command to a remote Ubuntu box to run a bash script MarvinR1935 0 15 01-21-2018 11:44 PM
Last Post: MarvinR1935
  Is there a GUI utility to merge two or more MPEG-4 video files into a single file? JonelleStablein 0 15 01-17-2018 02:35 AM
Last Post: JonelleStablein
  [xubuntu] Replacing Thunar messed up desktop file operations QuailC1945 1 134 01-05-2018 09:51 PM
Last Post: Monday12
  [ubuntu] Transmission-gtk: unable to save resume file: permission denied linlynn80 1 529 01-05-2018 09:31 PM
Last Post: Monday12
  [ubuntu] file server and rsync csharolynvargasww 1 121 01-05-2018 09:01 PM
Last Post: Monday12
  [ubuntu] Output of "sensors" command on Thinkpad seems odd AlisaH2006 0 19 12-17-2017 09:15 PM
Last Post: AlisaH2006
  16.04.1 response to dig command????? ljackilawrhhhek 0 119 11-11-2016 04:43 PM
Last Post: ljackilawrhhhek
  Ubuntu 16.04 gdk-pixbuf issue "Unrecognized image file format" ftishabergers 0 223 10-25-2016 06:33 AM
Last Post: ftishabergers
  firefox wants to download a file PatrickSan1980 0 203 09-20-2016 02:00 AM
Last Post: PatrickSan1980

Forum Jump:



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



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