K
K
Kirill Kazakov2015-07-04 06:38:37
PHP
Kirill Kazakov, 2015-07-04 06:38:37

Nginx backend + phpmyadmin doesn't respond, redirects to 8080 and stalls, why?

Debian 8. php 5.6 , Zend OPcache enabled, nginx 1.8
Nginx:80 + Nginx:8080 .
I'm trying to access this path domain_name/pma . An authorization window appears.
When trying to authenticate, it sends it to port 8080 and everything stalls there.
I tried to send redirects to port 80, but then I didn’t pass authorization, it returns to entering the login \ pass.

location /pma {
alias /usr/share/phpmyadmin/;
index index.php index.html index.htm;
location ~ \.php {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_ignore_client_abort off;
}

location ~* ^/phpmyadmin/.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid |midi|wav|bmp|rtf|js|swf|flv|avi|djvu|mp3)$ {
root /usr/share;
#alias /usr/share/phpmyadmin;
}

}

What could be the problem and how to fix it?

tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 7479/mysqld tcp 0 0 127.0.0.1:11211 0.0.0.0:*
LISTEN 5154/memcached
sshd
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 12077/nginx.conf


UPD1:
Or give a simple phpmyadmin + nginx
recipe Upd2:
I tried this manual, the result is the same.

UPD3:
Issue resolved here

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DENIS SHELESTOV, 2015-07-05
@djdeniro

How I did
Install nginx
Install php5-fpm
Install mysql server
on digital ocean There is an instruction

Here

1) Download PHPMYADMIN, create a folder, make a shortcut to it in folders with sites
2) Download PHPMYADMIN, create a site in nginx sql.mysite.example and that's it
-------
You can try to put the config first: listen 80;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question