PDA

View Full Version : php exec() issue



h2d
02-10-2010, 02:03 PM
Hi

Am trying to activate cacti on my server but i get this error

Notice: Undefined variable: snmp_value in /home/admin/domains/domain.com/public_html/cacti/lib/snmp.php on line 119

Warning: exec() has been disabled for security reasons in /home/admin/domains/domain.com/public_html/cacti/lib/snmp.php on line 119

Notice: Undefined variable: snmp_value in /home/admin/domains/domain.com/public_html/cacti/lib/snmp.php on line 131
SNMP error

This generally means, safe mode is on

I have turned off safe mode as well as open base dir.

Still have the same problem, and i also confirm that safe mode is turned off for that domain with phpinfo.

Cacti use to work, but no longer does ??

scsi
02-10-2010, 02:09 PM
You have to compile snmp into php and enable the exec function.

h2d
02-10-2010, 02:10 PM
Really ? since when, as i said my cacti use to work, as of say 2 months ago.

h2d
02-10-2010, 02:59 PM
You have to compile snmp into php and enable the exec function.

can you explain how this is done ?

Im running debian 5
apache2
php 5.2.12

cheers