Cacti Allowed memory size of 123456 bytes exhausted

Posted on Nov 17, 2014

If You get such error on after installing cacti, and no mater how big memory_limit:

1
[Mon Nov 17 22:41:49.267134 2014] [:error] [pid 24152] [client 78.58.224.49:41062] PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 130968 bytes) in /usr/share/cacti/lib/adodb/adodb.inc.php on line 833

Please make sure if You imported the cacti sql file.
My .sql file location was:
_/usr/share/doc/cacti-0.8.8b/cacti.sql
_

You may easily import the database like:

1
cat /usr/share/doc/cacti-0.8.8b/cacti.sql | mysql -u username database -p