FreeBSD 4.6, Apache 2.0.40 en PHP 4.2.2

Pagina: 1
Acties:

  • Klaus_1250
  • Registratie: December 2000
  • Laatst online: 22:35
Ik heb via:

#cd /usr/ports/www/mod_php4
#make -DWITH_APACHE2 install

#cd /usr/ports/lang/php4
#make install

+LoadModule php4_module libexec/apache2/libphp4.so
+AddType application/x-httpd-php .php
+AddType application/x-httpd-php-source .phps

PHP ingestalleerd. Na Apache te hebben gerestart en test.php (eenvoudiug progje) te hebben gerunt kreeg ik allerlei exception error en stopte Apache ermee. Na het opnieuw installeren maar nu alleen met de standaard onderdelen van PHP gebeurt er helemaal niks meer, maar krijg ik een downloadvenster in mijn browser.
Alles in de httpd.conf staat goed.

Weet iemand wat het probleem kan zijn en heeft iemand dit eerder gehad?

  • miniBSD
  • Registratie: Augustus 2002
  • Laatst online: 20-12-2023
Wellicht zijn de application types niet goed aangemeld. Dit zijn de vermeldingen uit mijn mime.conf met betrekking tot php:

application/x-httpd-php phtml pht php
application/x-httpd-php-source phps
application/x-httpd-php3 php3
application/x-httpd-php3-preprocessed php3p
application/x-httpd-php4 php4

Quidquid latine dictum sit, altum sonatur (Whatever is said in Latin sounds profound).


  • egeltje
  • Registratie: December 2000
  • Laatst online: 10-04-2019

egeltje

BOfH: BSD Operator from Hell

ff een quote van php.net:
If you're trying to use Apache 2.0.x and PHP, you'll need to do the following:

First, make sure that when you configure PHP you use the --with-apxs2 option, like so: --with-apxs2=/path/to/apache2/apxs. You need to use this instead of --with-apxs. Second, when you edit your httpd.conf, instead of adding the AddType line, add the following:

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

to where you would normally add the AddType line. This works for me using PHP 4.1.2 and Apache 2.0.28. YMMV.
Kijk maar eens hier. Vooral het user commentaar is bijzonder handig.
http://www.php.net/manual/en/install.apache.php

Iedereen wil terug naar de natuur, maar niemand wil lopen...


  • Klaus_1250
  • Registratie: December 2000
  • Laatst online: 22:35
Heb ik gelezen, alleen iedereen spreekt elkaar daar nogal tegen. Ik had gewoon de guide op www.bsdfreaks.nl gevolgd. Dacht dat dat wel goed moest zijn!

  • Infern0
  • Registratie: September 2000
  • Laatst online: 16-03 23:51

Infern0

Hou die ontzettende rust!!

Ik geloof ook dat apache 2.0.40 wat problemen heeft met php en daarom die howto niet helemaal lekker werkt. Ik heb wel 2.0.39 werkend gehad met php

http://www.bsdfreaks.nl Home site: http://rob.lensen.nu /me was RobL


  • egeltje
  • Registratie: December 2000
  • Laatst online: 10-04-2019

egeltje

BOfH: BSD Operator from Hell

Ik heb in ieder geval die <files *.php> een keer geprobeerd en dat ging toen goed (met .39).
Ik ben nu weer terug op apache 1.3.26 met php 4.2.2 en dat draait gewoon zonder enig probleem. Ik wacht gewoon af tot apache 2 en php 4 wat meer naar elkaar toe zijn gegroeid.

Iedereen wil terug naar de natuur, maar niemand wil lopen...


  • MyDyingBride
  • Registratie: November 2001
  • Laatst online: 19-04 20:18
Ik heb afgelopen weekend freebsd 4.6.2, apache 2.0.40 en php 4.2.2 geinstalleerd en dit werkt prima.
Ik heb alleen /usr/ports/lang/php4 niet geinstalleerd, misschien zit daar het probleem :?
Pagina: 1