Windows 2000

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

Moderators: Developers, Moderators

Post Reply
Guest

Post by Guest »

I'd say it is almost certainly your PHP.INI
Guest

Post by Guest »

; php.ini for PEAR tests
include_path=c:/cacti
[mail function]
SMTP= localhost ; for Win32 only
sendmail_from= me@localhost.com ; for Win32 only
upload_tmp_dir = C:PHPuploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
[Session]
session.save_path= C:PHPsessiondata ; argument passed to save_handler
[PHP]
error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE) ; display all errors and warnings
extension_dir = C:phpextensions
extension=php_snmp.dll
register_globals = On
register_argc_argv = On
testing
Posts: 7
Joined: Sun Feb 17, 2002 7:00 pm

Post by testing »

Warning: Undefined variable: database in C:program filesapache groupapachehtdocscactiauthincludedatabase.php on line 16

Warning: Undefined variable: database in C:program filesapache groupapachehtdocscactiincludedatabase.php on line 17

Warning: Cannot add header information - headers already sent by (output started at C:program filesapache groupapachehtdocscactiauthincludedatabase.php:16) in C:program filesapache groupapachehtdocscactiauthincludeauth.php on line 23

everything is setted in the php.ini but it still no work.

any ideas?
paul
Posts: 12
Joined: Thu Jan 31, 2002 7:00 pm

Post by paul »

I've got cacti successfully working under win2k with IIS.
Could it be the long filenames in the paths?

Paul
testing
Posts: 7
Joined: Sun Feb 17, 2002 7:00 pm

Post by testing »

Warning: Undefined variable: database in c:inetpubwwwrootcactiauthincludedatabase.php on line 16

Warning: Undefined variable: database in c:inetpubwwwrootcactiincludedatabase.php on line 17

Warning: Cannot add header information - headers already sent by (output started at c:inetpubwwwrootcactiauthincludedatabase.php:16) in c:inetpubwwwrootcactiauthincludeauth.php on line 23


the same output with IIS
is there anyone who knows the problem??
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Looking at this from a generic standpoint, PHP seems to think those variables are not defined. Normally this is not a problem since PHP does not require you to declare your variables first. I would be willing to bet that your problem is in your php.ini file somewhere (also shared between IIS/Apache).

If I had my Win2k machine on now, I'd post my php.ini, otherwise we'll see what happens and I post my copy tomorrow.

Good luck,
-Ian
testing
Posts: 7
Joined: Sun Feb 17, 2002 7:00 pm

Post by testing »

here below is my php.ini file
just for info
php is working tested with .phpversion();
mysql is working too also tested.
i hope the problem can solved with your php.ini file rax
with best regards

; php.ini for PEAR tests
include_path=c:/inetpub/wwwroot/cacti ;
register_globals = On ;
register_argc_argv = On ;
[mail function]
SMTP= localhost ; for Win32 only
sendmail_from= me@localhost.com ; for Win32 only
upload_tmp_dir = C:PHPuploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
[Session]
session.save_path= C:PHPsessiondata ; argument passed to save_handler
[PHP]
error_reporting= E_ALL; display all errors, warnings and notices
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Here is my php.ini file:

; php.ini for PEAR tests
include_path=d:/server/apache/apache/htdocs/cacti
[mail function]
SMTP= onion.lan.raxnet.net ; for Win32 only
sendmail_from= admin@cucumber.lan.raxnet.net ; for Win32 only
upload_tmp_dir = D:ServerPHPuploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
[Session]
session.save_path= D:ServerPHPsessiondata ; argument passed to save_handler
[PHP]
error_reporting=2; display all errors, warnings and notices

register_globals = On
register_argc_argv = On
testkees

This really helped!

Post by testkees »

All,

For the 2nd time this really helped me getting cacti to function in a windows 2000 environment (I think it should be in the win32 install file).

upload_tmp_dir = C:PHPuploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
[Session]
session.save_path= C:PHPsessiondata ; argument passed to save_handler

Regards!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest