HELP!! New Installation on W2K3 Server

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

HELP!! New Installation on W2K3 Server

Post by jph »

I followed the install instructions provided for Windows and I'm using IIS 6.0. I point my browser to http://my server/cacti, but nothing is displayed. Where should I go from here? Any troubleshooting tips?

Thank you,
jph
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) did you enable php in the web extentions in IIS?
2) go to your command prompt paste the output of: php -m
3) what version of everything are you using?
4) did you specify a valid default webpage for your ./cacti/ website in IIS?
jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

Post by jph »

First off, I'm not too familiar with IIS and administering Cacti, but I was given a project so I'm trying to complete it, thanks again...

1) did you enable php in the web extentions in IIS?
I enabled php5isapi.dll.

2) go to your command prompt paste the output of: php -m
C:\Documents and Settings\Administrator>php -m
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib

[Zend Modules]


3) what version of everything are you using?
PHP 5.0.4
cacti 0.8.6d
mysql 4.1.12
iis 6
rrdtool 1.2.1

4) did you specify a valid default webpage for your ./cacti/ website in IIS?
My system already has a default webpage so I set up a virtual directory, but I wasn't sure of the directory it should point to, so it's directed to c:\cacti.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you're going to use rrdtool 1.2.x, then you really should be using 1.2.11. TONS of bug fixes.

2) A virtual directory is fine, but you still need to set tell IIS what the default file(s) are for it. Get properties on the virtual directory. Go to the documents tab. Personally, I use graph_view.php as the default document since I don't want people getting a logon prompt when they visit my cacti page. While you're getting things set up, you can use index.php as the default page.
JasonMoyer
Posts: 5
Joined: Wed Sep 07, 2005 12:15 pm

Post by JasonMoyer »

jph,

Was this resolved? If so, please share it.

Thanks!
jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

Post by jph »

Unfortunately it still doesn't work. Also I was unable to load RRDTool 1.2.11 so I'm using 1.2.10. I get the following url error:

The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.
--------------------------------------------------------------------------------

Please try the following:

Contact the Web site administrator if you believe this directory should allow execute access.
HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Configuring ISAPI Extensions, Configuring CGI Applications, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
In the IIS Software Development Kit (SDK) or at the MSDN Online Library, search for topics titled Developing ISAPI Extensions, ISAPI and CGI, and Debugging ISAPI Extensions and Filters.
Peolon
Posts: 1
Joined: Fri Sep 09, 2005 9:05 am

Post by Peolon »

In IIS 6.0 You need to allow the "Unknown ISAPI extension" filters.
IIS manager/Web Service Extensions. Select "all unknown ISAPI filter" and press allow. Did the trick for me.
jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

Post by jph »

Well after changing the execute permissions for the virtual directory from none to scripts only, i get the following:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'cactiuser'@'localhost' (using password: YES) in E:\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 339

Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'.


where else do I need to verify the username, password and database name?

thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

This is a mysql issue. You need to modify your cactiuser and allow it to connect from 'localhost' in MySQL. using something like mysql control center or phpmyadmin is a little bit easier than the mysql cli.
jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

Post by jph »

yeah I figured that was the problem. Initially while following the instructions for the mysql installation, it states to run winmysqladmin.exe, but the file does not exist, so I just tried to execute mysqladmin.exe. Do you think this has anything to do with it?
jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

Post by jph »

I finally got it to work!! There was something wrong with my initial mySql installation, I uninstalled and reinstalled the database and now am able to connect and follow the instructions provided.

Thanks for all your help
jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

Transferring data

Post by jph »

Now that Cacti is up and running, I am unable to view any graphs...I just get a red x with the title beside it, I guess my poller isn't working correctly. As the instructions suggested, my scheduled task is php-win.

Also, are there step by step instructions for transferring data between servers, we initially had apache running on an old nt 4.0 server, now we are using iis 6.0 on the w2k3 server, do u have any suggestions on performing this transfer?

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You had an existing installation of cacti on the NT server? Or you just want to transfer and use the rrd files from it ?

There are guides for using rrd files which cacti does not have data sources for (search the forum). As for moving a mysql database from NT to Win2K3, I *think* all you need to do is back it up on NT and then restore on Win2K3.
jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

Post by jph »

Yes there is an existing installation on the NT 4.0 server, and would like to transfer the data to the new W2K3 server. Are you saying all I need to do is transfer the mysql database from the old to the new and everything should work?
jph
Posts: 23
Joined: Thu May 19, 2005 10:44 am

Post by jph »

This is my Debug output:

Data Source Debug

E:\rrdtool\rrdtool.exe create \
E:\cacti/rra/test_traffic_in_9.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests