Re: W2K SP2, PHP 4.2.1, IIS 5

From: Date: Thu, 23 May 2002 04:14:44 +0000
Subject: Re: W2K SP2, PHP 4.2.1, IIS 5
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98792@lists.php.net to get a copy of this message
Hi there!, In a word - script mappings. In the IIS administrator, you must associate the .php extension with the php interpreter. Use the IIS help wizard to tell you how, or: 1. Start Regedt32.exe and open the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC \Parameters\ScriptMap 2. Click Add Value from the Edit menu. 2b. The Value Name is .php 2c. The Data type is REG_SZ. 2d. The String value is <the full path to php.exe.exe>\php.exe %s %s NOTE: The "%s %s" is case sensitive. (e.g. "%S %S" will not work). (%s %s is the file, you might need to add a -i or -whatever if php needs it) 3. Restart the WWW service. 4. Cross your fingers, if it doesn't work go in & play with the string value by using the edit dialog in regedt32. HTH, Dw. Sqlcoders.com Dynamic data driven web solutions ----- Original Message ----- From: "Joshua E Minnie" <josh@acsurf.net> To: <php-general@lists.php.net> Sent: May 22 2002 10:54 AM Subject: [PHP] W2K SP2, PHP 4.2.1, IIS 5 > Hey all, > I have a problem, that I can't seem to find the answer to. I have > checked the archives and the website, but to no avail. I have installed PHP > 4.2.1 on my local machine with IIS running W2K Pro. When I run php -i, I > get the html output expected. But when I try to open the simple php script > > <?php > phpinfo(); > ?> > > all I get is the script written directly to the browser as text. I can't > figure out why it is not going through php.exe. Any help would be greatly > appreciated. > > -josh > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#98792) next »