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    


poller.php exec() problem

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
web wheeler



Joined: 19 Nov 2008
Posts: 2

PostPosted: Wed Nov 19, 2008 9:42 pm    Post subject: poller.php exec() problem Reply with quote

I just installed Cacti and I'm getting this message from poller.php:

Warning: exec() has been disabled for security reasons in /usr/share/cacti/lib/poller.php on line 125

I couldn't find anything in the Cacti documentation that said anything about configuring php to allow exec().

So, what would be the best way to resolve this problem?

I'm running PHP Version 5.2.6 in Fedora 9 (Kernel Linux 2.6.27.5-37.fc9.i686).

Thanks for your suggestions!
Back to top
plikadida



Joined: 13 Nov 2008
Posts: 5

PostPosted: Thu Nov 20, 2008 4:41 am    Post subject: Reply with quote

check php.ini file and see if exec command has been disabled there....
Back to top
web wheeler



Joined: 19 Nov 2008
Posts: 2

PostPosted: Thu Nov 20, 2008 9:31 am    Post subject: Reply with quote

Of course my php.ini file disables the exec() command. Exec() and other system calls in PHP, running under Fedora, are disabled by default.

Enabling exec() in php has its problems as well. However, what I'm wondering is why there is nothing in the Cacti documentation that addresses this issue and if enabling exec() in the php.ini file is the recommended solution?
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 978
Location: B/CS Texas

PostPosted: Fri Dec 05, 2008 4:58 pm    Post subject: Reply with quote

Yes, enabling exec is required. PHP provides us with that function, and we use it. Disabling functions in PHP has the ability to break any application. We can not provide a work around for it being disabled (such as use shell_exec instead) since they might just go and disable that one too. It would be like a Cat and Mouse game.

We don't provide specific Vendor information such as "For Fedora check to ensure exec is enabled in your php.ini" as we can not keep track of all the changes Distro Vendors make to their internal settings. It is your responsibility to ensure your server is setup correctly to run the application.

That and I wouldn't recommend Fedora to run even my test boxes on. I still have nightmares from when I used to use it.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group