Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hello I have installed the newest stable Version of Nginex (1.4.4) and want to install also phpMyAdmin, unfortunately the following error appears when I try to open phpMyAdmin in my browser through http:// 192 . . . /phpmyadmin:

404 Not Found
nginx/1.4.4

What exactly is the reason that Nginx can't find the phpMyAdmin file?

This is the content of my /etc/nginx/nginx.conf file:

user  nginx;
worker_processes  4;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
}

Many Greetings

share|improve this question
    
Where is your server block? And location block? –  user1573604 Nov 22 '13 at 0:24

2 Answers 2

location blok d00d

you may be lacking a

location /phpmyadmin

or whatever it is.. ook in the rtfm

but yea, its a great gui to mysql, but nothing beats "screen" and mysql cli client :P

EDIT: its cool like

show variables like "%max%";

show variables like "%conn%";

show slave status ;

share|improve this answer

Thanks! In which file of which folder must I insert the command

location /phpmyadmin

if I insert it into the header of the nginx.conf and restart nginx the error appears that a location directive is not allowed here.

I have followed the instructions on https://www.digitalocean.com/community/articles/how-to-install-phpmyadmin-on-a-lemp-server and linked nginx and phpMyAdmin through the following command:

sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/html
(the folder "www" was replaced in the newer versions of Nginx through "html")
sudo service nginx restart

If I now try to start phpMyAdmin through "http:// 192 . . . /phpmyadmin" the following error appears in my browser:

403 Forbidden
nginx/1.4.4

If I try to start phpMyAdmin through "http:// 192 . . . /phpmyadmin/index.php" the index.php file only gets downloaded.

Many Greetings

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.