View Single Post
Old 04-01-2012, 08:29 PM   PM User | #4
leslie.jones
New Coder

 
Join Date: Nov 2011
Posts: 88
Thanks: 4
Thanked 26 Times in 26 Posts
leslie.jones is an unknown quantity at this point
I take it this is xampp for Linux (as chmod/chown would be nonsensical on windows)

To find the user just issue, as root,
Code:
ps -aux | grep apache
Left hand column is user, you may have a couple running as root, but the majority will usually be running as 'nobody' or 'www-data'.

Code:
chown www-data:www-data
to change the user and group at the same time - you'll probably want to do the lot so:
Code:
chown -R www-data:www-data /path/to/directory/*
Or safer to do the directory itself, then cd in and issue:
Code:
chown -R www-data:www-data *
leslie.jones is offline   Reply With Quote