You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by Sascha Braun <sa...@gmx.de> on 2002/09/18 19:53:24 UTC

PHP Installation

Hi Peops,

I need some help for an PHP Installation.

I did uninstall my apache on my domain. I reinstalled it again and now want to install PHP again.

I believe all option in httpd.conf are correct. My Linux Distribution is: RedHat 7.3

I looked into the Modules Direktory from Apache and I could find an libphp4.so, but no mod_php.
I did download the final release of PHP 4.2.3 and started to ./configure it.

It told me at last something about the cgi installation and some things i dont understand,
so i feel very insecure.

Please help me a little.

Sascha Braun

Re: PHP Installation

Posted by Joerg Behrens <be...@takenet.de>.
----- Original Message -----
From: "Sascha Braun" <sa...@gmx.de>
To: "Apache Mailingliste" <us...@httpd.apache.org>
Sent: Wednesday, September 18, 2002 7:53 PM
Subject: PHP Installation


Hi Peops,

> I need some help for an PHP Installation.
> I did uninstall my apache on my domain. I reinstalled it again and now
want to install PHP again.
> I believe all option in httpd.conf are correct. My Linux Distribution is:
RedHat 7.3

> I looked into the Modules Direktory from Apache and I could find an
libphp4.so, but no mod_php.
> I did download the final release of PHP 4.2.3 and started to ./configure
it.

Warum installierst du dann nicht erneut ein RPM welches mod_php enthaelt. Da
'jeder ?' Apache einer Distri DSO Support hat sollte das kein Problem sein.
Sofern die Eintraege in der httpd.conf fehlen koennen diese leicht selber
gemacht werden.

LoadModule php4_module        libexec/libphp4.so
AddModule mod_php4.c

<IfModule mod_php4.c>
    AddType application/x-httpd-php .php .php3 .php4
    AddType application/x-httpd-php-source .phps
</IfModule>

Der Pfad zur libphp4.so  muss ist Abhaengig von deiner Apache installation.

> It told me at last something about the cgi installation and some things i
dont understand,
> so i feel very insecure.

Das liegt daran das du dem PHP Configure nicht gesagt hast welche SAPI es
erzeugen soll. Wenn man nichts angibt wird automatisch die CGI Version
kompiliert.

[o200]:/usr2/MIPS/php4 $ ./configure --help | grep -i apache
                          running the CGI version with Apache.
  --with-apxs=FILE      Build shared Apache 1.x module. FILE is the optional
                          pathname to the Apache apxs tool; defaults to
"apxs".
[...]

Das ist das fuer dich das relevante. Sofern ich mich aber recht erinnere
gibt es auf REDHAT aber kein apxs Tool. Es ist Teil des apache-dev.rpm
welches du erst installieren musst.

Ein PHP Configure wird aber scheitern an dingen wie fehlende Headerfiles der
Bibleotheken/Software auf denen PHP Extension aufsetzen die gerne haettest.

Benutze also das RPM Paket. Wenn du ruhe und Zeit hast beschaeftige dich mit
dem selber kompilieren .. auf einer Testmaschine wohlgemerkt.

Gruss
Joerg Behrens


--
TakeNet GmbH                        Mobil: 0171/60 57 963
D-97080 Wuerzburg                 Tel: +49 931 903-2243
Alfred-Nobel-Straße 20            Fax: +49 931 903-3025