Installing PhpMyAdmin on Ubuntu 16.04 LEMP

Hi, I’m trying to install phpMyAdmin by SSH on Ubuntu 16.04 with LEMP… I’m stopped on this string:

sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html

They take to me this error:

ln: failed to create symbolic link '/usr/share/ngix/html': No such file or directory

I’ve watched by FTP and the folders exist…! Why take to me this error?

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Solved adding this on nginx configuration:

location /phpmyadmin {
  root /usr/share/;
  index index.php;
  try_files $uri $uri/ =404;

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

  location ~ /phpmyadmin/(.+\.php)$ {
    fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
    include snippets/fastcgi-php.conf;