[php4.1 + apache] Compileren lukt niet...

Pagina: 1
Acties:

  • kvdveer
  • Registratie: November 2000
  • Laatst online: 06-11-2025
Op mijn kersverse mandrake 8.1 machientje probeer ik apache en php te installeren.
Hoewel apache standaard bij de installatie was meegenomen, had ik php uitgeschakeld, omdat ik php 4.1 wilde.

even een directorylisting van /home/kvdveer
code:
1
2
drwxr-xr-x    8 kvdveer  kvdveer    4096 jan 23 17:41 apache_1.3.22/
drwxrwxr-x   15 kvdveer  kvdveer    4096 jan 23 17:55 php-4.1.1/


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
cd apache_1.3.22
./configure --prefix=/usr/local/apache
  [even wachten... geen foutmeldingen]
cd ../php-4.1.1
make distclean # even opruimen wat ik zit al een poosje te kloten
./configure --with-mysql=/usr/local/mysql --with-xml --with-apache=../apache_1.3.22/
  [even wachten, geen foutmeldingen, alleen wat onzin over MySql]
make
  [even wachten, blikje cola]
  [even wachten, ondertussen tv kijken... toffe stageplek is dit zeg...]
  [even wachten, pizza ontbreekt er nog aan...]
make install
cp php.ini-dist /usr/local/lib/php.ini
cd ../apache_1.3.22
./configure --activate-module=src/modules/php4/libmodphp4.a --enable-module=modphp4
  [geen fouten, noemt netjes php4]
make
  [snip]
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci`   mod_php4.c
mod_php4.c:28:18 zend.h: Onbekend bestand of map
mod_php4.c:29:17 php.h: Onbekend bestand of map
mod_php4.c:30:27 php_variables.h: Onbekend bestand of map
mod_php4.c:47:21 php_ini.h: Onbekend bestand of map
  [snip] 
mod_php4.c:57:39 ext/standard/php_standard.h: Onbekend bestand of map
make[4]: *** [mod_php4.0] Fout 1
  [snip]

Wat de #%^$^ doe ik fout?

nb. Ik ben niet zo'n expert, toen het met eerst niet lukte heb ik een tutorial gepakt

Localhost, sweet localhost


  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 14-08 13:49
moet je bij de 2e keer compileren van apache niet wederom
--prefix=/usr/local/apache
meersturen ?

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 14-08 13:49
waarom trouwens deze paramter meestuurd?
--enable-module=modphp4

in de manual zoals ik het altijd doet staat dit er niet.
$ gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure
$ cd ..

$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install

$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
$ make
(you should now have an httpd binary which you can copy to your Apache bin dir if
is is your first install then you need to "make install" as well)
$ cd ../php-4.0.x
$ cp php.ini-dist /usr/local/lib/php.ini
You can edit /usr/local/lib/php.ini file to set PHP options.
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • saviour
  • Registratie: Juli 2000
  • Niet online
Ik heb ook veel gezeur gehad met Apache de laatste dagen..

http://soulz.wox.org/help/apache.html

Zo gaat het goed bij mij (Apache + PHP4 + MySQL).

  • _-= Erikje =-_
  • Registratie: Maart 2000
  • Laatst online: 06-07 14:29
en als je php als module gaat bouwen?
dus apache met --enable-mod=so en php met --with-apache-apxs

  • kvdveer
  • Registratie: November 2000
  • Laatst online: 06-11-2025
Het werkt ondertussen...
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
Dat stond in die andere tutorial niet gebescheven, dus had ik de regel gecorrigeerd naar een bestand dat er wel stond...

bedankt voor de hulp mensen...

Localhost, sweet localhost

Pagina: 1