Nginx and PHP5-FPM are installed and working well ...
# I can access http://www.example.com and http://www.example.com/info.php
$ 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
I installed phpmyadmin and created a symlink to phpmyadmin files
lrwxrwxrwx 1 root root 21 Nov 1 08:37 phpmyadmin -> /usr/share/phpmyadmin
but trying to get http://www.example.com/phpmyadmin => I get the forbidden 403
using a symlink, I don't need to add anything related to phpmyadmin in my nginx.conf ... what might be missing?
Update 1: adding index.php to uri leads to login panel
http:
what should I add to my default file to get it directly ... I think my try file is not valid. here is my default nginx site con file
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; } }
source share