Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Installation on Win 2000 Pro not working but Apache and Tomcat are 2

Status
Not open for further replies.

b2phat

Technical User
May 29, 2005
1
US
Hi,

I sure hope someone here can help me. I spent the entire day yesterday and most of the evening setting up a webserver on my Windows 2000 Pro system.

I've got PHP 5.04, MySQL 4.1.12, ActivePerl 5.8.6, Java Runtime Environment, Tomcat 5.5.9, ZendOptimizer 2.5.10, MyODBC 3.5.11 and phpMyAdmin 2.6.2 all installed.

From what I can tell, all is working well except PHP and phpMyAdmin.

I added PHP to my path like this:

C:\Perl\bin\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\php;C:\Apache2\bin;C:\mysql\bin;C:\php\dlls;C:\Program Files\Common Files\Ulead Systems\MPEG;"C:\Program Files\Zone Labs\ZoneAlarm\MailFrontier"

I've got a copy of php.ini in both c:/Apache/Apache2/, c:/php and c://winnt directories. I've listed my user directory as c:/apache/apache2/htdocs and I've placed phpmyadmin in htdocs.

But when I try to view a php page I get an error or page cannot be displayed. On a couple of occassions I viewed the raw php data in my browser.

Also, when I try to add a php extension using "LoadModule" in my httd.conf file I get an error loading Apache telling me that "the file cannot be found" (but I've verified it exists - like php5apache.dll and php5ts.dll).

Can someone please help me figure out where I'm screwing up at?

Thanks in advance!

OH ... some more info that might help: when I go to I get the following info:

cannot load mysqli extension;
please check PHP configuration
Documentation

And the documentation says:
[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration". To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.

Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar.

I have tried using both mysql and mysqli in config.inc.php (phpmyadmin config file) and either way I get the same error message. And in php.ini I have enabled the following extensions:

extension=php_mysql.dll
extension=php_mysqli.dll

Darla
Since 2001
 
in your httpd.ini, in your apache->conf folder, add this line at the very end of the file:

PHPIniDir "disk:/path/to/your/php.ini"

example, if php.ini in you winnt folder:
PHPIniDir "C:/winnt/"

Notice the "/" slash.
 
Hi,

For some reason I couldn't stay logged in as B2Phat to reply to this.

I did as you said ... and I'm still not working. I'm so frustrated I'm about to give it up altogether.

I've followed the instructions to the very "T" at PHP.net .... and a few other sites as well (yep ... when it didn't work once, twice or three times ... I started over from scratch.)

I have the NTFS file system, but have granted complete (full control) to my server and php directories.

When I try to view a PHP file locally I get a blank screen. When I view source, I don't even see the php info .... just the head of a blank html document.

In frustration I tried to see if a "self-contained" web server would work ... and it did. I installed EasyPHP ... and it works without a hitch .... but it's NOT what I want. I've reviewed the settings in the httpd.conf file in the apache/conf folder of easy php and compared it to my conf file in my apache server root and there are no outstanding differences. Same goes with my php.ini file.

I'm at a COMPLETE loss.

Does anyone have any other ideas?

Thanks in advance.

Darla
Since 2001
 
Could this have anything to do with it?

I registered the php5apache2.dll but get the following error message:

"php5apache2.dll was loaded but the DLLRegisterServer entry point was not found.

DLLRegisterServer may not be exported, or a corrupt version of php5apache2.dll may be in memory. Consider using PView to detect and remove it."

However when I use Dependency Walker to view my DLL Tree and dependencies ... everything looks okay except I get a message:

"Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module."

The module with the delay-load is MPR.dll (not in php) so I'm not sure if this has anything to do with my problems or not?

ANY help is much appreciated.

Take care.

Darla
Since 2001
 
Hi,

One last thing.

I have apache loaded as a service for all users.

When I click on the Apache Icon in my sytem tray and click to "Open Apache Monitor" ... in the bottom right of the screen it says:

"Apache/2.0.54 (Win32) PHP/5.04"

So .... I'm assuming that means that Apache KNOWS that PHP is there .... so why isn't it sending php files through to be parsed?

Thanks again.

Darla
Since 2001
 
Here's an interesting error message I'm getting in the EasyPHP phpMyAdmin interface:

"The mbstring PHP extension was not found and you seem to be using multibyte charset. Without mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results."

Of course the mbstring php extension IS there.

I'm not sure if this has anything to do with my REAL installation but thought it might be of some use in figuring out what the issue is here.

Thanks again.


Darla
Since 2001
 
Hi,

An update on this:

I ran a test on php from the command line by doing this:

cd\php and hit Enter. Then typed:
php -i and hit Enter.

I got the following output which .... I think SHOULD mean php is working ... so why can't I view the pages?

iconv

iconv support => enabled
iconv implementation => "libiconv"
iconv library version => 1.9

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

libxml

libXML support => active
libXML Version => 2.6.11
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) version => 3.7.0

mbstring extension makes use of "streamable kanji code filter and converter", wh
ich is distributed under the GNU Lesser General Public License version 2.1.

Directive => Local Value => Master Value
mbstring.detect_order => no value => no value
mbstring.encoding_translation => Off => Off
mbstring.func_overload => 0 => 0
mbstring.http_input => pass => pass
mbstring.http_output => pass => pass
mbstring.internal_encoding => ISO-8859-1 => no value
mbstring.language => neutral => neutral
mbstring.substitute_character => no value => no value

odbc

ODBC Support => enabled
Active Persistent Links => 0
Active Links => 0
ODBC library => Win32

Directive => Local Value => Master Value
odbc.allow_persistent => On => On
odbc.check_persistent => On => On
odbc.default_db => no value => no value
odbc.default_pw => <i>no value</i> => <i>no value</i>
odbc.default_user => no value => no value
odbc.defaultbinmode => return as is => return as is
odbc.defaultlrl => return up to 4096 bytes => return up to 4096 bytes
odbc.max_links => Unlimited => Unlimited
odbc.max_persistent => Unlimited => Unlimited

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 4.5 01-December-2003

session

Session Support => enabled
Registered save handlers => files user sqlite
Registered serializer handlers => php php_binary wddx

Directive => Local Value => Master Value
session.auto_start => Off => Off
session.bug_compat_42 => Off => Off
session.bug_compat_warn => On => On
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 5 => 5
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => no value => no value
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0

SimpleXML

Simplexml support => enabled
Revision => $Revision: 1.139.2.4 $
Schema support => enabled

SPL

SPL support => enabled
Interfaces => RecursiveIterator, SeekableIterator
Classes => ArrayObject, ArrayIterator, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDir
ectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator

SQLite

SQLite support => enabled
PECL Module version => 2.0-dev $Id: sqlite.c,v 1.146.2.3 2004/09/26 01:41:40 wez
Exp $
SQLite Library => 2.8.14
SQLite Encoding => iso8859

Directive => Local Value => Master Value
sqlite.assoc_case => 0 => 0

standard

Regex Library => Bundled library enabled
Dynamic Library Support => enabled
Internal Sendmail Support for Windows => enabled

Directive => Local Value => Master Value
assert.active => 1 => 1
assert.bail => 0 => 0
assert.callback => no value => no value
assert.quiet_eval => 0 => 0
assert.warning => 1 => 1
auto_detect_line_endings => 0 => 0
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.83 => 90.83
date.sunset_zenith => 90.83 => 90.83
default_socket_timeout => 60 => 60
safe_mode_allowed_env_vars => PHP_ => PHP_
safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH
url_rewriter.tags => a=href,area=href,frame=src,input=src,form=fakeentry => a=hr
ef,area=href,frame=src,input=src,form=fakeentry
user_agent => no value => no value

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.6.11

zlib

ZLib Support => enabled
Compiled Version => 1.1.4
Linked Version => 1.1.4

Directive => Local Value => Master Value
zlib.output_compression => Off => Off
zlib.output_compression_level => -1 => -1
zlib.output_handler => no value => no value

Additional Modules

Module Name

Environment

Variable => Value
ALLUSERSPROFILE => C:\Documents and Settings\All Users
APPDATA => C:\Documents and Settings\Administrator\Application Data
CommonProgramFiles => C:\Program Files\Common Files
COMPUTERNAME => B2PHAT
ComSpec => C:\WINNT\system32\cmd.exe
HOMEDRIVE => C:
HOMEPATH => \Documents and Settings\Administrator
LOGONSERVER => \\B2PHAT
NUMBER_OF_PROCESSORS => 1
OS => Windows_NT
Os2LibPath => C:\WINNT\system32\os2\dll;
Path => C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\php;C:\Apache\bin;C:\php\dlls;C:\php\ext;C:\Program Files\Common Files\Ulead Systems\
MPEG;"C:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:\mysql\bin
PATHEXT => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PHPIndiDir => C:\php
PHPRC => C:\php
PROCESSOR_ARCHITECTURE => x86
PROCESSOR_IDENTIFIER => x86 Family 15 Model 4 Stepping 1, GenuineIntel
PROCESSOR_LEVEL => 15
PROCESSOR_REVISION => 0401
ProgramFiles => C:\Program Files
PROMPT => $P$G
SystemDrive => C:
SystemRoot => C:\WINNT
TEMP => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
tvdumpflags => 10
USERDOMAIN => B2PHAT
USERNAME => Administrator
USERPROFILE => C:\Documents and Settings\Administrator
windir => C:\WINNT

