• Skip to main content
  • Skip to primary sidebar
  • Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / nginx server tutorials (installation, configuration, performance tuning, security) / install phpmyadmin ubuntu nginx 22.04

install phpmyadmin ubuntu nginx 22.04

 

Step 1 installing phpMyAdmin

2; configuring nginx with phpMyAdmin root directory

 

3rd optional” using a secret keyword.

 

Table of Contents

Toggle
  • install phpmyadmin ubuntu nginx
  • 2nd configure the nginx server access to  phpmyadmin (unlike apache its manual)
    • add this  to default.conf or
  • Optional steps acesing phpmyadmin by secure url
  • 3rd step reload nginx
  • Test Phpmyadmin installation
  • Points on phpmyadmin nginx installation

install phpmyadmin ubuntu nginx

 

sudo apt-get update && sudo apt-get install phpmyadmin

phpmyadmin-install on ubutu nginx part 2

phpmyadmin-install on ubutu nginx

after installation complete

 

2nd configure the nginx server access to  phpmyadmin (unlike apache its manual)

 

if access after  above step

serverip/phpmyadmin

403 Forbidden
nginx

add this  to default.conf or

location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
#fastcgi_pass unix:/run/php/php8.1-fpm.sock;
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/;
}
}

 

Optional steps acesing phpmyadmin by secure url

sudo ln -s /usr/share/phpmyadmin /var/www/html/secretword

 

add this default.conf or   (with in sever block)

location /secretword {
root /var/www/html;
index index.php;
try_files $uri $uri/ /index.php?$args;

location ~ ^/secretword/(.+\.php)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

}

location ~ ^/secretword/(doc|sql|setup)/ {
deny all;
}
}

example:

location /sqlc {
root /var/www/html;
index index.php index.html index.htm;
location ~ ^/sqlc/(.+\.php)$ {
try_files $uri =404;
root /var/www/html;
#fastcgi_pass unix:/run/php/php8.1-fpm.sock;
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 ~* ^/sqlc/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /var/www/html;
}
}

3rd step reload nginx

nginx -s reload

Test Phpmyadmin installation

serverip/phpmyadmin

Points on phpmyadmin nginx installation

Location block should be within server block.

if phpmyadmin location kept in snippets or sites enabled make sure it include in any server block.

apache & lightthp automatically configures for webserver bug nginx not.

fastcgi_pass : unix socket or tcp whicherver is your server using.

Primary Sidebar

nginx server tutorials (installation, configuration, performance tuning, security)

  • Letsencrypt SSL Installation on apache/Nginx ubuntu / debian wordpress
  • fix error 520 522 524 on cloudflare wordpress godaddy nginx etc
  • nginx fastcgi cache wordpress how to configure
  • install LEMP Stack on 22.04 LTS Nginx MySQL PHP fpm #wordpress #digital ocean
  • Apache vs nginx (connection handling, modules, memory usage)
  • Pagespeed module install, configure, monitor, errors ft nginx &apache
  • nginx errors (504,502, 413, unable to start, syntax errors)
  • nginx conf explained best config file performance tuning tips nginx.conf location errors tutorial
  • use nginx as reverse proxy and load balancer for apache wordpress
  • nginx rewrite rules with examples 301 redirection
  • nginx modules list (enable, disable, upgrade, install dynamic module)
  • php fpm pool manager configuration settings based on server spike high cpu wordpress
  • php fpm restart nginx ubuntu enable status page, monitor etc
  • what is TTFB & how to Reduce it (server response time) Google pagespeed
  • letsencrypt install configure on ubuntu / debian nginx
  • Top 10 tips to improve nginx server security
  • nginx performance tuning connections, buffers file descriptors
  • enable brotli compression nginx brotli vs gzip
  • nginx installation on ubuntu 20.04 LTS
  • monitor nginx request with nginx status amplify datadog new relic
  • SSL faster reduce TLS hand shake improve https performance
  • nginx rate limiting explained by location time specific url
  • datadog nginx integration installation process
  • newrelic nginx integration process and errors fix and metrics
  • php fpm seems busy fixed warning and max children reached to handle max connections / requests
  • Php fpm configuration for 1000 concurrent connections server busy max children reached
  • php fpm ondemand vs dynamic vs Static (the dynamic pool problem)
  • nginx upstream response is buffered to a temporary file
  • php fpm install ubuntu 20.04 nginx
  • install phpmyadmin ubuntu nginx 22.04
  • upgrade php fpm ubuntu nginx 7.4 to 8.2
  • nginx add last modified header (remove, php wordpress)
  • php fpm dynamic pool manager settings
  • nginx fastcgi cache purge
  • nginx open file limit connections ulimits sysctl
  • php fpm high cpu usage WordPress 4 solutions nay work for you
  • nginx buffer size for wordpress
  • Cloudflare error code 524 nginx a timeout error occured
  • server configuration for 1000 concurrent users

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy