[Freebsd] php / apache wil niet

Pagina: 1
Acties:
  • 122 views sinds 30-01-2008

  • Sa1
  • Registratie: Oktober 2000
  • Laatst online: 07:54
k word even helemaal gestoord hier.

Heb een mooie howto gevolgd:

http://www.essetee.be/amp.php
, dit werkt dus totaal niet.. :) heb hier een aantal zaken van gebruikt, zoals
code:
1
2
3
4
5
6
--enable-module=all \
--enable-shared=max \
--disable-module=auth_db \
--disable-module=auth_dbm \
--server-uid=apache \
--server-gid=apache &&

bij de configuratie van apache.

De configuratie van mysql heb ik op een andere manier gedaan, die werkt overigens perfect.

Bij de configuratie van php heb ik hetvolgende gebruikt:
./configure --prefix=/usr --with-mysql --with-apxs=/usr/local/apache/sbin/apxs && make && make install

... vervolgens heb ik de php.ini file gekopieerd volgens de howto:
cp php.ini-dist /usr/lib/php/php.ini

... vervolgens heb ik wat zaken aangepas in httpd.conf .. wat niet werkte.


Toen ben ik gaan zoeken naar een oplossing, hier op got wordt telkens gesproken over dat het maar via ports geinstalleerd moet worden. Uiteindelijk heb ik dat gedaan. Nadeel alleen dan is dat hij ook apache als dependency gaat installeren, dit wil ik natuurlijk helemaal niet.

Goed, dus na een tijd is alles geinstalleerd. Heb ik de httpd.conf van de zojuist geinstalleerde versie van apache geinspecteerd en alles waar php in voorkomt, naar m'n goede httpd.conf gekopieerd. :

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
LoadModule php4_module        libexec/libphp4.so

AddModule mod_php4.c

<IfModule mod_dir.c>
    <IfModule mod_php3.c>
        <IfModule mod_php4.c>
            DirectoryIndex index.php index.php3 index.html
        </IfModule>
        <IfModule !mod_php4.c>
            DirectoryIndex index.php3 index.html
        </IfModule>
    </IfModule>
    <IfModule !mod_php3.c>
        <IfModule mod_php4.c>
            DirectoryIndex index.php index.html
        </IfModule>
        <IfModule !mod_php4.c>
            DirectoryIndex index.html
        </IfModule>
    </IfModule>
</IfModule>

en:

    <IfModule mod_php3.c>
        AddType application/x-httpd-php3 .php3
        AddType application/x-httpd-php3-source .php3s
    </IfModule>
    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
    </IfModule>


vervolgens heb ik libphp4.so gekopieerd naar /usr/local/apache/libexec en alles herstart.

Als ik nu in webadmin kijk, vindt hij dat mod_php4 geactiveerd is. Dus dat is goed. Echter wanneer ik naar m'n site ga, en daar test.php opvraag, met daarin
code:
1
2
3
<
phpinfo();
?>

krijg ik gewoon dit te zien, en dat is dus niet goed.

Waar is het fout gegaan???

[ Voor 5% gewijzigd door Sa1 op 23-10-2003 12:04 ]


  • 0cool
  • Registratie: April 2001
  • Laatst online: 04-06-2024
probeer eens
<?
phpinfo();
?>

You thought your secrets were safe. You were wrong


  • Sa1
  • Registratie: Oktober 2000
  • Laatst online: 07:54
0cool schreef op 23 oktober 2003 @ 12:05:
probeer eens
<?
phpinfo();
?>
AAAAAAAAAAAAAAAAAAAAAAGGGGGGGGGGGrrr...

goed.. tnx.. dit is echt te blond...

k ga nu naar huis en me diep schamen :)

http://zeepje.ath.cx/test.php

dis toch goed? :)

[ Voor 13% gewijzigd door Sa1 op 23-10-2003 12:14 ]


  • blaataaps
  • Registratie: Juli 2001
  • Niet online
Dat lijkt me prima, php doet het, als je slechts phpinfo(); in je script het staan en dit de output is lijkt me, opgelost dus :)

Dit topic is gesloten.