[RedHat 6.2] PHP installeren

Pagina: 1
Acties:

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
[pas op, Linux-newbie]

Ik heb RedHat 6.2 geinstalleerd, en daar draait nu standaard die Apache webserver op. Dit werkt allemaal perfect. Ook MySQL lijkt het goed te doen.
Maar nu moet PHP 4 er nog op. Kan iemand mij stap voor stap vertellen hoe dat precies moet.

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Die had ik ook al gevonden, misschien kan ik die wel es doornemen, en doen wat erin staat. Maar kan het niet simpeler. Zoals met MySQL, hoefde ik alleen een RPM te installeren.

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • Apache
  • Registratie: Juli 2000
  • Laatst online: 17-08 14:28

Apache

amateur software devver

www.rpmfind.com

en de php rpm zoeken :)

If it ain't broken it doesn't have enough features


  • banaan-X
  • Registratie: Februari 2001
  • Niet online
Op www.linuxnewbie.nl staat ook een goede 'les' om Apache met php en mysql te installeren.

  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Thanks voor alle hulp, ik ga het morgen proberen, eerst: :Z :Z :Z

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • RvdB
  • Registratie: Februari 2001
  • Laatst online: 11-02-2025

Athlon 800 @ A7V133; 256MB; 40GB, GeForce2MX-GS 205/205


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Ik heb die site door genomen, maar helaas loop ik vast bij ./configure. Ik snap ook niet dat dit zo moeilijk is. Of zie ik het gewoon zo in?
Wat ik nu heb ik Apache/1.3.14 en MySQL geinstalleerd (met RPM's gedaan).
Maar nu wil ik alleen nog de nieuwste PHP.

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • RvdB
  • Registratie: Februari 2001
  • Laatst online: 11-02-2025
Download anders eens de nieuwste versies van php, mysql, ssl en apache (de tarballs, zie bovengenoemde site linuxbeginners.nl) en installeer precies volgens de instructies op bovengenoemde site. Dat MOET lukken.

Athlon 800 @ A7V133; 256MB; 40GB, GeForce2MX-GS 205/205


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Maar de dir's die hier staan:

./configure --with-apxs=/usr/local/apache/bin/apxs
--with-config-file-path=/usr/local/apache/conf
--with-mysql=/usr/local
--with-system-regex

komen niet echt overeen met die van mij. :?

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Hij geeft als error dat hij die MySQL header files niet kan vinden in die dir /usr/local
Waar staan die dan wel?


edit: Ik heb nu dit gedaan:

./configure --with-config-file-path=/usr/local/apache/conf
--with-mysql=/usr/bin
--with-system-regex

Misschien werkt dat wel.

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Uuhmm, ik moet ook een APXS path opgeven, wat is dat precies?

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • RvdB
  • Registratie: Februari 2001
  • Laatst online: 11-02-2025
Van de PHP FAQ op www.php.net:

6.11. When I try to build PHP using --with-apxs I get strange error messages
There are three things to check here. First, for some reason when Apache builds the apxs Perl script, it sometimes ends up getting built without the proper compiler and flags variables. Edit your apxs (sometimes found in /usr/local/apache/bin/apxs or /usr/sbin/apxs) and check for these lines:
my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
If this is what you see, you have found your problem. Change these lines to say:
my $CFG_CFLAGS_SHLIB = '-fpic -DSHARED_MODULE'; # substituted via Makefile.tmpl
my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = q(-shared);# substituted via Makefile.tmpl
The second possible problem should only be an issue on RedHat-6.1/6.2. The apxs script RedHat ships is broken. Look for this line:
my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install
If you see the above line, change it to this:
my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install
Last, if you reconfigure/reinstall Apache, add a 'make clean' to the process after './configure' and before 'make'.

Athlon 800 @ A7V133; 256MB; 40GB, GeForce2MX-GS 205/205


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Ik denk dat het probleem is dat ik Apache en MySQL via die RPM's heb geinstalleerd, en daarom die paden gewoon niet kloppen ofzo. Maar Apache en MySQL draaien verder perfect!

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • RvdB
  • Registratie: Februari 2001
  • Laatst online: 11-02-2025
Daarom is het wellicht verstandig(er) opnieuw te starten met de volledige installatie van apache, incl. mysql, php en ssl volgens de linuxbeginners.nl.

Athlon 800 @ A7V133; 256MB; 40GB, GeForce2MX-GS 205/205


  • jelmervos
  • Registratie: Oktober 2000
  • Niet online

jelmervos

Simple user

Topicstarter
Op maandag 04 juni 2001 14:31 schreef RvdB het volgende:
Daarom is het wellicht verstandig(er) opnieuw te starten met de volledige installatie van apache, incl. mysql, php en ssl volgens de linuxbeginners.nl.
Oke, doe ik dat. Lijkt me een goed plan. :)
Maar dan lijkt het mij toch dat ik die ouwe Apache eraf moet gooien? En die ouwe MySQL ook. Hoe doe ik dat dan?

"The shell stopped unexpectedly and Explorer.exe was restarted."


  • RvdB
  • Registratie: Februari 2001
  • Laatst online: 11-02-2025
Ja, die kan je er beter eerst af gooien. Moet met rpm kunnen, doe eens man rpm.

Athlon 800 @ A7V133; 256MB; 40GB, GeForce2MX-GS 205/205

Pagina: 1