Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
I have trouble installing Couch with CentOS + Nginx Server.
I've created the database, put the Couch file in proper location but i still cannot installing couch on it. What am i doing wrong?

Here the screenshot when i try access couchcms installation folder:
Image

Please somebody help me.

Thank you.
What is the server's error log reporting?
KK wrote: What is the server's error log reporting?


What do you mean server error log reporting? isn't in couch or in my server?

Here's my configuration for server conf configuration:
Code: Select all
server {
    listen       881;
    server_name  mufit.id http://www.mufit.id;

    #charset koi8-r;
    #access_log  /var/log/nginx/log/host.access.log  main;

    location / {
         root   /usr/share/nginx/mufit-landingpage;
         index  index.html index.htm;
    }
    location /blog {
   root /usr/share/nginx/mufit-landingpage/blog;
   index index.html index.htm index.php;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    root           /usr/share/nginx/mufit-landidngpage/blog;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    include        fastcgi_params;
    }

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}


and this is for haproxy configuration:
Code: Select all
global
    log /dev/log local0
    log /dev/log local1 notice
    chroot /var/lib/haproxy
    stats socket /run/haproxy/admin.sock mode 660 level admin
    stats timeout 30s
    user haproxy
    group haproxy
    daemon

    # Default SSL material locations
    ca-base /etc/ssl/certs
    crt-base /etc/ssl/private
   
    ssl-default-bind-ciphers TLS13-AES-256-GCM-SHA384:TLS13-AES-128-GCM-SHA256:TLS13-CHACHA20-POLY1305-SHA256:EECDH+AESGCM:EECDH+CHACHA20
    ssl-default-bind-options no-sslv3 no-tlsv10 no-tlsv11
    tune.ssl.default-dh-param 2048
    ssl-dh-param-file /etc/letsencrypt/live/mufit.id/dhparam.pem

defaults
    log global
    mode http
    option httplog
    option dontlognull
    timeout connect 5000
    timeout client 50000
    timeout server 50000

listen hastats
        bind *:2017
        mode http
        option forwardfor
        option http-server-close
        log global
        timeout connect 100s
        timeout client 100s
        timeout server 100s
        timeout queue 100s
        stats enable
        stats hide-version
        stats show-node
        stats auth admin:nostr4tech
        stats uri /hastats

frontend http-mufit-service
        bind *:80
        bind *:443 ssl crt /etc/letsencrypt/live/mufit.id/mufit.id.pem
        mode http
        option forwardfor header X-Real-IP
        redirect scheme https if !{ ssl_fc }
        reqadd X-Forwarded-Proto:\ https if { ssl_fc }

        redirect prefix https://mufit.id code 301 if { hdr(host) -i mufit.co.id }
        redirect prefix https://www.mufit.id code 301 if { hdr(host) -i www.mufit.co.id }
        #ACL BY HOSTNAME

        acl is_admin hdr(host) -i admin.mufit.id www.admin.mufit.id
        acl is_api hdr(host) -i api.mufit.id www.api.mufit.id
        acl is_file hdr(host) -i file.mufit.id www.file.mufit.id
        acl is_info hdr(host) -i info.mufit.id www.info.mufit.id
        #acl is_lp hdr(host) -i mufit.id www.mufit.id
        acl is_dashboard hdr(host) -i dashboard.mufit.id
        use_backend mufit-web if is_admin
        use_backend mufit-app if is_api
        use_backend mufit-minio if is_file
        use_backend mufit-info if is_info
        #use_backend mufit-landingpage if is_lp
        use_backend mufit_metabase if is_dashboard
        default_backend mufit-landingpage

backend mufit-landingpage
        mode http
        balance roundrobin
        option http-server-close
        option forwardfor
        http-request set-header X-Forwarded-Port %[dst_port]
        http-request add-header X-Forwarded-Proto https if { ssl_fc }
        redirect scheme https if !{ ssl_fc }
        option httpchk GET / HTTP/1.1\r\nHost:localhost
        server mufit-fe mufit-fe:881 check

backend mufit-web
        mode http
        balance roundrobin
        option http-server-close
        option forwardfor
        http-request set-header X-Forwarded-Port %[dst_port]
        http-request add-header X-Forwarded-Proto https if { ssl_fc }
        redirect scheme https if !{ ssl_fc }
        option httpchk GET / HTTP/1.1\r\nHost:localhost
        server mufit-fe mufit-fe:882 check

backend mufit-info
        mode http
        balance roundrobin
        option http-server-close
        option forwardfor
        http-request set-header X-Forwarded-Port %[dst_port]
        http-request add-header X-Forwarded-Proto https if { ssl_fc }
        redirect scheme https if !{ ssl_fc }
        option httpchk GET / HTTP/1.1\r\nHost:localhost
        server mufit-fe mufit-fe:883 check

backend mufit-app
        mode http
        balance roundrobin
        option http-server-close
        option forwardfor
        http-request set-header X-Forwarded-Port %[dst_port]
        http-request add-header X-Forwarded-Proto https if { ssl_fc }
        redirect scheme https if !{ ssl_fc }
        option tcp-check
        server mufit-be mufit-be:8082 check

backend mufit-minio
        mode http
        balance roundrobin
        option http-server-close
        option forwardfor
        http-request set-header X-Forwarded-Port %[dst_port]
        http-request add-header X-Forwarded-Proto https if { ssl_fc }
        redirect scheme https if !{ ssl_fc }
        option tcp-check #httpchk GET / HTTP/1.1\r\nHost:localhost
        server mufit-be mufit-be:9000 check

backend mufit_metabase
        mode http
        balance roundrobin
        option http-server-close
        option forwardfor
        http-request set-header X-Forwarded-Port %[dst_port]
        http-request add-header X-Forwarded-Proto https if { ssl_fc }
        option tcp-check
        server mufit-be mufit-be:3000 check maxconn 512


Or do you want to take a look the configuration in my server? i will pm my site credential.

Thanks in advance
What do you mean server error log reporting? isn't in couch or in my server?

Your nginx server keeps a log of all errors it encounters. Please locate it and see what it states as the cause for the error in question.
KK wrote:
What do you mean server error log reporting? isn't in couch or in my server?

Your nginx server keeps a log of all errors it encounters. Please locate it and see what it states as the cause for the error in question.


I don't have access to it KK, when i try to access it keep an error "You Don't Have Permission". since im not the superadmin for this server.
KK wrote: What is the server's error log reporting?


Update:
Here's my server error log @KK
Code: Select all
2019/08/01 17:43:14 [error] 18463#0: *63 open() "/usr/share/nginx/mufit-landingpage/nginx-logo.png" failed (2: No such file or directory), client: 10.140.0.2, server: mufit.id, request: "GET /nginx-logo.png HTTP/1.1", host: "mufit.id", referrer: "https://mufit.id/backend/"
2019/08/01 17:43:14 [error] 18463#0: *64 open() "/usr/share/nginx/mufit-landingpage/poweredby.png" failed (2: No such file or directory), client: 10.140.0.2, server: mufit.id, request: "GET /poweredby.png HTTP/1.1", host: "mufit.id", referrer: "https://mufit.id/backend/"
2019/08/01 17:43:14 [error] 18463#0: *65 connect() failed (111: Connection refused) while connecting to upstream, client: 10.140.0.2, server: mufit.id, request: "GET /backend/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mufit.id"
2019/08/01 17:43:14 [error] 18463#0: *67 open() "/usr/share/nginx/mufit-landingpage/poweredby.png" failed (2: No such file or directory), client: 10.140.0.2, server: mufit.id, request: "GET /poweredby.png HTTP/1.1", host: "mufit.id", referrer: "https://mufit.id/backend/"
2019/08/01 17:43:14 [error] 18463#0: *68 open() "/usr/share/nginx/mufit-landingpage/nginx-logo.png" failed (2: No such file or directory), client: 10.140.0.2, server: mufit.id, request: "GET /nginx-logo.png HTTP/1.1", host: "mufit.id", referrer: "https://mufit.id/backend/"
2019/08/01 17:43:20 [error] 18493#0: *4 open() "/usr/share/nginx/mufit-landingpage/nginx-logo.png" failed (2: No such file or directory), client: 10.140.0.2, server: mufit.id, request: "GET /nginx-logo.png HTTP/1.1", host: "mufit.id", referrer: "https://mufit.id/backend/"
2019/08/01 17:43:20 [error] 18493#0: *5 open() "/usr/share/nginx/mufit-landingpage/poweredby.png" failed (2: No such file or directory), client: 10.140.0.2, server: mufit.id, request: "GET /poweredby.png HTTP/1.1", host: "mufit.id", referrer: "https://mufit.id/backend/"
2019/08/01 17:43:20 [error] 18493#0: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 10.140.0.2, server: mufit.id, request: "GET /backend/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mufit.id"
2019/08/01 17:43:20 [error] 18493#0: *8 open() "/usr/share/nginx/mufit-landingpage/poweredby.png" failed (2: No such file or directory), client: 10.140.0.2, server: mufit.id, request: "GET /poweredby.png HTTP/1.1", host: "mufit.id", referrer: "https://mufit.id/backend/"
2019/08/01 17:43:20 [error] 18493#0: *9 open() "/usr/share/nginx/mufit-landingpage/nginx-logo.png" failed (2: No such file or directory), client: 10.140.0.2, server: mufit.id, request: "GET /nginx-logo.png HTTP/1.1", host: "mufit.id", referrer: "https://mufit.id/backend/"


Thanks, Hope it can help.
6 posts Page 1 of 1