Mailinglist Archive: opensuse (5100 mails)

< Previous Next >
Re: [SLE] installing php on SuSE 9.1 and Apache 2
  • From: Bruno Santos <bvsantos@xxxxxxxxxxxxxxxx>
  • Date: Tue, 01 Jun 2004 17:39:36 +0100
  • Message-id: <40BCB148.9070303@xxxxxxxxxxxxxxxx>
poeml@xxxxxxxxxxx wrote:

On Mon, May 24, 2004 at 06:42:41AM -0700, Prabu Subroto wrote:

Dear my friends...

I have a new machine for development server.
This machine has SuSE 9.1 and Apache 2.

I want to install PHP4 for Apache 2 on this machine
(apache2-mod_php4).
I have installed the package "apache2-mod_php4) with
YaST2. I restarted the apache2 but I didn't see php
module being loaded.
Here is what on my machine:
"
patrix:/localhome/patrixlinux # rcapache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to
terminate) done
Starting httpd2 (prefork) done
patrix:/localhome/patrixlinux #
"


How do you tell that it's not loaded?


Please tell me what should I do to install php module
on my Apache 2 server.

Thank you very much.


Peter

Hello.

Well, that message is not going to tell you nothing.

put this script in /srv/www/htdocs (or where you've defined the document_root) :

<?php phpinfo(); ?>

and give the file any name ( info.php is just fine ).

in any browser, just type:

http://localhost/info.php (or the name you've give the file)

you should see a document with all the variables of PHP and apache and any module that is loaded.

if nothing happens, go to YAST add/remove packages and then search for php

a lot of modules should apear and you should see witch ones are installed and loaded

other way, still in YAST, on network services, you should press the HTTP Server and there you can configure witch modules are loaded or not.

Regards

Bruno Santos

< Previous Next >
This Thread
References