Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 IIS (again) - PHP
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

spyordie007
Junior Member

USA
408 Posts

Posted - 14 March 2003 :  14:10:41  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
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
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 14 March 2003 :  14:19:25  Show Profile  Visit PeeWee.Inc's Homepage
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
Go to Top of Page

spyordie007
Junior Member

USA
408 Posts

Posted - 14 March 2003 :  14:21:59  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
still doesnt look like it's working?

http://217.44.235.53/forum/test.php

-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
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 14 March 2003 :  14:25:04  Show Profile  Visit PeeWee.Inc's Homepage
It's not but, it's working better then it was a few hours ago

De Priofundus Calmo Ad Te Damine
Go to Top of Page

spyordie007
Junior Member

USA
408 Posts

Posted - 14 March 2003 :  14:27:07  Show Profile  Visit spyordie007's Homepage  Send spyordie007 an AOL message
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
Go to Top of Page

lofty
Junior Member

USA
158 Posts

Posted - 15 March 2003 :  01:10:01  Show Profile  Visit lofty's Homepage
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.







Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 15 March 2003 :  04:14:36  Show Profile  Visit PeeWee.Inc's Homepage
It's working great

De Priofundus Calmo Ad Te Damine
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07