Nginx can't restart on Roundcube script install

I have a fresh install of Centos 7 on a different vps, installed MariaDB101 from the Mariadb.org repo, and then installed VM. Then installed PHP70 and nginx (as per https://www.virtualmin.com/documentation/web/nginx).

nginx was running before the roundcube script install but then couldn't restart.

Configuring webserver PHP settings ..
.. already done.
Applying Nginx configuration ..
.. restart failed :
Now installing RoundCube version 1.2.2 ..
RoundCube installation complete. It can be accessed at http://ketovancouver.com/roundcube/.
More information on using this script can be found at http://www.roundcube.net/.
.. done
Re-loading Webmin ..
.. done
Applying Nginx configuration ..
.. restart failed :

Could I please get some troubleshooting help to getting nginx up and running again?

Thanx

Status: 
Active

Comments

Howdy -- it's possible that there is a syntax error in the Nginx config file, causing it to not be able to start back up.

Do you see any errors listed in the Nginx log file in /var/log?

just for the heck of it, i tried systemctl start nginx and it started!

there are errors in

2016/12/19 19:19:02 [error] 12614#0: *2 "/usr/share/nginx/html/roundcube/index.html" is not found (2: No such file or directory), client: 69.172.157.177, server: _, request: "GET /roundcube/ HTTP/1.1", host: "ketovancouver.com" [root@server ~]# ls -la /usr/share/nginx/html/roundcube
ls: cannot access /usr/share/nginx/html/roundcube: No such file or directory
[root@server ~]# ls -la /usr/share/nginx/html/
total 28
drwxr-xr-x 2 root root 4096 Dec 19 19:08 .
drwxr-xr-x 4 root root 4096 Dec 19 19:08 ..
-rw-r--r-- 1 root root 3650 Oct 31 12:37 404.html
-rw-r--r-- 1 root root 3693 Oct 31 12:37 50x.html
-rw-r--r-- 1 root root 3700 Oct 31 12:37 index.html
-rw-r--r-- 1 root root  368 Oct 31 12:37 nginx-logo.png
-rw-r--r-- 1 root root 2811 Oct 31 12:37 poweredby.png

so nginx is running now, but i'm unable to sign into roundcube --> "login failed" even with the correct password

after the roundcube login attempt, dovecot's maillog shows:

Dec 19 21:27:39 server dovecot: imap-login: Disconnected (auth failed, 1 attempts in 4 secs): user=<ketov@ketovancouver>, method=PLAIN, rip=::1, lip=::1, secured, session=<nBuXlglECgAAAAAAAAAAAAAAAAAAAAAB>

You may want to double-check the user that you're using.

Virtualmin, by default, doesn't use the user@domain.com format.

If you go into Edit Users, you should see the username to use in the IMAP Login column.

By default, usernames are in the format "user.domain".

ok, thanks for that tip - i didn't realize (but i thought i was able to sign on with the user@domain.tld format before).

anyways, it looks like i am about to sign into roundcube now and send and receive email.

i'm not sure what the restart error in the roundcube install listing is all about, but at this point, roundcube seems to be working.

thanks!

Excellent, glad to hear it's working now!

Regarding the user@domain.tld email address -- Usermin is a little more forgiving than other clients, it will allow you to log in with usernames that aren't technically the real username.

So when you logged in previously using user@domain.tld, is it possible that you were logging into Usermin?