PHP Variables

Variable => Value
_SERVER["ALLUSERSPROFILE"] => C:\Documents and Settings\All Users
_SERVER["APPDATA"] => C:\Documents and Settings\Administrator\Application Data
_SERVER["CommonProgramFiles"] => C:\Program Files\Common Files
_SERVER["COMPUTERNAME"] => B2PHAT
_SERVER["ComSpec"] => C:\WINNT\system32\cmd.exe
_SERVER["HOMEDRIVE"] => C:
_SERVER["HOMEPATH"] => \Documents and Settings\Administrator
_SERVER["LOGONSERVER"] => \\B2PHAT
_SERVER["NUMBER_OF_PROCESSORS"] => 1
_SERVER["OS"] => Windows_NT
_SERVER["Os2LibPath"] => C:\WINNT\system32\os2\dll;
_SERVER["Path"] => C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\php;C:\Apache\bin;C:\php\dlls;C:\php\ext;C:\Program Files\Common Files\Ulead Systems\MPEG;"C:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:\mysql\bin

_SERVER["PATHEXT"]=> .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_SERVER["PHPIndiDir"] => C:\php
_SERVER["PHPRC"] => C:\php
_SERVER["PROCESSOR_ARCHITECTURE"] => x86
_SERVER["PROCESSOR_IDENTIFIER"] => x86 Family 15 Model 4 Stepping 1, GenuineIntel
_SERVER["PROCESSOR_LEVEL"] => 15
_SERVER["PROCESSOR_REVISION"] => 0401
_SERVER["ProgramFiles"] => C:\Program Files
_SERVER["PROMPT"] => $P$G
_SERVER["SystemDrive"] => C:
_SERVER["SystemRoot"] => C:\WINNT
_SERVER["TEMP"] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
_SERVER["TMP"] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
_SERVER["tvdumpflags"] => 10
_SERVER["USERDOMAIN"] => B2PHAT
_SERVER["USERNAME"] => Administrator
_SERVER["USERPROFILE"] => C:\Documents and Settings\Administrator
_SERVER["windir"] => C:\WINNT
_SERVER["PHP_SELF"] =>
_SERVER["SCRIPT_NAME"] =>
_SERVER["SCRIPT_FILENAME"] =>
_SERVER["PATH_TRANSLATED"] =>
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["argv"] => Array
(
)

_SERVER["argc"] => 0
_ENV["ALLUSERSPROFILE"] => C:\Documents and Settings\All Users
_ENV["APPDATA"] => C:\Documents and Settings\Administrator\Application Data
_ENV["CommonProgramFiles"] => C:\Program Files\Common Files
_ENV["COMPUTERNAME"] => B2PHAT
_ENV["ComSpec"] => C:\WINNT\system32\cmd.exe
_ENV["HOMEDRIVE"] => C:
_ENV["HOMEPATH"] => \Documents and Settings\Administrator
_ENV["LOGONSERVER"] => \\B2PHAT
_ENV["NUMBER_OF_PROCESSORS"] => 1
_ENV["OS"] => Windows_NT
_ENV["Os2LibPath"] => C:\WINNT\system32\os2\dll;
_ENV["Path"] => C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C
:\php;C:\Apache2\bin;C:\php\dlls;C:\php\ext;C:\Program Files\Common Files\Ulead
Systems\MPEG;"C:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:\mysql\bin
_ENV["PATHEXT"] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["PHPIndiDir"] => C:\php
_ENV["PHPRC"] => C:\php
_ENV["PROCESSOR_ARCHITECTURE"] => x86
_ENV["PROCESSOR_IDENTIFIER"] => x86 Family 15 Model 4 Stepping 1, GenuineIntel
_ENV["PROCESSOR_LEVEL"] => 15
_ENV["PROCESSOR_REVISION"] => 0401
_ENV["ProgramFiles"] => C:\Program Files
_ENV["PROMPT"] => $P$G
_ENV["SystemDrive"] => C:
_ENV["SystemRoot"] => C:\WINNT
_ENV["TEMP"] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
_ENV["TMP"] => C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
_ENV["tvdumpflags"] => 10
_ENV["USERDOMAIN"] => B2PHAT
_ENV["USERNAME"] => Administrator
_ENV["USERPROFILE"] => C:\Documents and Settings\Administrator
_ENV["windir"] => C:\WINNT

PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

Could it be something as simple as "file types"? I went to see if php files were registered under "file types" and see that they are set to open in Dreamweaver. That wouldn't affect the actual viewing in my browser would it?

Thanks in advance!



Darla
Since 2001
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top