francly
By:
francly

Ajenti LEMP setup

May 25, 2014 2.9k views
Hi, I have installed Ajenti V to get one my site migrated from other host, running on LEMP. I keep getting this error when try to browse the added website, do you have any idea? I have change the config to point the web root to other directory, why it’s keep going to the default nginx path /usr/share/nginx/html. [root@0fy1 ~]# tail -f /var/log/nginx/error.log 
2014/05/24 13:39:43 [error] 1302#0: *590 directory index of "/usr/share/nginx/html/" is forbidden, client: 175.143.232.136, server: do.fff.com, request: "GET / HTTP/1.1", host: "www.abc.my" 
2014/05/24 13:39:44 [error] 1302#0: *590 directory index of "/usr/share/nginx/html/" is forbidden, client: 175.143.232.136, server: do.fff.com, request: "GET / HTTP/1.1", host: "www.abc.my" 
2014/05/24 13:39:50 [error] 1302#0: *593 connect() failed (111: Connection refused) while connecting to upstream, client: 175.143.232.136, server: do.fff.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "abc.my" 
2014/05/24 13:39:50 [error] 1302#0: *593 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "abc.my" 
2014/05/24 13:39:51 [error] 1302#0: *593 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: "GET /favicon.ico HTTP/1.1", host: "abc.my" 
2014/05/24 13:39:51 [error] 1302#0: *593 open() "/usr/share/nginx/html/404.html" failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: "GET /favicon.ico HTTP/1.1", host: "abc.my" 
2014/05/24 13:39:51 [error] 1302#0: *593 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: "GET /favicon.ico HTTP/1.1", host: "abc.my" 
2014/05/24 13:39:51 [error] 1302#0: *593 open() "/usr/share/nginx/html/404.html" failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: "GET /favicon.ico HTTP/1.1", host: "abc.my" 
2014/05/24 13:39:53 [error] 1302#0: *593 connect() failed (111: Connection refused) while connecting to upstream, client: 175.143.232.136, server: do.fff.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "abc.my" 
2014/05/24 13:39:53 [error] 1302#0: *593 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "abc.my" 
2014/05/24 13:40:40 [error] 1302#0: *593 connect() failed (111: Connection refused) while connecting to upstream, client: 175.143.232.136, server: do.fff.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "abc.my" 
2014/05/24 13:40:40 [error] 1302#0: *593 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 175.143.232.136, server: do.fff.com, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "abc.my" The nginx file automated generated. [root@~]# less /etc/nginx/conf.d/abc.conf 
[root@ ~]# tail -f /var/log/ #AUTOMATICALLY GENERATED - DO NO EDIT! server { 
listen *:80; server_name abc.my www.abc.my; access_log /var/log/nginx/abc.access.log; 
error_log /var/log/nginx/abc.error.log; root /www/web/abc_my/public_html; 
index index.html index.htm index.php; location ~ \.php$ { 
alias /www/web/abc_my/public_html; 
fastcgi_pass 127.0.0.1:9000; 
include fastcgi_params; fastcgi_index index.php; 
include fcgi.conf; 
fastcgi_pass unix:/var/run/php-fcgi-abc-php-fcgi-0.sock; 
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
2 Answers
Try deleting the line that says fastcgi_pass 127.0.0.1:9000; and restarting nginx. Does that fix it?
Yes, you don't need to add any custom fastcgi_pass - Ajenti V does that for you
Have another answer? Share your knowledge.