Apache + PHP installeren wil niet

Pagina: 1
Acties:

  • Passenger
  • Registratie: Januari 2000
  • Laatst online: 21-04 09:44
Heb nu net apache 1.3.17 en php 4.0.1pl1 gedownload...
eerst alles netjes uitgepakt, daarna php geconfigureerd, en make en make install gedaan... ging prima.. heb netjes aangegeven waar apache staat enzow, gaat allemaal prima..
maar daarna probeer ik apache (./cofigure --prefix=/www --activate-module=src/modules/php4/libphp4.a) en dan krijg ik hetvolgende:
Configuring for Apache, Version 1.3.17
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o php4_module uses ConfigStart/End
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
============= End of Error Report =============

Aborting!
Iemand een idee wat ik nou verkeerd doe? Ik gebruik als distro suse 7.0

  • Passenger
  • Registratie: Januari 2000
  • Laatst online: 21-04 09:44
hier nog ff een uitgebreidere foutmelding:
Configuring for Apache, Version 1.3.17
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
cd ..; gcc -DLINUX=22 -I/tmp/php-4.0.4pl1 -I/tmp/php-4.0.4pl1/main -I/tmp/php-4
.0.4pl1/main -I/tmp/php-4.0.4pl1/Zend -I/tmp/php-4.0.4pl1/Zend -I/tmp/php-4.0.4p
l1/TSRM -I/tmp/php-4.0.4pl1/TSRM -I/tmp/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-l
ite -DNO_DL_NEEDED `./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/
usr/local/lib -rdynamic -L/usr/local/lib -Lmodules/php4 -L../modules/php4 -L../
../modules/php4 -lmodphp4 -lpam -lc-client -ldl -lttf -lz -lpng -lgd -ljpeg -l
resolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/local/lib -ljpeg -lm -lcrypt
/usr/lib/libc-client.so: undefined reference to `mm_expunged'
/usr/lib/libc-client.so: undefined reference to `mm_diskerror'
/usr/lib/libc-client.so: undefined reference to `mm_lsub'
/usr/lib/libc-client.so: undefined reference to `mm_flags'
/usr/lib/libc-client.so: undefined reference to `mm_fatal'
/usr/lib/libc-client.so: undefined reference to `mm_nocritical'
/usr/lib/libc-client.so: undefined reference to `mm_notify'
/usr/lib/libc-client.so: undefined reference to `mm_searched'
/usr/lib/libc-client.so: undefined reference to `mm_status'
/usr/lib/libc-client.so: undefined reference to `mm_login'
/usr/lib/libc-client.so: undefined reference to `mm_list'
/usr/lib/libc-client.so: undefined reference to `mm_critical'
/usr/lib/libc-client.so: undefined reference to `mm_exists'
/usr/lib/libc-client.so: undefined reference to `mm_log'
/usr/lib/libc-client.so: undefined reference to `mm_dlog'
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
Creating Makefile in src
+ configured for Linux platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
o php4_module uses ConfigStart/End
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
============= End of Error Report =============

Aborting!

  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 30-04 09:44
** Apache requires an ANSI C Compiler, such as gcc
Wat dacht je van GCC (bv) installeren, staat standaard op je CD.
En dan nog een keer proberen.

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • Passenger
  • Registratie: Januari 2000
  • Laatst online: 21-04 09:44
gcc staat al geïnstalleerd! anders zou ik php ook nooit kunnen compilen
maar ik weet voor 200% zeker dat gcc geïnstalleerd staat... daarom vind ik die error ook zo vaag...

  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 30-04 09:44
ff kijken, volgens mij had ik een keer ook zoiets.
QUICK INSTALL (Static)

$ tar xvfz apache_1.3.x.tar.gz
$ cd apache_1.3.x
$ ./configure
$ cd ..

$ tar xvfz php-4.0.x.tar.gz
$ cd php-4.0.x
$ ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.12 --enable-track-vars --with-gd --with-zlib
$ make
$ make install
oftewel, heb je vooral wel ./configure bij apache gedaan? volgens mij was dat toen ook mijn fout.

suc6 :D

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • Passenger
  • Registratie: Januari 2000
  • Laatst online: 21-04 09:44
Op zondag 11 februari 2001 21:39 schreef a casema user het volgende:
ff kijken, volgens mij had ik een keer ook zoiets.
[..]

oftewel, heb je vooral wel ./configure bij apache gedaan? volgens mij was dat toen ook mijn fout.

suc6 :D
dus eerst ./configure bij apache zonder php, dan php compilen, en dan nog een keer ./configure MET php, en dan compilen maar?

  • Passenger
  • Registratie: Januari 2000
  • Laatst online: 21-04 09:44
hmzz... ook dit lost het probleem niet op :( nog meer mensen met ideeën?

  • Passenger
  • Registratie: Januari 2000
  • Laatst online: 21-04 09:44
niemand meer met bruisende ideeën?

  • RemcoX
  • Registratie: Mei 2000
  • Laatst online: 14-02 20:05
Toevallig, ik ben ook bezig met het installeren van dezelfde PHP en Apache versies op mijn RedHat 6.0 systeem.

En ook bij mij gaat PHP meteen goed, de ./configure van Apache gaat ook goed, maar bij de make van Apache krijg ik:
code:
1
2
3
mod_php4.c:28 zend.h: No such file or directory
mod_php4.c:29 php.h: No such file or directory
mod_php4.c:30 php_variables.h: No such file or directory

...

en zo nog een heel scherm vol.

Wat doe ik fout ? :?

Verwijderd

Op maandag 12 februari 2001 15:15 schreef Tu-Tone het volgende:
niemand meer met bruisende ideeën?
Aan de foutmeldingen te zien mis je gewoon een aantal libraries en heeft het niks te maken met GCC. Zorg dat je in ieder geval de benodigde libraries hebt geinstalleerd en dat ze ook in het library-path staan.
(/etc/ld.so.conf en daarna ldconfig)

Dan moet ie het gewoon doen.

Verwijderd

Op maandag 12 februari 2001 23:47 schreef RemcoX het volgende:
Toevallig, ik ben ook bezig met het installeren van dezelfde PHP en Apache versies op mijn RedHat 6.0 systeem.

En ook bij mij gaat PHP meteen goed, de ./configure van Apache gaat ook goed, maar bij de make van Apache krijg ik:
code:
1
2
3
mod_php4.c:28 zend.h: No such file or directory
mod_php4.c:29 php.h: No such file or directory
mod_php4.c:30 php_variables.h: No such file or directory

...

en zo nog een heel scherm vol.

Wat doe ik fout ? :?
Vergeten op te geven waar dat hij deze bestanden kan vinden, lijkt me zo:?

  • noMSforme
  • Registratie: Oktober 2000
  • Laatst online: 10-03-2022
Waarom laad je php niet als een module in apache? is veel handiger vind ik.
rpm'tje ophalen vam modules.apache.org en
installeren...

Verwijderd

Probeer http://www.apachetoolbox.com/ eens. Heb ik ook gebruikt, werkt erg fijn.

Verwijderd

nog meer mensen met ideeën?
Ik gebruik zelf een modulaire bouw van apache, als er dan een nieuwe versie van php uit komt, hoef ik niet apache opnieuw te compilen.

Hieronder mijn 'geheugensteuntje':
---> APACHE

./configure --prefix=/usr/local/apache_x.x.x
--enable-module=rewrite --enable-shared=rewrite

/usr/local/apache/bin/apachectl stop
make
make install
rm /usr/local/apache
ln -s /usr/local/apache_x.x.x /usr/local/apache

(ik gebruik een symlink voor apache omdat de configratie dan op 1 plaats blijft staan. Mocht er bij een toekomstige update iets fout gaan, dan dan ik ook gemakkelijk terug (Symlinkje terugzetten...)

En dan nu PHP:
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-calender --enable-ftp --with-gd --enebale-sockets
--with-pgsql=/usr/local/pgsql
make
make install

Overgens moet je na het compilen ook nog enkele dingetjes in de apache config (httpd.conf) aanpassen.

Veel succes!

  • oXygeN
  • Registratie: November 1999
  • Laatst online: 16-04 21:07

oXygeN

oftewel oxje...

Heb je glibc wel installed?

\o/


  • RemcoX
  • Registratie: Mei 2000
  • Laatst online: 14-02 20:05
Vergeten op te geven waar dat hij deze bestanden kan vinden, lijkt me zo:?
Euh, moet je dat aangeven dan? En zo ja, hoe? Ik doe nou:
code:
1
./configure --prefix=/www --activate-module=src/modules/php4/libmodphp4.a

Verwijderd

Ik heb Apache al geinstalleerd, is het mogelijk om nu dan nog MySQL te installeren. Of moet ik dan persé apache opnieuw compileren?

  • mavink
  • Registratie: April 2000
  • Laatst online: 24-11-2025
Apache is een webserver. Mysql een databaseserver. Hoe kom je op het idee dat die iets met elkaar te maken hebben :?

Het antwoord is dus: nee, je hoeft apache niet opnieuw te compileren.

Verwijderd

Hmmz, dan zie ik het dus helemaal verkeerd. :)
Ik dacht dat als je php in combinatie met MySQL wilt gebruiken je dat ook ff tegen apache moet zeggen. En dat je dan direct ook maar even aan apache moet vertellen waar MySQl staat. Maar dat is dus niet zo :?

  • mavink
  • Registratie: April 2000
  • Laatst online: 24-11-2025
Als je php als module compileert hoef je alleen php opnieuw te doen. Handig he?

Verwijderd

Ok tnx, dat wou ik ff weten. :o

  • pinball
  • Registratie: Oktober 1999
  • Niet online

pinball

Electric Monk

BoerQ: Eigenlijk zag je het dus wel goed.
Als je php statisch gebruikt in apache (dus niet als module) moet je php opnieuw compilen om mysql support in te bouwen, en daarna apache opnieuw compilen om die vernieuwde php te gebruiken.

Whenever you find that you are on the side of the majority, it is time to reform.


  • mavink
  • Registratie: April 2000
  • Laatst online: 24-11-2025
En dat is dus weer de reden dat ze die modules hebben uitgevonden :) Je kunt apache en alle modules geheel apart compileren. Dus apache upgraden zonder php opnieuw te compileren is geen probleem, en andersom ook niet.

  • Passenger
  • Registratie: Januari 2000
  • Laatst online: 21-04 09:44
En waar vind ik die php module? heb wel op modules.apache.org gekeken, maar daar kan ik m nie egt vinden... :?

  • Passenger
  • Registratie: Januari 2000
  • Laatst online: 21-04 09:44
anyone?

  • shadax
  • Registratie: Mei 2000
  • Niet online
http://www.php.net/downloads.php

Source downloaden en dan kan je kiezen of je hem static of dynamic compileert.
Pagina: 1