Cacti on pgsql in Laravel

Description

I have a laravel application that I am trying to integrate with Cacti : it is a complete network graphics solution designed to take advantage of the storage capabilities and graphical data exchange of RRDTool.


Actions

I downloaded it and put it in my public/ directory.

Now that I go to http://localhost:8888/cacti/


I got

First try

FATAL: Cannot connect to MySQL server on "localhost". Make sure you provide the correct MySQL database name in 'include / config.php'


Then I opened "include / config.php". Since my goal is to try connecting it to pgsql instead of mysql , so here are my current settings

 $database_type = "pgsql"; $database_default = 'cacti'; $database_hostname = 'localhost'; $database_username = 'postgres'; $database_password = ''; $database_port = '5432'; $database_ssl = false; 

As soon as I click saved and refresh the page http://localhost:8888/cacti/

Second attempt

Now I got: The localhost page isn't working :(

enter image description here


Database

I have already created the cacti database on my localhost running on port 5432 .

enter image description here


Any hints / suggestions on this subject would be greatly appreciated!

+6
source share
1 answer

As stated on this site , cacti is designed to work only with MySQL.

Cacti is written in PHP and supports MySQL for storing RRDTool data only.

Although, there is this link for installing cacti with pgsql .
Host PostgreSQL Template

+2
source

All Articles