D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] moodle problem

 

Paul Sutton wrote:
>
> i am trying to set the permissions correctly. however there is no
> nobody or apache group or user,  so setting chown to either fails.


> how do I create the user, nobody or group nobody,  so i can add the 
> moodledirectory to that group, or whatever I need to do to fix it

I'm assuming it need to be owned by the web server user, so that the web
server process can update the files.

In Debian this is user "www-data", group "www-data" unless you fiddled.

In other distros try;

ps -ef | grep apache

or

ps -ef | grep httpd

I get this from the first command on my Debian Sid box, showing that
Apache starts as root, and then launches its child tasks as user
"www-data". So for me "www-data" is likely the correct user.

root      2924     1  0 Jan25 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 29623  2924  0 Feb03 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 29625  2924  0 Feb03 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 29626  2924  0 Feb03 ?        00:00:00 /usr/sbin/apache2 -k start

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html