[NBLUG/talk] SquirrelMail and PHP.

Christopher Wagner chrisw at pacaids.com
Fri Apr 18 14:26:01 PDT 2003


I have that section in my httpd.conf file, pasted below:

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

I'm noticing, however, that there are files that seem to be missing..
mod_php4.c for instance, does not exist.  I have libphp4.so in
/etc/httpd/modules.  Is that all I need?  Am I missing files?  PHP will
execute the files correctly if launched from a command line it seems (ie:
php index.php).

I have this also in my httpd.conf file:

<IfDefine HAVE_PHP4>
LoadModule php4_module        modules/libphp4.so
</IfDefine>

and

<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>

I have this:

<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.php index.php4
index.php3 index.phtml index.cgi
</IfModule>

Do I need to specify these for each VirtualHost??

- Christopher Wagner
chrisw at pacaids.com

Packaging Aids Corporation - Information Systems
P.O. Box 9144
San Rafael, CA 94912-9144
http://www.pacaids.com/
(415) 454-4868 x116
 

-----Original Message-----
From: talk-admin at nblug.org [mailto:talk-admin at nblug.org]On Behalf Of
Warren Raquel
Sent: Friday, April 18, 2003 12:40 PM
To: talk at nblug.org
Subject: Re: [NBLUG/talk] SquirrelMail and PHP.


I've had that happen to me before. Does squirrelmail sill use the php3 
file extension? Can you be more specific about what looks right to you 
in the httpd.conf file? When I've run into this problem before I was 
missing Type association with the php module.
    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php .php4 .php3 .phtml
        AddType application/x-httpd-php-source .phps
    </IfModule>

Warren

Christopher Wagner wrote:

>This is probably something ridiculously simple but it's slipping by me
>here..  I've installed SquirrelMail and I've got PHP 4.1.2 set-up and I'm
>running Apache 1.3.27.  PHP looks like it's configured properly in
>httpd.conf but for some reason my php pages (like the index.php for
>SquirrelMail) keep just displaying the script itself, not actually
executing
>it..  What am I doing wrong?
>
>- Christopher Wagner
>chrisw at pacaids.com
>
>Packaging Aids Corporation - Information Systems
>P.O. Box 9144
>San Rafael, CA 94912-9144
>http://www.pacaids.com/
>(415) 454-4868 x116
> 
>_______________________________________________
>talk mailing list
>talk at nblug.org
>http://nblug.org/mailman/listinfo/talk
>  
>


_______________________________________________
talk mailing list
talk at nblug.org
http://nblug.org/mailman/listinfo/talk



More information about the talk mailing list