Skip to content

Instantly share code, notes, and snippets.

@DarrylDias
Created January 15, 2014 08:22
Show Gist options
  • Save DarrylDias/8432620 to your computer and use it in GitHub Desktop.
Save DarrylDias/8432620 to your computer and use it in GitHub Desktop.
NGINX phpMyAdmin configuration for Fedora.
server {
listen 81; #You can change listen to the port you prefer
server_name localhost; # the server_name must be changed to the domain if required
root /usr/share/phpMyAdmin; # the root must be changed if the path to phpMyAdmin is different
index index.php;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location ~ \.php$ {
root /usr/share/phpMyAdmin;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # to get php-fpm running.
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment