PHP installeren in Apache (windows)

Pagina: 1
Acties:

  • Cyphax
  • Registratie: November 2000
  • Nu online

Cyphax

Moderator LNX
Topicstarter
Ik heb het PHP pakket netjes uitgepakt in c:\php.
Volgens de help file moet je dan

# for the apache module
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4

#for the cgi binary (you can use that one compiled with force cgi redirect too)
ScriptAlias /php4/ "C:\php\"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php


toevoegen aan je http.conf.
Dat heb ik gedaan (onderaan toegevoegd) maar Apache start niet meer, en geeft een foutmelding, namelijk:

Cannot load c:/php/sapi/php4apache.dll into server: (1157) Kan een van de vereis
te bibliotheekbestanden van deze toepassing niet vinden:


Het bestand staat daar gewoon wel...
Je moet ook php4ts.dll in je windows system(32) directory zetten, en ik heb 'm voor de zekerheid ook maar in zowel system als system32 gezet.

Wat doe ik nou verkeerd?

btw: 't is niet handig dat je bij de zoekfunctie geen woorden van minder dan 4 letters kan gebruiken, zoeken op 'PHP' lukt ook niet echt :(

Saved by the buoyancy of citrus


  • The Source
  • Registratie: April 2000
  • Laatst online: 13:05
Als het de bedoeling is om thuis wat mee te klooien dan kun je volgende gebruiken

http://www.klopt.nl/phpdev


[edit]
url change

  • Cyphax
  • Registratie: November 2000
  • Nu online

Cyphax

Moderator LNX
Topicstarter
Hee bedankt! Heel pakket in 1!

De bedoeling is inderdaad niet om mijn PC te promoveren tot webserver, maar ik wil mijn webpage met PHP voorzien, en de pagina's lokaal maken.
Dan upload ik ze wel naar de webserver.

Saved by the buoyancy of citrus


  • Cyphax
  • Registratie: November 2000
  • Nu online

Cyphax

Moderator LNX
Topicstarter
maar die foutmelding hou ik toch als ik een php pagina probeer te openen :(

Saved by the buoyancy of citrus


  • The Source
  • Registratie: April 2000
  • Laatst online: 13:05
heb je geen andere server op poort 80 draaien? IIS? Doen gewone HTML pagina's het wel?

  • RRX
  • Registratie: Mei 2000
  • Laatst online: 29-05-2025

RRX

@life-

Op woensdag 14 februari 2001 00:09 schreef The Source het volgende:
Als het de bedoeling is om thuis wat mee te klooien dan kun je volgende gebruiken

http://www.klopt.nl/phpdev.dev

rename naar .exe (zip bestand)
ik heb dit gedownload, en het draait allemaal perfect:)

maar.....

hoe moet ik nu mijn bestanden cmod den ???

mijn T.net systeemspecspagina


Verwijderd

php.ini in c:\windows zetten

  • sebas
  • Registratie: April 2000
  • Laatst online: 16-12-2025
Op zaterdag 28 juli 2001 04:05 schreef hans_20 het volgende:
php.ini in c:\windows zetten
Klopt niet. Het moet in c:\windows\system32 komen te staan.

Everyone complains of his memory, no one of his judgement.


  • alt-92
  • Registratie: Maart 2000
  • Niet online

alt-92

ye olde farte

Op zaterdag 28 juli 2001 19:30 schreef Sebas het volgende:

[..]

Klopt niet. Het moet in c:\windows\system32 komen te staan.
Hmm... Waarom heb ik dan een werkende PHP/server installatie op zowel win2k als win98 als bij mij php.ini in de Windows dir staat?
Ah:
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.

ik heb een 864 GB floppydrive! - certified prutser - the social skills of a thermonuclear device


  • sebas
  • Registratie: April 2000
  • Laatst online: 16-12-2025
Copy the file, 'php.ini-dist' to your '%WINDOWS%' directory on Windows 95/98 or to your '%SYSTEMROOT%' directory under Windows NT or Windows 2000 and rename it to 'php.ini'. Your '%WINDOWS%' or '%SYSTEMROOT%' directory is typically:
http://www.php.net/manual/en/install-windows.php

no comment :O

(Je hebt gelijk, vergissing van mij.)

Everyone complains of his memory, no one of his judgement.


  • Apache
  • Registratie: Juli 2000
  • Laatst online: 03-05 14:38

Apache

amateur software devver

Op zaterdag 28 juli 2001 03:15 schreef RRX het volgende:

[..]

ik heb dit gedownload, en het draait allemaal perfect:)

maar.....

hoe moet ik nu mijn bestanden cmod den ???
niet ...

If it ain't broken it doesn't have enough features


Verwijderd

Fantastisch, draaide bij mij ook in 2 minuten:)

  • RRX
  • Registratie: Mei 2000
  • Laatst online: 29-05-2025

RRX

@life-

Op zondag 29 juli 2001 00:43 schreef Apache het volgende:

[..]

niet ...
en daar houdt het op, het kan gewoon niet.
Oké jammer :'(

/edit

oja, weet iemand nog hoe ik die command boxjes rechtsonderin bij de rest van mijn icoontjes komt te staan?

mijn T.net systeemspecspagina


  • Zr40
  • Registratie: Juli 2000
  • Niet online

Zr40

Moderator General Chat

heeft native IPv6

# for the apache module
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4

#for the cgi binary (you can use that one compiled with force cgi redirect too)
ScriptAlias /php4/ "C:\php\"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
Je moet het deel wat over de apache module gaat NIET toevoegen aan je http.conf.
Pagina: 1