Jump to content

Nginx and phpmyadmin -> Fast-cgi problem ?


jeremy.vorpe@hispeed.ch

Recommended Posts

Hello,

 

I've install tcadmin control pannel with nginx.

 

So, i want install phpmyadmin !

 

That's ok !

 

But when i want go to sub.domain.com/phpmyadmin

 

a file has downloaded.

 

So, when i try to go /phpmyadmin/index.php,

 

I've this error :

 

Application Exception
System.Web.HttpException
The resource cannot be found.

Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Details: Requested URL: /phpmyadmin/index.php
Exception stack trace:
 at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 
 at System.Web.HttpApplication+<Pipeline>c__Iterator3.MoveNext () [0x00000] in <filename unknown>:0 
 at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0 

 

If i try to paste te directory to phpmyadmin on the default.conf :

 

		location ~ \.php$ {
include /etc/nginx/fastcgi.conf;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}

 

but the result is : 502 Bad Gateway on Gninx.

 

So, i check the logs ->

2016/11/14 18:40:23 [crit] 10769#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 77.56.198.28, server: , request: "GET /phpmyadmin/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "mydomainkappa"

 

 

So ... if anyone can help me ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use