Report this

What is the reason for this report?

Ajenti LEMP setup

Posted on May 25, 2014

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; } }



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Yes, you don’t need to add any custom fastcgi_pass - Ajenti V does that for you

Try deleting the line that says <code>fastcgi_pass 127.0.0.1:9000;</code> and restarting nginx. Does that fix it?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.