The problem shows up when accessing http://localhost/cacti that i get that error as if there is nothing inside the database or that the permissions have not been set up correctly. I assume php is working and that apache is up cause that seems to be an error accessing mysql, not that apache can't process php or that apache is not running. To check, i typed http://localhost to see if apache is running, which it is. How can i verify that php is working properly with apache? Judging by the error message, i think it's gotta do for some strange reason with mysql, or with the cacti config. I have checked and rechecked and redone everything and i still can't get it to run. I do see the tables that the cacti.sql script created. So the error makes no sense; further down, i put what i did to check the permissions for the cacti user inside mysql. Here's the error:
Code: Select all
Error
You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:
mysql -u cacti -p cacti < cacti.sql
This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.
show grants for 'cacti'@'localhost';
This command yielded the following output:
+--------------------------------------------------------------------------------------------------------------+
| Grants for cacti@localhost |
+--------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'cacti'@'localhost' IDENTIFIED BY PASSWORD '*8793F1AC6B77776A6642859EA37CD6C1446D01D3' |
| GRANT ALL PRIVILEGES ON `cacti`.* TO 'cacti'@'localhost' WITH GRANT OPTION |
+--------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)
This certainly looks right! So i don't know why it's not working.
Thanks for the help.