Report this

What is the reason for this report?

Installing PhpMyAdmin on Ubuntu 16.04 LEMP

Posted on October 6, 2017

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?



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!

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.

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;
  }
 }

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.