title: Ubuntu 14 - Nginx - PHP5-fpm : installed phpmyadmin but 403 forbidden access
body: <p>Nginx and PHP5-FPM are installed and running well ... </p>
  
  <p># I can access both <a href="http://www.example.com" rel="noreferrer">http://www.example.com</a> and <a href="http://www.example.com/info.php" rel="noreferrer">http://www.example.com/info.php</a></p>
  
  <pre><code>$ ls -la /var/www/html
   -rw-r--r-- 1 root root  868 Nov  1 08:16 index.html
   -rw-r--r-- 1 root root   21 Nov  1 08:13 info.php
  </code></pre>
  
  <p>I installed phpmyadmin and created a symlink to phpmyadmin files</p>
  
  <pre><code> lrwxrwxrwx 1 root root   21 Nov  1 08:37 phpmyadmin -&gt; /usr/share/phpmyadmin
  </code></pre>
  
  <p>but trying to get  <a href="http://www.example.com/phpmyadmin" rel="noreferrer">http://www.example.com/phpmyadmin</a>  =>  I get a 403 Forbidden</p>
  
  <p>using a symlink, I should not have to add anything related to phpmyadmin into my nginx.conf ... what could be missing ?</p>
  
  <p>Update 1 :  adding  index.php to the uri brings the login panel</p>
  
  <pre><code> http://www.example.com/phpmyadmin/index.php
  </code></pre>
  
  <p>what should I add to my default con file to get it directly ... I guess my try file is not valid ..
  here is my default nginx site con file</p>
  
  <pre><code>    server {
          listen 80 default_server;
          listen [::]:80 default_server ipv6only=on;
  
          root /var/www/html;
          index index.php, index.html index.htm;
  
          server_name example.com;
  
          location / {
              try_files $uri $uri/ index.html index.php  =404;
          }
  
          error_page 404 /404.html;
          error_page 500 502 503 504 /50x.html;
          location = /50x.html {
              root /var/www/html;
          }
  
          location ~ \.php$ {
              try_files $uri =404;
              fastcgi_split_path_info ^(.+\.php)(/.+)$;
              fastcgi_pass unix:/var/run/php5-fpm.sock;
              fastcgi_index index.php;
              include fastcgi_params;
              fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
          }
      }
  </code></pre>