[php/Win2k3]Install lukt niet?

Pagina: 1
Acties:
  • 206 views sinds 30-01-2008
  • Reageer

  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
Ik heb Win2k3 SBS draaien en wil Apache + MySQL + PHP gaan draaien.

MySQL (4.2.20a) draait... no problem

Apache draait ook (1.3.31).

PHP (4.3.7)geinstaleerd en de files php4ts.dll en php4apache.dll naar de Apache dir gekopieerd.

In de httpd.conf de volgende regels toegevoegd:
code:
1
2
LoadModule php4_module "C:\Program Files\Apache Group\Apache\php4apache.dll"
AddType application/x-httpd-php .php

Volgens de install.txt van PHP moest ik ook de php.ini kopieren naar de Apache dir en daarin de regel veranderen:
code:
1
doc_root =

naar:
code:
1
doc_root = "C:\Program Files\Apache Group\Apache"


Apache restart en als ik een php file wil benaderen parsed hij hem niet maar geeft een download venster aan.

Ik heb al een paar keer gezocht en vond wel een aantal oude topics maar niet echt een duidelijk antwoord voor dit probleem.

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


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

alt-92

ye olde farte

php4ts.dll in je \system32 dir gooien.

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


  • GlowMouse
  • Registratie: November 2002
  • Niet online
Apache 1.3.x geeft niet zo'n goede performance onder windows, dus als alles werkt wil je misschien 2.0.x gebruiken. De apache group raadt dit zelf trouwens aan.

  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
PHP raadt alleen apache2 af (experimenteel zeggen ze)

Volgens mij staat die dll in de sys32 zal strax ff kijken... thx 4 de tip

[ Voor 43% gewijzigd door Roeligan op 12-06-2004 10:06 ]

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
Die php4apache.dll staat in de sys32 dir. Andere tips?

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
Die vat ik niet helemaal :?

Alle 2 die dll's staan in de sys32

[ Voor 131% gewijzigd door Roeligan op 14-06-2004 14:49 ]

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


  • sjhgvr
  • Registratie: Januari 2004
  • Laatst online: 24-08 06:51
FYI:

1 =! 2
1 komt niet overeen met 2
1 is niet hetzelfde als 2
1 is geen 2

8)

edit: Ik heb hier apache 1.3.31 met php 4.3.7 draaien op XP, en php4ts.dll bevind zich bij mij NIET in de system32 dir maar in C:\WINDOWS\

edit2: Heb je in httpd.conf ook toegevoegd:

code:
1
2
ScriptAlias /php/ "C:/Program Files/Apache Group/Apache/php/"
Action application/x-httpd-php "/php/php.exe"
?

dan wel ff de juiste pads ingeven.

[ Voor 79% gewijzigd door sjhgvr op 14-06-2004 15:08 ]

oisd.nl


  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
Dat is toch aleen als je PHP door de .exe wil laten parsen en niet als module.

BTW ik weet ook wel dat != (of =!) ongelijk aan betekend. Maar wat bedoelt ie ermee...

edit:

Laat maar ik zie al dat ik in mijn post erboven verkeerde filenaam had gezet, maar ze staan er alle2


Ook staan ze in mn windows en windows\system (en ook windows\system32)

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


  • Godjira
  • Registratie: Februari 2003
  • Laatst online: 28-08 15:45

Godjira

To infinity and beyond!

Roeligan schreef op 12 juni 2004 @ 10:05:
PHP raadt alleen apache2 af (experimenteel zeggen ze)

Volgens mij staat die dll in de sys32 zal strax ff kijken... thx 4 de tip
PHP en Apache 2 is geen enkel probleem. Ik heb zelf Apache 2.0.49, PHP 4.3.7 en MySQL 4.0.20a draaien onder Windows XP Professional. Draait als een trein.

[ Voor 3% gewijzigd door Godjira op 14-06-2004 15:20 ]

Profile


  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
Dan zal ik ff apache en php uninstallen en nwe versies erop gooien

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


  • Godjira
  • Registratie: Februari 2003
  • Laatst online: 28-08 15:45

Godjira

To infinity and beyond!

Zelf installeer ik altijd Apache in een map _web_ op de c: schijf (in de root dus). Die map van apache 2 wordt dan Apache2 genoemd. Ook zet ik alle bestanden van PHP in die _web_ map, gewoon in een map met de naam php. Daarna kopieer ik de php.ini-recommended naar c:\windows en rename deze naar php.ini. Zorg dan dat alles in je httpd.conf van apache goed is ingevoerd, start apache en het moet gewoon prima werken.

MySQL installeren op de c schijf, dan via Command Prompt even de service voor Windows installeren d.m.v. het commando mysqld-max-nt --install (onder c:\mysql\bin). Dan via services van Windows MySQL starten en in feite ben je klaar.

Denk laat je mijn manier van installeren even weten, wie weet heb je er iets aan.

Profile


  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
Will do...
MySQL draait goed (ook als service installed met max-nt) dus die laat ik draaien.

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
hmmmm ik heb nu php uninstalled en apache ook. Alle files en dirs weggegooid en Apache2 installed (2.0.49) en php ook opnieuw installed. Nu zgtie nog steeds:
The Apache service named reported the following error:
>>> Cannot load C:/php/sapi/php4apache2.dll into server: The specified module could not be found. .
File is er wel. Rechten op full controll gezet voor iedereen....

[ Voor 12% gewijzigd door Roeligan op 16-06-2004 12:18 ]

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814


  • Spider.007
  • Registratie: December 2000
  • Niet online

Spider.007

* Tetragrammaton

Heb je de instructies uit de PHP manual gevolgd en bijvoorbeeld ook php4ts.dll in je windows directory gezet?

---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate


  • Sosabowski
  • Registratie: Juni 2003
  • Laatst online: 22-08 20:37

Sosabowski

nerd

Deze werkt mij mij vlekkeloos (WinXP Pro):
Installing php4 on windows 2000 (and other NT based) with apache2 - the minimum:

1. Go into the apache2 main/root directory (e.g. C:/Program Files/Apache Group/Apache2) and put here the php.ini file.
2. Go into the modules directory and create here new folder named 'php'.
3. Copy into .../modules/php/ directory all dll's needed by php:
php4apache2.dll, php4ts.dll and all extensions you need, for example php_pgsql.dll.
4. Modify httpd.conf - add lines
LoadModule php4_module modules/php/php4apache2.dll
AddType application/x-httpd-php .php
5. Modify php.ini
extension_dir = "./modules/php/"
6. Start apache server !
As you can see - everything is placed in the apache
directory, no dll's go to the windows system directories (brrr !), no absolute paths in the php.ini configuration file !
Now you can move all the apache directory in some other place and at most you have to change httpd.conf file, nothing
else !

The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts. -- Bertrand Russell


  • Roeligan
  • Registratie: December 2001
  • Laatst online: 22-07-2025
Spider.007 schreef op 16 juni 2004 @ 12:51:
Heb je de instructies uit de PHP manual gevolgd en bijvoorbeeld ook php4ts.dll in je windows directory gezet?
Yup (zoals je een paar posts boven al kan lezen) ik heb nu NuSphere erop gezet (kant en klaar install met apache 1.3.21 (geloof ik) en php 4.3.7 en alles werkt. Iig thx voor alle comments.

A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814

Pagina: 1