Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

[GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
26 posts
  • Previous
  • 1
  • 2
  • 3
gregorio
Posts: 7
Joined: Thu Apr 16, 2020 9:03 pm

Os: CentOS 7x
Web: nginx + php-fpm
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
  • Quote

Post by gregorio » Sat Apr 18, 2020 2:50 pm

Any idea on how to force adminer to work only on HTTPS?
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 8x
Web: apache + nginx
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
  • Quote

Post by Spheerys » Sat Apr 18, 2020 2:59 pm

I'm also interested !
I thought a simple .htaccess like this :

Code: Select all

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{HTTPS} off [OR]
  RewriteCond %{HTTP_HOST} ^www\.
  RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$
  RewriteRule ^ https://%1%{REQUEST_URI} [NE,L,R=301]
</IfModule>
... on /usr/share/phpmyadmin/ (because I didn't changed the original path) should do the work, but no...
Top

gregorio
Posts: 7
Joined: Thu Apr 16, 2020 9:03 pm

Os: CentOS 7x
Web: nginx + php-fpm
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
  • Quote

Post by gregorio » Fri May 22, 2020 7:58 pm

.htaccess doens't work because the webserver that serves adminer is nginx.

I've found another way, you have modify the file:

Code: Select all

/etc/nginx/conf.d/phpmyadmin.inc
Adding these lines at line #3:

Code: Select all

    if ($server_port = 80) {
        rewrite ^ https://$host$request_uri permanent;
    }
Then restart the webserver.
Top

njkxszao691
Posts: 718
Joined: Wed May 11, 2022 1:29 am

Os: Ubuntu 13x
Web: nginx + php-fpm
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
  • Quote

Post by njkxszao691 » Sat May 14, 2022 7:11 am

Cheap NBA Jerseys
Cheap NFL Jerseys
Football Jerseys Cheap
Wholesale Jerseys
NFL Football Jerseys
Wholesale Jerseys
NBA Shop
Custom NHL Jerseys
Baseball Jerseys
NFL Shop
Cheap NBA Jerseys
MLB Shop
NFL Team Shop
NFL Jerseys Wholesale
Cheap Jerseys
Cheap NBA Basketball Jerseys
NFL Jerseys China
Cheap Jerseys
Cheap NHL Jerseys China
NHL Gear
Cheap NFL Jerseys From China
MLB Jerseys Wholesale
Wholesale Jerseys
Football Jerseys
Wholesale NFL Jerseys
Official NFL Jersey
MLB Store Official Site
Wholesale Jerseys China
Official NFL Jersey
NFL Jerseys
NBA Jerseys
NBA Jerseys
Custom Baseball Jerseys
NHL Jerseys Cheap
NFL Apparel
Official NFL Shop
NFL Gear
Jerseys Wholesale
MLB Shop Online
NFL Store Online Shopping
MLB Store
NFL Jerseys
Cheap NBA Jerseys
NFL Store
NHL Jerseys
Top

njkxszao691
Posts: 718
Joined: Wed May 11, 2022 1:29 am

Os: Ubuntu 13x
Web: nginx + php-fpm
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
  • Quote

Post by njkxszao691 » Mon May 16, 2022 4:54 pm

Nike Snkrs
Yeezy Boost 350
Nike Presto
Adidas Outlet
Adidas Ultra Boost
Nike Store
Nike Roshe
Nike Shoes Canada
Nike UK
Nike Canada
Nike Outlet Online
Nike Sneakers
Yeezy
Nike Clearance
Yeezy
Nike Air Force 1
Nike Factory Store
Pandora UK
Nike Outlet
Adidas
Adidas Shoes
Pandora Charms UK
Adidas Ultra Boost Men
Adidas
Adidas
Pandora Ring UK
Adidas Outlet
Nike Outlet Store Online Shipping
Yeezy
Adidas Shoes
Yeezy 350
Off White
Nike Outlet Factory
Adidas NMD
Air Force 1
Nikes
Adidas Yeezy
Adidas Shoes
Adidas Superstar Women
NMD
Adidas Superstars
Adidas Shoes
Pandora Jewelry
Pandora
Ultra Boost
Adidas Superstar Women
Nike Shoes
Adidas Shoes
Nike Canada
Adidas Trainers UK
Pandora Charms
Adidas Outlet Store
Pandora Charms
Yeezy
Adidas Yeezy
Yeezy 500
Nike Running Shoes Men
Pandora Bracelets
Yeezys
Nike Clearance Outlet Online Store
Yeezy
Yeezy 350
Nike Canada Online
Pandora Jewelry
Top

njkxszao691
Posts: 718
Joined: Wed May 11, 2022 1:29 am

Os: Ubuntu 13x
Web: nginx + php-fpm
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
  • Quote

Post by njkxszao691 » Mon May 16, 2022 9:02 pm

MLB Shop Online
NHL Store
NBA Shop Online
Cheap NBA Jerseys From China Free Shipping
Official NFL Shop
Cheap Jerseys Wholesale
NFL Jerseys
NFL Jerseys From China
Cheap NFL Jerseys From China
NFL Shop
NFL Jerseys Cheap
NHL Jerseys Cheap
Cheap Basketball Jerseys
Cheap NHL Hockey Jerseys
Cheap NBA Jerseys
NFL Jerseys
NFL Jerseys Cheap
Cheap NHL Jerseys
Cheap NFL Jerseys From China
MLB Shop Online
MLB Jerseys
NFL Jersey
NHL Jerseys
Baseball Jerseys
NFL Store
NFL Gear
Wholesale Jerseys China
Cheap Jerseys
NFL Fan Shop
MLB Store
Wholesale Jerseys China
NFL Football Jerseys
NBA Jersey
Cheap NBA Jerseys
Cheap Jerseys Wholesale
NFL Jerseys
NFL Store
MLB Jerseys
MLB Official Site
NFL Team Shop
Wholesale Jerseys
NFL Jersey Sales
NFL Jersey
Wholesale Jerseys
NBA Jersey
Top


Post Reply
  • Print view

26 posts
  • Previous
  • 1
  • 2
  • 3

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password