I want to install Cacti to use on my server. The problem is that I added the location /cacti { .. in 000-ispconfig.vhost just like phpmyadmin, But I can't access it. Nginx returns error code 404.
Here is what I did till now:
apt-get install cacti
and apt-get install snmpd
Then, I did locate cacti
to see where the web script has gone. seems to be /usr/share/cacti/site/
I opened /etc/nginx/sites-enabled/000-ispconfig.vhost
and added a similar directive to phpmyadmin. I can access phpmyadmin and ispconfig itself. but not cacti.
location /cacti {
root /usr/share/cacti/site/;
index index.php index.html index.htm;
location ~ ^/cacti/(.+\.php)$ {
try_files $uri =404;
root /usr/share/cacti/site/;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/lib/php5-fpm/ispconfig.sock;
fastcgi_param HTTPS on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
I think it has something to do with permissons.