[CentOS] Cacti Installation on CentOS 5

Christoph Maser cmr at financial.com
Wed Sep 2 12:38:29 UTC 2009


Am Mittwoch, den 02.09.2009, 14:36 +0200 schrieb Gabriel - IP Guys:

>
> Thank you for your response - I went through those instructions, and
> again, I got the same error as below.
>
> FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure
> you have specified a valid MySQL database name in 'include/config.php'
>
> The database configuration in config.php is correct, and is readable,
> because if I change the hostname, the error message changes accordingly.
> I can connect to the MySQL database just fine with the configuration
> information that is in config.php. Any ideas would be appreciated - If
> this become too off topic, someone feel free to say so.


If you have selinux enabled as you should you need to set sebool
httpd_can_network_connect_db on.

Chris


financial.com AG

Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553



More information about the CentOS mailing list