Hi there,
I know how frustrating trying to get installation files to work so I will
try to help you even though I must say that I am a newbie like you.

1. I run the same config as you - Win2000 Pro + IIS5.5 + PHP 4.2.2. +MySQL

2. I also have Apache also running as a separate server - this runs using
the same php.ini file as for windows.

3. I found that after I figured out what they were on about (there is far
too much goobleygook in the install files for newbies!!) that all I needed
to do was load the correct distribution files from the phpnet website - make
sure you select the distribution which includes an installer and leave the
clever stuff in trying to build the files from scratch to the initiated. The
file is found under this url:
http://www.php.net/downloads.php
MAKE SURE YOU SELECT THE PHP INSTALLER (913KB) FILE .

4. During the install process the system will detect an earlier php.ini file
and suggest that it overwrites it - let it do so as this will be correct
default for your configuration. Assuming that you have chosen the correct
distribution files. Unless you are really pressed for space follow the
suggestion of the installer and install the program files to the default
folder (C:\PHP).

5. Note the PHP is an interpreter - you can not run it directly as you
attempted as it will as you found out only trigger a command console. I am
sure if you know php well you could use enter commands but this is not how
php works - well not at least for us newbies.

6. OK - you now need to check to see whether or not your IIS webserver is
running - this is done by opening the control panel and then selecting
Administrative Tools and then Internet Information Services. This will
result in another dialogue box which will be headed Internet Information
Services in the left hand panel below which you will see a computer icon and
if there is a + next to it open it and look for the Default Web Site
folder - if there is "stopped"alongside the folder right click on it and
select "Start" - this will start your webserver - which will be called
localhost.

7. Ok now you need to load files to your webserver root folder - this will
be found as:
C:\Inetpub\wwwroot\
make a new folder - say mywebsite or whatever and place it under the wwwroot
folder - thus:
C:\Inetpub\wwwroot\mywebsite\

now place a test php file inside the mywebsite folder
use this code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<?php phpinfo(); ?>

</body>
</html>

- now when open this file in a browser you should get a PHP config details
in return
use this as your url:
http://localhost/mywebsite/test.php

ok now one more thing and you are done:

due to security issues the latest 4.2.2 has turned off register_globals -
this is fine if you are using new code using the new format (eg
[$_GET['Variable'] instead of the earlier construct
$HTTP_GET_VARS['vARIABLE'].

you will find the reference in line 310 in the php.ini file - this is the
only change I have made and I have got php working both with IIS and with
Apache.

I do hope the above will help you.

Chris


----- Original Message -----
From: "Jesse Zimmerman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 03, 2002 7:03 PM
Subject: [PHP-INST] Help with IIS 5.0 and windows 2000 server!!!


> Hello - First time post, I have been working on the server side of php for
> about 6 hours today and 7 hours yesterday trying to get it installed. I
have
> been searching for an answer for this problem, but have found none. I have
> had several issues, the newest of which is a 'HTTP 500 - Internal server
> error' error when I try to browse to my page
> http://ejwebhosting.com/test.php. I read many posts about this and when I
> execute php.exe from the command line, it spits me back some html at
least.
> Like I said I am very new to php, but not to coding at all, I would like
to
> know if anyone had any clue as to where this error is occuring, I am
> guessing the php.ini file, but it may be an issue as to something not
> pointing to the right place. All of my directory rights should be set
> correctly. Please reply directly to me. Also if someone has a working
> php.ini file that has been configured for iis 5 and windows 2k they could
> send it to me so I could look at it. Thanks for reading this and I am
> looking forward to getting this part running so I can develop some php
code.
>
> Thanks for any help
> Eugene Lai

"Jesse Zimmerman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello - First time post, I have been working on the server side of php for
> about 6 hours today and 7 hours yesterday trying to get it installed. I
have
> been searching for an answer for this problem, but have found none. I have
> had several issues, the newest of which is a 'HTTP 500 - Internal server
> error' error when I try to browse to my page
> http://ejwebhosting.com/test.php. I read many posts about this and when I
> execute php.exe from the command line, it spits me back some html at
least.
> Like I said I am very new to php, but not to coding at all, I would like
to
> know if anyone had any clue as to where this error is occuring, I am
> guessing the php.ini file, but it may be an issue as to something not
> pointing to the right place. All of my directory rights should be set
> correctly. Please reply directly to me. Also if someone has a working
> php.ini file that has been configured for iis 5 and windows 2k they could
> send it to me so I could look at it. Thanks for reading this and I am
> looking forward to getting this part running so I can develop some php
code.
>
> Thanks for any help
> Eugene Lai
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to