Re: Install Question / Help
From: John-Paul Stewart (jpstewart_at_binaryfoundry.ca)
Date: 08/01/04
- Next message: Pascal Boivin: "How to move a partition?"
- Previous message: Robt. Miller: "Re: Alternative to PUTTY?"
- In reply to: Arthur: "Install Question / Help"
- Next in thread: Arthur: "Re: Install Question / Help"
- Reply: Arthur: "Re: Install Question / Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 01 Aug 2004 11:21:48 -0400
Arthur wrote:
> Hi All,
>
> I'm a bit of a newbie with Linux, so I'm hoping someone can help me.
>
> I want to install Squirrelmail. I believe that I have PHP4 installed:
>
> [root@nitelife conf]# rpm -qa | grep php
> php-4.3.2-8.ent
> php-odbc-4.3.2-8.ent
> php-imap-4.3.2-8.ent
> php-pgsql-4.3.2-8.ent
> php-ldap-4.3.2-8.ent
> php-mysql-4.3.2-8.ent
>
> And of course, I have apache installed. I followed the Squirrelmail
> install instructions several times, both as a package and as a .tar,
> but I've gotten noplace.
>
> Two things are happening. I tried to test my PHP4 install by creating
> a .php file and loading it into my web browser. However, rather than
> getting the PHP information that I expected to get, I only got this:
>
> <?php
> phpinfo();
> ?>
Apache isn't configured to support PHP yet. It's currently treating the
PHP file the same way it would an HTML file (just sending it to the
client) instead of running the PHP file.
In order to get the desired behaviour, you'll have to tell Apache to
load the PHP module. Find the Apache config file containing all the
other "LoadModule" directives (probably /etc/apache/httpd.conf or
/etc/apache/modules.conf) and then add this line after the last existing
"LoadModule" line:
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
Note that the path /usr/lib/... may need to be adjusted to suit your
system. 'locate libphp4.so' should tell you the right path to the
module on your system.
Now find the Apache config file containing the "AddType" directives
(likely /etc/apache/httpd.conf or /etc/apache/srm.conf) and add the line:
AddType application/x-httpd-php .php
Restart Apache and you should be good to go. (I think...I may have
missed a step...it's been a while.)
- Next message: Pascal Boivin: "How to move a partition?"
- Previous message: Robt. Miller: "Re: Alternative to PUTTY?"
- In reply to: Arthur: "Install Question / Help"
- Next in thread: Arthur: "Re: Install Question / Help"
- Reply: Arthur: "Re: Install Question / Help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|