Hello Digital Oceans, May i know why i can’t access my phpmyadmin on Nginx and Ubuntu 16.04? I have following all of the tutorial, but the page can’t be reach.
server {
listen 80;
listen [::]:80;
root /var/www/xyz/html;
server_name tenpotech.com www.tenpotech.com;
return 301 https://$server_name$request_uri;
}
# SSL configuration
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
include snippets/ssl-tenpotech.com.conf;
include snippets/ssl-params.conf;
root /var/www/xyz/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name tenpotech.com www.tenpotech.com;
location ~ /.well-known {
allow all;
}
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { log_not_found off; access_log off; allow all; }
location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
expires max;
log_not_found off;
}
location / {
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php7.0-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php7.0-fpm:
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Am i miss something?
Thank you, Frans W
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I was able to get it worked by making minor change in symlink part as following:
sudo ln -s /usr/share/phpmyadmin /var/www/html
I have the same problem. To install phpmyadmin, I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-14-04-server
The install seemed to work. I restarted PHP as follows: sudo service php7.0-fpm restart I also restarted nginx as follows: sudo systemctl restart nginx
When I browse to xxx.com/phpmyadmin, my WP site show a 404 page.
Any idea how can I resolve this issue?
I opened up a support ticket for installing phpMyAdmin on my Ubuntu 16.04 LEMP configuration. I got a response and I am trying to make it work now. Once it is fully functional, I will leave a post here on how I got it working.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.