RE: php installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Emil,

I used to be on a WIMP environment, here's what I did and a couple of things
you might want to do eventually.  Most of this is on www.php.net
(http://us.php.net/manual/en/install.windows.php)


-------------------------------
Windows Server 2003 PHP Install
-------------------------------
1. Download the Windows binaries
(http://us2.php.net/get/php-5.2.1-Win32.zip/from/a/mirror)
2. Extract into a directory on the server (we'll use C:\php5 for this
example)
3. Under the website(s) properties "Home Directory" tab (I believe it's a
tab, it's been a little while):
	a. Set Execute Permissions to 'Scripts only'
	b. Click on the Configuration button and then select the Application
Mappings tab.
		i. Click Add.
		ii. Set the executable path to C:\php5\php5isapi.dll
(replace C:\php5 with your extracted PHP directory)
		iii. Enter '.php' as the extension
		iv. Leave 'Method exclusions' unchecked, make sure 'Script
engine' is checked.
4. Click OK on all open windows to return to the main IIS manager window.
5. Go to 'Web Service Extensions' (I think it is in the main IIS menu
somewhere).
6. Choose 'Add a new Web Service extension'
7. Type the name as 'PHP'
8. Choose the Add button and for the value enter in C:\php5\php5isapi.dll
(or whatever you set the executable path to in Step 3aii.
9. Stop and re-start your website(s).


-----------------
Some extra notes:
-----------------
You can copy C:\php5\php.ini-dist as C:\WINDOWS\php.ini and modify it to
enable settings, etc.  Just be sure to update the extension_dir directive to
equal "C:\php5\ext", then you can enable extensions by un-commenting them or
adding a line extension=my_extension.dll

If you're going to use MySQL extensions, you'll need the library (dll) in
your System Path -- you can copy the file C:\php5\libmysql.dll to
C:\WINDOWS\libmysql.dll


---------------------
Even More Extra Notes:
---------------------
If you're really comfortable at this point, you can NOT copy any files to
your WINDOWS directory at all but instead ADD C:\php5 to your System Path --
this will allow you to have your php.ini in the C:\php5 folder AND it will
also make C:\php5\libmysql.dll accessible to the system when it requires it.
How to do it: 
- Right click on My Computer
- Advanced tab
- Environment Variables button
- select Path under 'System Variables'
- add ";C:\php5" to the string value, press OK to close all Windows -- a
restart is probably required).

Hope this helps you out, I was on WIMP at work for about a year or so, have
developed for a year or 2 with a WAMP environment (much easier than setting
up IIS), and now I'm slowly progressing into LAMP (which is great).

-Andy


--
Andy Stratton
Software/Network Engineer
COMPASS Information Systems, Inc.
www.compassinfo.net

(410) 923-6300 office
(410) 923-2820 fax
(443) 623-6835 mobile

-----Original Message-----
From: EmilH [mailto:emilslx@xxxxxxxxx] 
Sent: Monday, April 30, 2007 7:55 AM
To: php-install@xxxxxxxxxxxxx
Subject:  php installation

Hi.

I have installed php through win installer on win server 2k3. What should I 
do next? php extension is registered in IIS but test.php doesn't open. IE 
windows doesn't even appear and windows doesn't recognize php extension. 
None of the instructuions at the web doesn't explain how to solve it. Please

Help, what to do next?

Emil. 

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux