Toon posts:

Installeren van PHP + Apache (Make fout)

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

Verwijderd

Topicstarter
Goeden avond,

Ik was bezig met het installeren van php en apache.
tot ik opeens niet meer verder kon!

Ik krijg de volgende error:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_include.c
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_autoindex.c
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_dir.c
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_cgi.c
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_asis.cgcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_imap.cgcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_actions.c
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_userdir.c
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_alias.c
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_access.c
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_auth.cgcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_setenvif.c
rm -f libstandard.a
ar cr libstandard.a mod_env.o mod_log_config.o mod_mime.o mod_negotiation.o mod_status.o mod_include.o mod_autoindex.o mod_dir.o mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.o mod_alias.o mod_access.o mod_auth.o mod_setenvif.o
ranlib libstandard.a
<=== src/modules/standard
===> src/modules/php4
make[4]: *** Geen regel voor het maken van doel `all'.  Stop.
make[3]: *** [all] Fout 1
make[2]: *** [subdirs] Fout 1
make[2]: Weggaan uit map `/usr/src/install/apache_1.3.29/src'
make[1]: *** [build-std] Fout 2
make[1]: Weggaan uit map `/usr/src/install/apache_1.3.29'
make: *** [build] Fout 2


Wanneer ik alleen apache installeer, heb ik geen problemen!

Ik maak gebruik van:

Apache 1.3.29
PHP 4.3.6

Ik installeer overigens bij php de volgende modules:

-Curl
-LibGD
-LibJpeg
-LibPng
-ZLib
-Freetype
-PDF Lib

Ik configureer PHP met de volgende commandline:

--prefix=/usr/lib/ --with-apache=../apache-1.3.29 --with-mysql --with-curl=/usr/local/lib --enable-exif --with-gd=/usr/lib --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/local --with-ssl=/usr/lib/openssl --with-freetype-dir=/usr/lib --with-pdflib=/usr/lib

En apache met:
--prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a --enable-module=php4

Enige idee wat het probleem zou kunnen zijn?

  • igmar
  • Registratie: April 2000
  • Laatst online: 31-01 23:50

igmar

ISO20022

Heb je een make install gedaan voor PHP, en daarna weer een config van apache ?

  • mboy
  • Registratie: December 2001
  • Laatst online: 20-06-2024
Het probleem is volgens mij dat je de installatiehandleiding niet volgt.

Ik doe meestal eerst een apache configure met: --prefix=<prefix> --enable-shared=max
daarna make, make install.

Dan php configure met: --with-apxs=<apache-prefix>/bin/apxs --with-de-complete-meuk
daarna make, make install

Verwijderd

Topicstarter
ik heb apache geconfigureerd met

./configure --prefix=/usr/local/apache

daarna php geinstallerd

daarna apache geconfigureerd weer, en make gedaan!

  • mboy
  • Registratie: December 2001
  • Laatst online: 20-06-2024
Mja, maar das volgens mij niet de juiste volgorde. Lees de bijgeverde installatiehandleidingen een keer door. Daarin staan precies de stappen die je moet ondernemen.

Whoopsie, ik was even de war met de dynamic install.....

[ Voor 16% gewijzigd door mboy op 04-05-2004 22:18 ]


  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 20-02 11:20
deel van het INSTALL bestand van 4.3.6
QUICK INSTALL (Static)

$ gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure
$ cd ..

$ gunzip -c php-4.x.y.tar.gz | tar xf -
$ cd php-4.x.y
$ ./configure --with-mysql --with-apache=../apache_1.3.x
$ 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.x.y
$ 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.


Verwijderd

Topicstarter
igmar schreef op 04 mei 2004 @ 21:56:
Heb je een make install gedaan voor PHP, en daarna weer een config van apache ?
Of ik apache al eens eerder heb geinstalleerd?

(Als je dat bedoelt, ja)

Verwijderd

Topicstarter
a casema user schreef op 04 mei 2004 @ 22:13:
deel van het INSTALL bestand van 4.3.6

[...]
zo heb ik het ook ongeveer gedaan!

  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 20-02 11:20
Verwijderd schreef op 04 mei 2004 @ 22:16:
[...]


zo heb ik het ook ongeveer gedaan!
ongeveer ?
Probeer het eens met alle stappen.
Het is heel belangrijk eerst ./configure te doen met apache voordat je met PHP begint.

Taaaa taa taa taaaa taa taa ta taaataaaaa.


Verwijderd

Topicstarter
dat had ik ook gedaan!

Ik ben nou jou stappen aan het doen! (Duurt ff)

Verwijderd

Topicstarter
Ik kreeg in eens fouten van GD bij het installeren van php, misschien dat dat de fout is!

Verwijderd

Topicstarter
Het gaat niet echt goed..... ik krijg nu een nieuwe fout (bij make install):

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ext/mysql/libmysql/my_tempnam.o(.text+0x40): In function `my_tempnam':
/usr/src/cpanelinstall/php-4.3.6/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam' is dangerous, better use `mkstemp'
 
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
 
[root@dhcppc1 php-4.3.6]# make install
Installing PHP SAPI module:       apache
mkdir: `/usr/lib/bin' exists but is not a directory
make: [install-sapi] Fout 1 (genegeerd)
Installing PHP CLI binary:        /usr/lib/bin/
mkdir: `/usr/lib/bin' exists but is not a directory
cp: accessing `/usr/lib/bin/#INST@2172#': Geen map
make: *** [install-cli] Fout 1

[ Voor 3% gewijzigd door Verwijderd op 05-05-2004 09:25 ]


  • blaataaps
  • Registratie: Juli 2001
  • Niet online
Boven je post zit een Afbeeldingslocatie: http://gathering.tweakers.net/global/templates/silver/images/icons/edit.gif knop, om je post te veranderen zodat je niet steeds achterelkaar hoeft te posten, gelieve die wat vaker te gebruiken.

  • cavey
  • Registratie: Augustus 2000
  • Laatst online: 17-02 19:31
ehm, is toch een VRIJ duidelijke foutmelding?

/usr/lib/bin bestaat, maar is geen map.... ga eens kijken wat het wel is?

ls -ld /usr/lib/bin ... ;) probably een bogus bestand, of een dead symlink ergens heen.....
verwijder bin, en doe mkdir /usr/lib/bin ?

trouwens, MAFFE plek om bins neer te zetten? hrmz.... meestal zet je die in /usr/local/bin .... fout config pad gebruikt?

Verwijderd

Topicstarter
komakeef schreef op 04 mei 2004 @ 22:50:
ehm, is toch een VRIJ duidelijke foutmelding?

/usr/lib/bin bestaat, maar is geen map.... ga eens kijken wat het wel is?

ls -ld /usr/lib/bin ... ;) probably een bogus bestand, of een dead symlink ergens heen.....
verwijder bin, en doe mkdir /usr/lib/bin ?

trouwens, MAFFE plek om bins neer te zetten? hrmz.... meestal zet je die in /usr/local/bin .... fout config pad gebruikt?
Hé Thanks! Het werkt :) ik heb hem nu geinstalleerd op /usr/lib/php

Verwijderd

Topicstarter
Apache Werkt :D

Thanks allemaal, zonder jullie had ik nooit de stappen door genomen, en niet de fouten hebben kunnen zien!

  • blaataaps
  • Registratie: Juli 2001
  • Niet online
opgelost dus, volgende keer zelf ook proberen.
Pagina: 1

Dit topic is gesloten.