Author |
Topic  |
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 14:10:41
|
make sure to restart IIS after putting that in your windows directory otherwise it wont get loaded. |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 14:19:25
|
Thank you for all the help  If ya ever need any help with ya ASP i'll be the first to stay up for hours on end workin on it for ya  Would get me away from the missus anyway  |
De Priofundus Calmo Ad Te Damine |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 14 March 2003 : 14:25:04
|
It's not but, it's working better then it was a few hours ago  |
De Priofundus Calmo Ad Te Damine |
 |
|
spyordie007
Junior Member
 
USA
408 Posts |
Posted - 14 March 2003 : 14:27:07
|
If you have XP on that box you'll have the built-in remote assistance. Send me a message on AIM if you want me to look at it with you "Spyordie007" or on MSN messenger "Spyordie007@hotmail.com"
-Spy |
Power - The only narcotic controlled by the SEC, not the FDA.
Prosperity without pollution! The American Hydrogen Association - http://www.ahanw.org Questions about Hydrogen? Post them on our forum - http://www.ahanw.org/forum |
 |
|
lofty
Junior Member
 
USA
158 Posts |
Posted - 15 March 2003 : 01:10:01
|
Ok... You asked for it. Here are my quick and dirty directions for getting PHP to work with IIS:
1. Download the latest PHP 4.3.1 version (the .zip file, NOT the installer) http://www.php.net/downloads.php 2. Extract the .zip files to a directory. I usually use C:\WWW\PHP. 3. Make a decision: Use the .exe or the ISAPI filter. The exe has been more reliable over time, but it has some more serious resource issues on large sites with high volumes. The ISAPI filter has been known to be less stable (I've experienced problems with it on earlier versions), but the 4.3.1 version has been rock solid for me. Go with the filter IMO. The rest of the instructions deal with installing the ISAPI filter... 4. Go to the unzipped directory (C:\WWW\PHP) and right-click the php.ini.dist file, copy it, and then paste it in your C:\WINDOWS (or C:\WINNT if on Win2k) directory. 5. Rename the copied php.ini.dist file in the WINDOWS directory to php.ini and open it for editing. 6. Change the include paths:
; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\path1;\path2" ;include_path = ".;c:\php\includes"
Take the last line, and change it to this: include_path = "c:\WWW\PHP;c:\WWW\PHP\includes;c:\WWW\PHP\PEAR"
Notice that you can add multiple directories to this. This is so that you can use other add-ons to PHP, like PEAR, which has a whole db and logging abstraction library.
7. Change the extension dir:
; Directory in which the loadable extensions (modules) reside. extension_dir = ./
Find the last line, and change it to this: extension_dir = c:\WWW\PHP\extensions
When you extracted PHP, there was an extensions directory with it. This is where the DLL's for extension modules are stored, like gettext, graphing support, xml, IMAP, and others. So, in order to use the extensions, you need to tell PHP where to find them.
8. If you need file uploads, then change the following:
; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir =
Find the last line and change it to: upload_tmp_dir = c:\WWW\PHP\UPLOADS
You will of coarse need to create the UPLOADS directory, and assign write permissions to IUSR_Computername account for it to work.
9. Add extensions - Find the extensions section and uncomment whatever extensions you want:
;Windows Extensions ;Note that MySQL and ODBC support is now built in, so no dll is needed for it. ; ;extension=php_bz2.dll extension=php_cpdf.dll ;extension=php_crack.dll
10. Choose your session directory - This is used to store session information for those PHP applications that use the session object. Find the following lines and change them:
; NOTE 1: PHP will not create this directory structure automatically. ; You can use the script in the ext/session dir for that purpose. ; NOTE 2: See the section on garbage collection below if you choose to ; use subdirectories for session storage session.save_path = /tmp
Find the last line, and change it to this:
session.save_path = c:\WWW\PHP\SESSIONS
Like the UPLOADS directory, you need to create the SESSIONS directory and assign write permissions to IUSR_ComputerName.
11. Copy the necessary files to C:\WINDOWS (or C:\WINNT):
Copy all the DLL files in the C:\WWW\PHP\dlls folder to the WINDOWS (or WINNT) folder.
Copy the php4ts.dll file in the C:\WWW\PHP folder to the WINDOWS (or WINNT) folder
Copy the php4isapi.dll file in the C:\WWW\PHP\sapi folder to the WINDOWS (or WINNT) folder.
12. Configure IIS:
Follow spyordie007's directions with the pictures to configure IIS. Instead of "c:\php\php.exe" for the Executable, use "c:\WINDOWS\php4isapi.dll" (or "c:\WINNT\php4isapi.dll").
13. Test -
Create a file called test.php and drop it in your web root. Edit the file to have one line: <? phpinfo(); ?>
Go to yourdomain.com/test.php and it should all work.
|
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 15 March 2003 : 04:14:36
|
It's working great  |
De Priofundus Calmo Ad Te Damine |
 |
|
Topic  |
|