You are not logged in.

#1 2015-02-02 10:53:54

Arch-Hoochie
Member
Registered: 2014-09-23
Posts: 75

nginx roundcube webmail advise required

I am trying to set up some email addresses for the domains i own.

Is this viable with roundcube or will I need something else as well?

I've been using a guide for the installation
http://www.rudraraj.net/2015/01/26/how- … ith-nginx/

I've got down to : "chown -R www-data.root /usr/share/nginx/roundcube" but the command errors.

Any ideas?

Offline

#2 2015-02-02 11:50:54

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: nginx roundcube webmail advise required

I have absolutely no knowledge about setting up a mail server, but it might be wise to actually read and post the error message and command. You probably mistyped a command somewhere.

EDIT: The guide is for debian. Are you sure that the paths are the same in Arch? (You do use arch, right?)

Last edited by runical (2015-02-02 11:51:54)

Offline

#3 2015-02-02 11:59:57

Arch-Hoochie
Member
Registered: 2014-09-23
Posts: 75

Re: nginx roundcube webmail advise required

Thanks for the fast reply.
Yes I use arch on my laptop and my server.
I'm still learning though and yes the directory is right.
This is the error I get.

chown: invalid user: âwww-data.rootâ

Offline

#4 2015-02-02 14:20:04

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

Offline

#5 2015-02-02 17:14:53

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: nginx roundcube webmail advise required

Arch-Hoochie wrote:

chown: invalid user: âwww-data.rootâ

Sees like the user does not exist. Take a look at the guides posted by GloW_on_dub, as those are more related to arch. The user named there might not exist in Arch or have a different name.

Good luck with your server.

Offline

#6 2015-02-03 18:25:59

Arch-Hoochie
Member
Registered: 2014-09-23
Posts: 75

Re: nginx roundcube webmail advise required

Thanks GloW_on_dub I will certainly give that a try quiet the detailed set up.

Offline

#7 2015-05-11 15:03:27

Rudraraj
Member
Registered: 2015-05-11
Posts: 1

Re: nginx roundcube webmail advise required

@Arch-Hoochie. Hi... sorry for a late response...  I am the author of the blog www.rudraraj.net. I was never aware that a beautiful discussion was on here. I have not been actively involved with arch linux. My work revolves around debian, fedora, centos and FreeBSD.I had done this installation on debian.

as for the error "chown: invalid user: www-data.root"

basically, what we need to understand here is ... every service in Unix/Linux runs as a user. and your webserver is no exception to this rule. when you install a linux/unix os... most of time, you will have a user created by default, which is associated with the web server process. if web server application like apache or nginx is not installed, the user is inactive, but once you install the web server program, through the software repositories, the link between the web server process and the user is established.... in my case the user associated with web server process was www-data, so when i executed the command "chown -R www-data.root /usr/share/nginx/roundcube", the roundcube path became writeable by the webserver process.

It is worth mentioning here the even my php-fpm service is running as www-data.... Again you can define as to which user your webserver and php process shpuld run as, by defining the same in your http server configuration file and the php configuration...

in a minimal Centos and fedora install, a user called apache is created, this is the typical user associated with webserver process... similarly in debian and ubuntu the user is www-data... and in freebsd it is www... so you need to identify which user your webserver process is running as.... 

please see this link as well https://www.rudraraj.net/2014/11/23/ins … d-php-fpm/ in the php configuration section. i have made a  very brief discussion on the above mentioned points..

I hope this clears some air... I have started from zero in the linux world.. and i know how baffling things can be in the initial days... stay strong.. smile

Regards
Rudraraj Upadhyaya

Offline

#8 2015-05-12 07:52:48

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 226
Website

Re: nginx roundcube webmail advise required

The standard user for nginx in archlinux is called "http". So the chown should be like

chown -R http:http  /usr/share/nginx/roundcube

Likewise you will have to replace every occurance of www-data with http throughout the guide, when on archlinux.

You might also find usefull hints in the general information about setting up nginx and php in the arch wiki.

Last edited by seiichiro0185 (2015-05-12 07:53:08)


My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP

Offline

Board footer

Powered by FluxBB