Toon posts:

Werkt PHP4 niet met IIS5 ?

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik ben op het moment bezig PHP4 werkend te krijgen op een IIS5 webserver. Ik heb 2 manieren geprobeerd. Handmatig de ISAPI filters instellen etc. En de automatische installer van php.net met php 4.0.4 uitgevoerd. Beide werken niet.

De sourcecode is gewoon te lezen bij de client. Ik kan me niet voorstellen dat ik de enige ben geweest met dit probleem, dus wie o wie kan me hiermee helpen, zodat het gaat werken zoals het hoort.

Verwijderd

Ik heb het zelfde probleem

Wie weet raad

:'(

  • Rob
  • Registratie: Februari 2000
  • Niet online

Rob

Ik heb 'm wel werkend gekregen op de ISAPI filter manier.
Misschien een stomme vraag, maar heb je de server wel gestopt en gestart nadat je het filter had toegevoegd?

In the beginning the Internet was a bunch of smart users with dumb terminals. Now...


Verwijderd

ik heb onder
properties iis->home directory->configuration
een nieuwe dinges toegevoegt..
met als executable php.exe %s %s (en extensie .php)
toen werkte het,
in de install.txt file die je erbij krijgt staat echter dat je die php4isapie.dll (oid) moet gebruiken, dat werkte bij mij niet.

  • Rob
  • Registratie: Februari 2000
  • Niet online

Rob

Er staan 2 manieren in die install vermeld, waarschijnlijk heb je de verkeerde gelezen (die bij mij ook niet werkte)

In the beginning the Internet was a bunch of smart users with dumb terminals. Now...


  • s3n
  • Registratie: Juli 2000
  • Laatst online: 19:59

s3n

Hierro werkt ie ook.
Ik heb een versie van php4. Ik heb verder geen id welke.

Maare daar zat een readme bestandje bij waarvan ik een stukje heb gekopieerd:


Installation
------------

Unlike PHP 3, PHP 4 is divided into several components; Even when you use
PHP in its CGI mode, php.exe is no longer a standalone executable, and relies
on external DLLs for execution. For this reason, if you install php.exe as
a handler for your web server, you must make sure that the DLLs in the
distribution exist in a directory that is in the Windows PATH. The easiest
way to do it is to copy these DLLs to your SYSTEM (Windows 9x) or SYSTEM32
(Windows NT) directory, which is under your Windows directory.
The DLLs that need to be copied are MSVCRT.DLL (it may already exist in there)
and PHP4TS.DLL.

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!


Zo heb ik het gedaan, en ut werkt :) :)

Verwijderd

Topicstarter
Ik heb het inderdaad in eerste instantie netjes volgens het boekje (handleiding...) gedaan, toen dat niet werkte zelf wat uitgeprobeerd en uiteindelijk de installer. Het wilde allemaal niet meewerken. Ik heb inderdaad na de installatie in IIS5 het HELE systeem opnieuw opgestart, en niet alleen de webserver ge-restart.

Verwijderd

Topicstarter
S3n alvast bedankt, ik ga dat is ff uit proberen, in mijn readme werd IIS5 niet eens besproken en was er nog van IIS4 uitgegaan.

Verwijderd

Vet makkelijk man!

Gewoon die poep van PHP4 in een directorie knallen. php.exe kopieren naar: c:\winnt\system32, samen met msvrt.dll, of zoiets.
In iis instellen dat wanneer een .php opgevraagd wordt dattie dan php.exe moet uitvoeren.
That's all. Niks ISAPI's.
Pagina: 1