Thread: phpmyadmin
View Single Post
  #15  
Old 31st December 2016, 02:47
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
well why not? if its for apache it should be for nginx.. never used nginx
btw.. phpmyadmin is not suported by default with nginx, only apache2 and lighthttpd

Open /etc/nginx/sites-available/ ... default config and default ssl..if you have any then add:

Code:
location /phpmyadmin {               
 root /usr/share/;                
index index.php index.html index.htm;               
 location ~ ^/phpmyadmin/(.+\.php)$ {                        
try_files $uri =404;                      
  root /usr/share/;                        
fastcgi_pass 127.0.0.1:9000;                       
 fastcgi_index index.php;                       
 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;                      
  include /etc/nginx/fastcgi_params;                
}               
 location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {                        
root /usr/share/;               
 }        
 }        
 location /phpMyAdmin {               
 rewrite ^/* /phpmyadmin last;        
 }
Add the above in the server container
server{
...... code code
}
restart nginx
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote