Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 10th, 2002, 12:43 PM
wesgrimes wesgrimes is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Central, FL
Posts: 2 wesgrimes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb Running PHP on IIS 4

Here's my dillema:

My employer is *set* upon using Windows NT 4.0 with IIS 4 for a web server, and Sybase SQL as a database server. I have been using the whole threesome of Apache/PHP/MySQL for some time now, but I can't talk them into using it.

I was given the task of revamping the whole company site, which previously was a Frontpage 98, themed, cookie-cutter site, nothing dynamic or database driven at all.

Beings that my area of expertise is PHP, I re-designed the whole site in PHP, and then realized that they were running IIS.

I followed the PHP installation instructions for IIS 4, step by freakin' step. The weird thing is that some php scripts run, for instance, the "php_info()" function runs just fine on the IIS server, but when I get into more advanced coding, and grabbing stuff after the question mark in a URL aka the "$QUERY_STRING", it just flat out does nothing.

Any suggestions ???

Reply With Quote
  #2  
Old May 14th, 2002, 04:02 PM
vr6stress vr6stress is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 28 vr6stress User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to vr6stress Send a message via Yahoo to vr6stress
Quote:
ISAPI support
PHP 4.0 can be plugged into IIS as a native ISAPI module. This is much more efficient than PHP 3.0, which ran as a CGI (an external program).

http://www.zend.com/zend/whats-new.php

Quote:
Windows NT and IIS 4
To install PHP3 on an NT Server running IIS 4, follow these instructions:

In Internet Service Manager (MMC), select the Web site or the starting point directory of an application.
Open the directory's property sheets (by right clicking and selecting properties), and then click the Home Directory, Virtual Directory, or Directory tab.
Click the Configuration button, and then click the App Mappings tab.
Click Add, and in the Executable box, type: 'c:\path-to-php-dir\php.exe %s %s'. You MUST have the %s %s on the end, PHP will not function properly if you fail to do this.
In the Extension box, type the file name extension you want associated with php scripts. (You must repeat step 5 and 6 for each extension you want associated with php scripts. (.php3 and .phtml are common)
Set up the appropriate security. Make sure the directories that have php script files have 'Script' permission. (This is done in Internet Service Manager), and if your NT Server uses NTFS file system, add execute rights for I_USR_ to the directory that contains 'php.exe'.


http://www.umesd.k12.or.us/php/win32install.html

Quote:
Configuring PHP on IIS guidelines




This article was received from a very nice individual who wanted to share their thoughts about PHP and IIS. ASPfree.com or people involved who provide this information aren't responsible for anything that goes wrong by using this information. If this blows up your Server, we aren't responsible. This involves registry changes and such (So make backups before doing changes!). It's very detailed and if your not comfortable in doing this, leave the changes up to your web-admin. This content is provided only because we haven't seen too many other sites provide this type of information! Enjoy!!

I am currently running PHP on Windows NT with IIS 4 installed. We use it
on our Intranet server. I am also running MySQL database with IIS
without any problems so far.

The following is an extract of the readme.txt file, which gives the
correct procedure (located in the php directory). I followed the
procedure, configured IIS the same way as you would for ASP and have been
playing around without any hassle!

Basically you need to put your ini file (which you have to rename
yourself into the correct directory for Win 95/98 or NT:
(typicaly c:\windows or c:\winnt) <> rename the file php_iis_reg.inf for
this

After that you need only to configure IIS.
registry entries for PWS & IIS:
HKEY_LOCAL_MACHINE:System\CurrentControlSet\Services\W3Svc\Parameters\Scri
pt Map
.php3 "c:\php3\php.exe %s %s"

*******************************************************************

If you have used the setup program, and have IIS or PWS, you are almost
ready to go. You must first decide which directories in your web server
will contain php scripts, and make those directories executable. You will
need to manualy edit configurations for other web servers. Otherwise,
you can follow the instructions below for installation.
----------------------------------------------------------------------
An INF file (php_iis_reg.inf) has been included that will automaticaly
add registry settings for
IIS 3 and PWS.

registry entries for PWS & IIS:
HKEY_LOCAL_MACHINE:System\CurrentControlSet\Services\W3Svc\Parameters\Scri
pt Map
.php3 "c:\php3\php.exe %s %s"

As more server specific information is gathered, more registry entries
may
be added.

NOTE: I have not been able to get php to work correctly with PWS 4
----------------------------------------------------------------------
INSTALLATION

Make a directory, such as c:\php3, and place all the rest of the dlls
there.

If you are not using Apache NT server, you can set an environment
variable in your autoexec.bat file, add this line:

SET PHPRC=\windows\php3.ini

and place your php3.ini file in whatever directory you specify.
Otherwise, be sure to place php3.ini in your os directory
(typicaly c:\windows or c:\winnt).

msql1.dll, calendar.dll and msql2.dll must be located in the
same directory as php3.exe, or you must specify where these files
are located either in your php3.ini file, or in the php3 script.

Notes on IIS4
--------------------
Start Internet Service Manager
Right click on the website you are installing php in
Select properties
Click on the TAB "Home Directory"
Select 'Script' under permisions
Click on button 'Configuration'
Click on button 'Add'
Executable should be c:\php3\php.exe %s %s (Yes, TWO %s's acording to M$
docs)
Extension .php (or whatever you use)
Check 'Script Engine'
Click on OK
Click on OK again.
Stop then Start the web server.
PHP should now work. If it doesn't verify the 'everyone' has full access
to the
directory c:\php3 and everything within it.

Try running a simple script such as <? phpinfo(); ?>



http://www.aspfree.com/asp/startpage.asp?id=99

hopefully this helps..probably not though....

Reply With Quote
  #3  
Old May 14th, 2002, 04:12 PM
wesgrimes wesgrimes is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Central, FL
Posts: 2 wesgrimes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks

thanks a lot. i figured out my problem though. the "register_globals" wasn't turned on!

...it is always the simplest things...

Reply With Quote
  #4  
Old May 15th, 2002, 10:34 AM
vr6stress vr6stress is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 28 vr6stress User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to vr6stress Send a message via Yahoo to vr6stress
but of course....i hate it...lol

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > Running PHP on IIS 4

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap