Toon posts:

[redhat 9.0] libphp4.so wordt niet gecompileert

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hallo mensen,

Ik zit met een probleempje.. ik wil php aan mijn apache(2.0) toevoegen. dus ik naar de site van php toe (wat een toeval ;) ) en volg de instructies om de boel goed te installeren.

http://www.php.net/manual/en/install.apache2.php

dus ik compileer php 4.3.4 en ik daarna httpd.conf editten en apache starten.. dat moet goed gaan. is me vaker gelukt ;) maar nu kan ik nergens libphp4.so vinden. hij is nieteens gebuild.

Misschien komt het omdat er een oudere versie van php op het systeem heeft gedraaid.

Hoe kan ik er voor zorgen die ik alsnog libphp4.so kan krijgen en php kan draaien?

Groetjes van Martijn

  • igmar
  • Registratie: April 2000
  • Laatst online: 23-02 20:52

igmar

ISO20022

Door om te beginnen eens te posten wat er mis gaat, en wanneer. Foutmeldingen in deze zijn uitermate handig, evenals distribinfo, etc, etc.

Lees te tweede de FAQ betreft het doen van een post met de juiste info, met genoemde informatie kan niemand wat.

Verwijderd

Topicstarter
Ik draai alles op RedHat 9.0..

Het rare is is dat ik geen foutmeldingen krijg. alleen de foutmelding (heel logisch) dat apache de module niet kan laden, want die is er juist niet.. 8)7

De libexec directory (/usr/local/apache2/libexec) is nieteens aangemaakt bij het builden... bij een opdracht als "find / -name libphp4.so" vind hij alleen maar de oude module. als ik die wil laden bij het starten van apache gaat dat natuurlijk niet omdat het een andere versie is. 4.2.1 ofzo.

het is misschien wel het probleem dat er ergens "sporen" zijn van de oude PHP installatie waardoor de installer het niet nodig vindt om het spul nog een keer te installeren.

Dit is de output van mijn "make install"

[root@gandalf php-4.3.4]# make install
Installing PHP SAPI module: cgi
Installing PHP CGI into: /usr/local/bin/
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - already installed: 1.1
[PEAR] Console_Getopt - already installed: 1.0
[PEAR] PEAR - already installed: 1.3b3
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] DB - already installed: 1.5.0RC2
[PEAR] HTTP - already installed: 1.2.1
[PEAR] Mail - already installed: 1.1.1
[PEAR] Net_SMTP - already installed: 1.2.3
[PEAR] Net_Socket - already installed: 1.0.1
[PEAR] XML_Parser - already installed: 1.0.1
[PEAR] XML_RPC - already installed: 1.0.4
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist

hopelijk is dit voldoende info..

ontzettend bedankt alvast

Groetjes Martijn

  • eXite
  • Registratie: April 2003
  • Laatst online: 09-02 11:32
Wat zijn de flags bij je configure?

Ja, ik bedoel, je kunt er wel moeilijk over doen, maar zo is het toch?


  • igmar
  • Registratie: April 2000
  • Laatst online: 23-02 20:52

igmar

ISO20022

Verwijderd schreef op 21 november 2003 @ 12:21:
Dit is de output van mijn "make install"

[root@gandalf php-4.3.4]# make install
Installing PHP SAPI module: cgi
Installing PHP CGI into: /usr/local/bin/
Je hebt een cgi versie, geen apache module. Zie de uitleg in o.a. de PHP docs.

Verwijderd

Topicstarter
bij mijn configure heb ik ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --libexecdir=/usr/local/apache2/libexec

Wel vreemd dat hij alleen maar CGI doet.. het is gewoon de laatste souce die ik heb van php.. die moet toch compleet zijn (voor zover hij compleet kan zijn :S)

Verwijderd

http://www.php.net/manual/nl/install.apache2.php

[rml][ debian] Apache2 en PHP4[/rml]


PHP 4.3.4 on AIX 5.2 with Apache2

This one got me puzzled for quite some time. Part of my configure was:
configure --with-apxs2=/usr/local/apache2/bin/apxs

after make; make test the make install fails on not being able to find libphp4.so
It's the apxs program that handles the install and somehow fails.
My ./libs directory contains 2 files: libphp4.a (6 Mb) and libphp4.la (862 bytes).
No libphp4.so file to install.

Here's the secret: look in a ./.libs directory (note the dot)
there you'll find the libphp4.so file. Copy it yourself to apache2/modules and you'll have a working PHP

  • Eastern
  • Registratie: Augustus 2000
  • Laatst online: 19-02 13:26
doe het ff opnieuw en type voordat je php maked eerst:

code:
1
make clean


Dan wordt alle meuk opgeruimd en maak je een schone compile. Soms geeft het problemen om snel ff extra functionaliteit in te bouwen. Suc6

Verwijderd

Topicstarter
joepie! nu werkt het :D

dankjewel! waar was ik toch zonder tweakers :)

Groetjes van Martijn

en kom eens genieten van de mooie server ;)
Pagina: 1