Fresh install error

Hosting Kernel

Verified User
Joined
Sep 30, 2015
Messages
150
Hi,

Just got new CentOS 7.6 server and do the installation with those settings:

- php 7.3 fpm, nginx_apache

after installed, nginx service is unable to start, checking the log get this error:
Code:
2019/09/05 16:14:06 [emerg] 13341#0: unexpected "}" in /etc/nginx/webapps.hostname.conf:11


open that file:
Code:
	location ~ ^/phpmyadmin {
		rewrite ^/* /phpMyAdmin last;
	}
	location ~ ^/pma {
		rewrite ^/* /phpMyAdmin last;
	}
	location ~ ^/webmail {
		rewrite ^/* /roundcube last;
	}
		deny all;
	}
	location ~ /roundcube/(bin|SQL|config|logs|temp)/ {
		deny all;
	}
	location ~ /phpMyAdmin/log/ {
		deny all;
	}

Seem their is a problem with DA during config files generation. Do ./build rewrite_confs wont fix the issue.

Any idea?
 
The file is obviously broken - see there is no open bracket before the closing one.

I am not sure for which app this "deny all" is, but if you remove it it will be valid syntax.
 
Nginx was able to start after correcting syntax, but every time "rewrite_confs" runs, it will fail again.
 
Same issue happening here on a new server with nginx_apache.
 
Please try "./build update", might be an old version of the CustomBuild script :)
 
Please try "./build update", might be an old version of the CustomBuild script :)

we had this issue too, when opened the ticket about server cannot compile rebuild nginx, same error has his, i think nginx build not works
 
Hi,
You have an error on Line 10 and 11.
Just remove line 10 and 11 to solve this:
Code:
deny all;
	}
when you do that you got another error in other file,
then you can start nginx,
but when custom build update, same issue, its a corruption on custom build on nginx apache
 
Back
Top