When I am installing cacti, i get this error right after I clicked next from the installing process. And when I went back to http:/localhost/index.php, the login in page appears but I can't log in with the cacti user I created from mysql. Help anyone???
Below is the error that I got.
Warning: exec() [function.exec]: Unable to fork [perl C:\cacti\scripts\query_unix_partitions.pl index] in C:\cacti\lib\functions.php on line 991
Warning: Variable passed to each() is not an array or object in C:\cacti\lib\functions.php on line 995
Warning: exec() [function.exec]: Unable to fork [perl C:\cacti\scripts\query_unix_partitions.pl query device] in C:\cacti\lib\functions.php on line 991
Warning: Variable passed to each() is not an array or object in C:\cacti\lib\functions.php on line 995
Warning: exec() [function.exec]: Unable to fork [perl C:\cacti\scripts\query_unix_partitions.pl query mount] in C:\cacti\lib\functions.php on line 991
Warning: Variable passed to each() is not an array or object in C:\cacti\lib\functions.php on line 995
Warning: Cannot modify header information - headers already sent by (output started at C:\cacti\lib\functions.php:991) in C:\cacti\install\index.php on line 207
Error during initial setup for Cacti
Moderators: Developers, Moderators
The default login for cacti is
user name -> admin
password -> admin
Cacti will prompt you to change the password on your first login
The warnings you are receiving are due to the default scripts cacti is configured to run for local host. These scripts are for a unix/linux host and will fail if run on a w32 host.
user name -> admin
password -> admin
Cacti will prompt you to change the password on your first login
The warnings you are receiving are due to the default scripts cacti is configured to run for local host. These scripts are for a unix/linux host and will fail if run on a w32 host.
I'm not quite sure what you mean by this, could you provide a little more detail. What user did you create from mysql?And when I went back to http:/localhost/index.php, the login in page appears but I can't log in with the cacti user I created from mysql.
Thank you Phil,
I logged in with admin and pwd admin after searching the forum. Thanks though.
You mentioned that the warnings are due to Unix/Linux default. I am getting this error now when trying to set up localhost monitoring.
Warning: exec() [function.exec]: Unable to fork [ -v2c -t 1 127.0.0.1:161 "My Community String" .1.3.6.1.2.1.1.1.0] in C:\cacti\lib\snmp.php on line 219
SNMP error
Is this because of the Unix/Linux default also? If so, can you explain how I can fix this? Thanks
I logged in with admin and pwd admin after searching the forum. Thanks though.
You mentioned that the warnings are due to Unix/Linux default. I am getting this error now when trying to set up localhost monitoring.
Warning: exec() [function.exec]: Unable to fork [ -v2c -t 1 127.0.0.1:161 "My Community String" .1.3.6.1.2.1.1.1.0] in C:\cacti\lib\snmp.php on line 219
SNMP error
Is this because of the Unix/Linux default also? If so, can you explain how I can fix this? Thanks
having same problem
Phil wrote:Did you enable SNMP support in PHP?Warning: exec() [function.exec]: Unable to fork [ -v2c -t 1 127.0.0.1:161 "My Community String" .1.3.6.1.2.1.1.1.0] in C:\cacti\lib\snmp.php on line 219
SNMP error
I am having the same problem
Warning: exec() [function.exec]: Unable to fork [ -O vt -c "string" -v 2c -t 1 -r 3 IP:161 .1.3.6.1.2.1.1.3.0] in C:\Apache\htdocs\cacti\lib\snmp.php on line 74
and yes SNMP is enabled in PHP
Couple of Suggestions for Windows "unable to fork"
Hi,
The fork command in the warning message seems to be missing the executable (should appear just before "-v2c"). Check the settings page / path tab to be sure you've specified paths to rrdtool and the net-snmp exes.
Another common issue with fork (exec() and system()) is that a standard windows 2k / XP installation sets specific permissions on the file %windir%\system32\cmd.exe to prevent execution by an anonymous IIS user. Big security hole not-withstanding, you will need to set permissions on this file to enable IUSR_<host> (or whatever your anonymous user account is) to read and execute the cmd.exe file (exec() works by firing up cmd.exe and passing it the desired string).
Hope this helps.
Bill
The fork command in the warning message seems to be missing the executable (should appear just before "-v2c"). Check the settings page / path tab to be sure you've specified paths to rrdtool and the net-snmp exes.
Another common issue with fork (exec() and system()) is that a standard windows 2k / XP installation sets specific permissions on the file %windir%\system32\cmd.exe to prevent execution by an anonymous IIS user. Big security hole not-withstanding, you will need to set permissions on this file to enable IUSR_<host> (or whatever your anonymous user account is) to read and execute the cmd.exe file (exec() works by firing up cmd.exe and passing it the desired string).
Hope this helps.
Bill
Who is online
Users browsing this forum: No registered users and 1 guest