# Nignx + phpmyadmin set up and config Help

**URL:** <https://www.ruby-forum.com/t/nignx-phpmyadmin-set-up-and-config-help/193873>\
**Category:** NGINX\
**Created:** [August 25, 2010, 10:45pm UTC](https://www.ruby-forum.com/t/nignx-phpmyadmin-set-up-and-config-help/193873 "2010-08-25T22:45:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orlick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/53a042/32.png) [@orlick](https://www.ruby-forum.com/u/orlick)\
**Post date:** [August 25, 2010, 10:45pm UTC](https://www.ruby-forum.com/t/nignx-phpmyadmin-set-up-and-config-help/193873/1 "2010-08-25T22:45:41Z")

</div>

Nignx + phpmyadmin set up and config

Would anyone be kind to help me set a phpmyadmin admin so it would work  
with my set up  
Physical box with Debian Lenny with cgi-fcgi 5.2.6-1+lenny8

My configuration in

* * *

/etc/nginx/fastcgi\_params

fastcgi\_param QUERY\_STRING $query\_string;  
fastcgi\_param REQUEST\_METHOD $request\_method;  
fastcgi\_param CONTENT\_TYPE $content\_type;  
fastcgi\_param CONTENT\_LENGTH $content\_length;

fastcgi\_param SCRIPT\_NAME $fastcgi\_script\_name;  
fastcgi\_param REQUEST\_URI $request\_uri;  
fastcgi\_param DOCUMENT\_URI $document\_uri;  
fastcgi\_param DOCUMENT\_ROOT $document\_root;  
fastcgi\_param SERVER\_PROTOCOL $server\_protocol;

fastcgi\_param GATEWAY\_INTERFACE CGI/1.1;  
fastcgi\_param SERVER\_SOFTWARE nginx/$nginx\_version;

fastcgi\_param REMOTE\_ADDR $remote\_addr;  
fastcgi\_param REMOTE\_PORT $remote\_port;  
fastcgi\_param SERVER\_ADDR $server\_addr;  
fastcgi\_param SERVER\_PORT $server\_port;  
fastcgi\_param SERVER\_NAME $server\_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect

fastcgi\_param REDIRECT\_STATUS 200;

* * *

/etc/nginx/nginx.conf

user www-data;  
worker\_processes 1;

error\_log /var/log/nginx/error.log;  
pid /var/run/nginx.pid;

events {  
worker\_connections 1024;  
# multi\_accept on;  
}

http {  
include /etc/nginx/mime.types;

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

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;

```

}

# mail {

# # See sample authentication script at:

# # [http://wiki.nginx.org/NginxImapAuthenticateWithApachePhpScript](http://wiki.nginx.org/NginxImapAuthenticateWithApachePhpScript)

# 

# # auth\_http localhost/auth.php;

# # pop3\_capabilities “TOP” “USER”;

# # imap\_capabilities “IMAP4rev1” “UIDPLUS”;

# 

# server {

# listen localhost:110;

# protocol pop3;

# proxy on;

# }

# 

# server {

# listen localhost:143;

# protocol imap;

# proxy on;

# }

# }

* * *

/etc/nginx/sites-available/ config of one of my domains

# You may add here your

# server {

# …

# }

# statements for each of your virtual hosts

server {

listen 80; ## listen for ipv4  
#listen [::]:80 default ipv6only=on; ## listen for ipv6

server\_name [doamin.com](http://doamin.com) [www.doamin.com](http://www.doamin.com);

access\_log /var/log/nginx/localhost.access.log;

location / {  
root /var/www/doamin;  
index index.html index.htm;  
}

location /doc {  
root /usr/share;  
autoindex on;  
allow 127.0.0.1;  
deny all;  
}

location /images {  
root /usr/share;  
autoindex on;  
}

#error\_page 404 /404.html;

# redirect server error pages to the static page /50x.html

# 

#error\_page 500 502 503 504 /50x.html;  
#location = /50x.html {

# root /var/www/nginx-default;

#}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80

# 

#location ~ .php$ {  
#proxy\_pass[http://127.0.0.1](http://127.0.0.1);  
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

# 

location ~ .php$ {  
fastcgi\_pass 127.0.0.1:9000;  
fastcgi\_index index.php;  
fastcgi\_param SCRIPT\_FILENAME /var/www/doamin$fastcgi\_script\_name;  
include fastcgi\_params;  
}

# deny access to .htaccess files, if Apache’s document root

# concurs with nginx’s one

# 

#location ~ /.ht {  
#deny all;  
#}  
}

# another virtual host using mix of IP-, name-, and port-based

configuration

# 

#Server {  
#listen 8000;  
#listen somename:8080;  
#server\_name somename alias another.alias;

#location / {  
#root html;  
#index index.html index.htm;  
#}  
#}

# HTTPS server

# 

#Server {  
#listen 443;  
#server\_name localhost;

#ssl on;  
#ssl\_certificate cert.pem;  
#ssl\_certificate\_key cert.key;

#ssl\_session\_timeout 5m;

#ssl\_protocols SSLv2 SSLv3 TLSv1;  
#ssl\_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;  
#ssl\_prefer\_server\_ciphers on;

#location / {  
#root html;  
#index index.html index.htm;  
#}  
#}

* * *

All sites are in  
/var/www/

* * *

My question is does configuration of phpmyadmin gose for every website  
separate or how do I configure it

I understand the basics but if anyone would provide step by step  
instructions it would be greatly appreciated

Sincerily
