Help!! installing PHP in Windows 2000 professional

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
crazytopu
Forum Contributor
Posts: 259
Joined: Fri Nov 07, 2003 12:43 pm
Location: London, UK
Contact:

Help!! installing PHP in Windows 2000 professional

Post by crazytopu »

Hi

This is my first day with PHP. I am sure many people here have installed PHP in their windows platform. I have some quries regarding the installaion. Would anybody please help?

I followed the installation guide that could be seen here: http://www.umesd.k12.or.us/php/win32install.html


But for you convenience here i am pasting the whole series of steps as written in the above site:

Should work the same for Windows 98, just change the paths

1. Download the newest PHP binary distribution for windows.

2. Make sure you have IIS 5 installed. You can install this with the CD using: Start..Control Panel..Add/Remove Software..Windows Components..IIS

3. Extract to a directory of your choice. I suggest c:\winnt\system32\inetsrv\php

4. Copy php4_ts.dll to your windows\system32 directory

5. Copy php.ini-dist to your WINDOWS directory...typically c:\winnt - rename it to php.ini

6. Open php.ini in an editor and at a minimum change extension_dir to: c:\path\to\php\extensions
I recommend quoting your values. ie: extension_dir="c:\winnt\system32\inetsrv\php\extensions"
You might also want to enable some extensions..I recommend php_mysql, php_gd and php_ldap

7. Start Internet Services Manager - Start..Programs..Administrative Tools..Internet Services Manager
Best way to do this is to right click the top level icon..usually your computer name..click Properties..click the Edit button in the Master Properties box to edit the WWW Service properties.
Click the 'Home Directory' tab, then click the 'Configuration' button. Click the 'Add' button to add an Application Mapping. Click 'Browse' and find the path to php4isapi.dll as the Executable (c:\winnt\system32\inetsrv\php\sapi\php4isapi.dll if you've been following my recommendations)
NOTE: You will need to change the File Type option to *.dll in the file open box. Use .php as the extension and check the Script engine checkbox.
Click 'OK', 'Select All', 'OK' and 'OK'. You should be back at the Internet Service Manager application again.
Right click the top-level icon again and choose to restart IIS.


8. To test your installation, create a file called phpinfo.php in your document root directory and stick this code inside it: <? phpinfo(); ?>

9.Save the file and open your browser to: http://YOUR_IP_HERE/phpinfo.php and everything should be AOK.

10. If you are running NTFS, you will need to give Execute permissions on your document root directory.

I followed each single steps but I am not sure what does this mean [in step 8 ]: "root directory ". At first i thaught it's a normal folder which i created as docroot and put my test file phpinfo.php inside this folder .

I then followed the steps 9 but my browser was unable to show anything and finally ended up showing the messege which Internet Explorer shows when it fails to get a source- something like " page cannot be display..or server not found or something similar".

Anyway, I then opened the php.ini file and made the following change:

Doc root : c/docroot

I followed the step 9 again but still I receive the same messege. I then made the file back to it’s original form by undoing the modification.


I wonder how to solve it?

Moreover in step 10: what does it mean : “you will need to give Execute permissions on your document root directory. “

I have one last question: if my browser successfully loads the page what should I expect to see? My phpinfo.php file contains only this line of code : <? phpinfo(); ?> .

Any help would be greatly appreciated.
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

windows hoon !
ok
download phpmyadmin installer <www.phpmyadmin.net> for win2k and install it
it will configure everything for you.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

devork,
That has nothing to do with this issue.

crazytopu,
The 'Doc Root', is in this case IIS's folder storing the webdocuments. You would need to use IIS to change this. Not familiar with IIS at all so I cannot help you more on that issue. It has nothing to do with php itself.

the phpinfo page... Well, you will notice it when it works. ;)

More info here: http://www.phpbuddy.com/category.php?cat_id=INST
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

IIS's default doc root is C:\inetpub\wwwroot - try putting your web pages there.

Mac
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

if all else fails, check this tutorial out. it's a step by step ANYONE can follow instructions for installing to windows.

http://www.onlygeeks.com/read/15
Post Reply