Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[INFO] Installing Cacti and PHP5 on Gentoo:info on USE flags

 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
JustJoe



Joined: 24 Mar 2005
Posts: 10

PostPosted: Thu Feb 02, 2006 6:52 pm    Post subject: [INFO] Installing Cacti and PHP5 on Gentoo:info on USE flags Reply with quote

Hi,

After i emerged Cacti on Gentoo -having PHP5 installed- i ran into some 'Call to undefined errors' when i first accessed http://localhost/cacti.
It turned out to be missing USE flags for PHP5.

So, if you get the above error you have to re-emerge PHP5 with proper USE flags:
Code:
root@box# echo "=dev-lang/php-5* cgi cli mysql session snmp pcre xml " >> /etc/portage/package.use && emerge -av dev-lang/php


Be carefull on the cgi and cli flags though, especially when you also have PHP4 installed: http://www.gentoo.org/proj/en/php/php4-php5-configuration.xml

HTH
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Fri Feb 03, 2006 3:08 am    Post subject: Reply with quote

Hi

these flags have to be used when you emerge dev-lang/php (which replaces both dev-php/mod_php and dev-php/php).

I added the flag 'sockets', which is needed by the "network discovery' plugin.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group