Author Topic: Which user is 'the webserver user'?  (Read 2814 times)

Offline snowweb

  • Jr. Member
  • **
  • Posts: 35
Which user is 'the webserver user'?
« on: March 13, 2011, 03:00:25 AM »
I'm just trying to install Roundcube and I have come to the instruction in the guide which says, "RoundCube needs to save some temp files and it also writes logs. Therefore make sure that the following directories (and the files within) are writable by the web server user".

  • How can I determine who the webserver user is?
  • What command do I need to do the above, once I know who the user is?


Thanks.

Peter

Offline snowweb

  • Jr. Member
  • **
  • Posts: 35
Which user is 'the webserver user'?
« Reply #1 on: March 13, 2011, 03:54:37 AM »
I've done some poking around and according to a 'User list' in Webmin, I have a user and a group called www-data. Since I can see no other user called apache or similar, I'm assuming that this is the one I need to give write permissions to on the two specified directories.

I tried chown -R www-data:www-data /path-to-directories but when I refresh the installer checking page, it still says that the directories are not writeable.

Directory listing is:

Quote

# ls -la
drwxr-xr-x 11      501       80  4096 2011-02-09 16:10 .
drwxr-x---  4 snowweb  snowweb   4096 2011-03-13 07:30 ..
drwxr-xr-x  2      501       80  4096 2011-03-13 05:54 bin
-rw-r--r--  1      501       80  9197 2011-02-09 12:46 CHANGELOG
drwxr-xr-x  2      501       80  4096 2011-03-13 08:15 config
-rw-r--r--  1      501       80  1145 2010-02-18 18:09 .htaccess
-rw-r--r--  1      501       80 10430 2011-02-09 10:51 index.php
-rw-r--r--  1      501       80  8390 2011-01-29 14:55 INSTALL
drwxr-xr-x  3      501       80  4096 2011-03-13 05:54 installer
-rw-r--r--  1      501       80 17987 2008-10-29 19:11 LICENSE
drwxr-xr-x  2 www-data www-data  4096 2011-03-13 05:54 logs
drwxr-xr-x 24      501       80  4096 2011-03-13 05:54 plugins
drwxr-xr-x  7      501       80  4096 2011-03-13 05:54 program
-rw-r--r--  1      501       80  2263 2011-01-12 15:54 README
-rw-r--r--  1      501       80    26 2008-03-22 13:43 robots.txt
drwxr-xr-x  3      501       80  4096 2011-03-13 05:54 skins
drwxr-xr-x  2      501       80  4096 2011-03-13 05:54 SQL
drwxr-xr-x  2 www-data www-data  4096 2011-03-13 05:54 temp
-rw-r--r--  1      501       80  1052 2010-04-15 07:28 UPGRADING


Any ideas please?

Offline snowweb

  • Jr. Member
  • **
  • Posts: 35
Solved
« Reply #2 on: March 13, 2011, 08:28:51 PM »
I discovered that roundcube is being run as the same user as the account it is installed in, therefore the user was 'snowweb'. I ran the following commands and the problem was solved.

chown -R snowweb:snowweb /temp

and

chown -R snowweb:snowweb /logs