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
  [18.04] Firefox and Other browsers cant open hidden file:/// links candremcmillanz 0 6 08-12-2018 10:56 PM
Last Post: candremcmillanz
  File transfer keeps failing inside VM wemersonhendersrong 0 6 08-10-2018 03:20 AM
Last Post: wemersonhendersrong
  [ubuntu_mate] Focus does not go to file just opened in Caja in 18.04 tsergiohaynesz 0 21 08-08-2018 03:41 PM
Last Post: tsergiohaynesz
  [ubuntu] Can't mount TrueCrypt partition - "Bad file descriptor" tsergiohaynesz 1 154 08-08-2018 09:57 AM
Last Post: Monday12
  [SOLVED] mdadm array creation - what's wrong with this command? nteddyflowccsj 2 206 08-08-2018 09:49 AM
Last Post: Monday12
  [ubuntu] Incorrect device shown on root by mount command and GParted. lodiliagloverj 2 410 08-08-2018 09:09 AM
Last Post: Monday12
  [ubuntu] download debconf preconfiguration file failed xkentonhenslyyy 1 364 08-08-2018 08:07 AM
Last Post: Monday12
  conky, conkyrc and statfs64 no such file or directory Fganly216 2 364 08-08-2018 07:20 AM
Last Post: Monday12
  [ubuntu] 16.04LTS Dual pane file manager candremcmillanz 0 7 08-06-2018 10:55 PM
Last Post: candremcmillanz
  [xubuntu] Login loop problem + can't launch command line at login SachaL1999 0 19 07-24-2018 10:19 PM
Last Post: SachaL1999

Forum Jump:



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



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