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
  changing the default "track 1.wav" for audio CD viewing in file manager MarvinR1935 0 7 05-22-2018 08:51 AM
Last Post: MarvinR1935
  Problem deleting a very persistent file jaecherio49 0 10 05-14-2018 01:32 PM
Last Post: jaecherio49
  Seagate 4TB Drive Failing - Can't mount "Stale file handle" Hoppytramp 0 16 04-20-2018 02:19 AM
Last Post: Hoppytramp
  [ubuntu] How to start command prompt at booting iclarindaboltona 1 37 04-03-2018 09:53 PM
Last Post: ylq
  How to add html file to apache2 armani5596 0 24 04-02-2018 12:23 PM
Last Post: armani5596
  [ubuntu] File system corrupted JerrieKasica 0 37 03-16-2018 01:44 AM
Last Post: JerrieKasica
  [lubuntu] how do i alphabetize a list from a text file? erikduop 0 38 02-13-2018 03:50 AM
Last Post: erikduop
  Sending a command to a remote Ubuntu box to run a bash script MarvinR1935 0 45 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 46 01-17-2018 02:35 AM
Last Post: JonelleStablein
  [xubuntu] Replacing Thunar messed up desktop file operations QuailC1945 1 220 01-05-2018 09:51 PM
Last Post: Monday12

Forum Jump:



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



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