13. april 2001 - 15:18
Der er
4 kommentarer og
1 løsning
HJÆLP HJÆLP PROBLEM MED SERVER OPSÆTNING
Jeg skal have php til at virke på en iis 4.0 hvordan gør jeg det, jeg kan fint på en version 5.0 men jeg får en cgi fejl når jeg prøver, på 4.0 den der kan hjælpe mig får 200 Points for det er Vigtigt ......
13. april 2001 - 15:23
#1
Installation Notes for IIS 4.0 and 5.0
--------------------------------------
- Install the DLLs as mentioned above.
- If you wish to change any defaults, copy either the php.ini-dist or
php.ini-optimized files into your Windows directory, and rename it to
\'php.ini\'. You can then modify any of the directives inside it.
- Start the Microsoft Management Console (may appear as
\'Internet Services Manager\', either in your Windows NT 4.0 Option Pack
branch or the Control Panel->Administrative Tools under Windows 2000).
- Right click on your Web server node (will most probably appear as \'Default
Web Server\'), and select \'Properties\'.
- If you don\'t want to perform HTTP Authentication using PHP, you can (and
should) skip this step. Under \'ISAPI Filters\', add a new ISAPI filter.
Use \'PHP\' as the filter name, and supply a path to the php4isapi.dll that
is included in the distribution.
- Under \'Home Directory\', click on the \'Configuration\' button. Add a new
entry to the Application Mappings; Use the path the php4isapi.dll as the
Executable, supply .php as the extension, leave \'Method exclusions\', blank,
and check the Script engine checkbox.
- Stop IIS completely (you would have to stop the IIS Administration service
for that - stopping it through the Management Console isn\'t good enough;
You can do it by typing \'net stop iisadmin\' on a command prompt).
- Start IIS again (you can do it by typing \'net start w3svc\' on a command
prompt).
- Put a .php file under your Web server\'s document root and check if it works!
IIS 4.0+ (isapi):
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs
2. Start the Microsoft Management Console or the Internet Services Manager, located in your Control Panel
3. Click on your webserver, and select properties
4. If you don\'t want to perform HTTP Authentication using PHP, you can (and should) skip this step. Under ISAPI Filters,
add a new ISAPI filter. Use PHP as the filter name, and supply a path to the php4isapi.dll
5. Under Home Directory, click on the Configuration button. Add a new entry to the Application Mappings. Use the path the
php4isapi.dll as the Executable, supply .php as the extension, leave Method exclusions, blank, and check the Script engine
checkbox
6. Stop IIS completely
7. Start IIS again
IIS 4.0+ (CGI)
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs
2. Start the Microsoft Management Console (may appear as \'Internet Services Manager\', either in your Windows NT 4.0
Option Pack branch or the Control Panel->Administrative Tools under Windows 2000).
3. Right click on your Web server node (will most probably appear as \'Default Web Server\'), and select \'Properties\'.
4. Under \'Home Directory\', click on the \'Configuration\' button. Add a new
5. entry to the Application Mappings; Use the path to php.exe as the Executable, supply .php as the extension, leave
\'Method exclusions\', blank, and check the Script engine checkbox.
6. Put a .php file under your Web server\'s document root and check if it works!