Re: Apache, PHP, and SquirrelMail

From: Robin Schoonover (end_at_endif.cjb.net)
Date: 11/05/03

  • Next message: Jon Reynolds: "cannot find -lsysdeps error"
    Date: Tue, 4 Nov 2003 20:55:10 -0700
    To: "Neil Hawkins" <nchawkins90@hotmail.com>
    
    

    On Wed, 05 Nov 2003 03:44:04 +0000, "Neil Hawkins"
    <nchawkins90@hotmail.com> wrote:
    > I am new to FreeBSD and am trying to figure a few things out. I have
    > installed QMAIL, APACHE, PHP4, and SquirrelMail. Apache seems to be
    > working fine because I can browse the directory lising for
    > /usr/local/www/data folders. However, when I try to browse the
    > SquirrelMail folder, it just displays the text code of the index.php
    > file. I am assuming that PHP4 is either not installed correctly, not
    > running, or not configured appropriately. Can someone help me out here?
    >

    You need to tell apache about mod_php4. In apache2, I have these extra
    lines in the configuration file.

    LoadModule php4_module libexec/apache2/libphp4.so

    DirectoryIndex index.html index.html.var index.php

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    You don't want to have 'AddHandler php .php' in httpd.conf In an earlier
    version of php4, I did have that and it worked fine, but when I upgraded
    php4 it stopped working (showed code only like it is for you), so I had to
    take out that line.

    -- 
    Robin Schoonover (aka End)
    #
    # Actual newspaper headline:
    #     Something Went Wrong in Jet Crash, Expert Says
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Jon Reynolds: "cannot find -lsysdeps error"

    Relevant Pages

    • Re: apache13 signal 11 with php4 - with or without ssl
      ... openssl port removed and all dependent ports ... > can start apache and it seems more or less stable. ... > add a php4 site, run apachectl graceful and it doesn't ... I also had some crash issues with PHP 4.3.5. ...
      (freebsd-current)
    • Re: PHP files downloading, rather than parsing
      ... Tryed reloading Apache? ... Using Webmin, it looks to me like the PHP mime-type is configured correctly, ... php4-cli P-T command-line interpreter for the php4 scripting ...
      (Ubuntu)
    • Apache, PHP, and SquirrelMail
      ... installed QMAIL, APACHE, PHP4, and SquirrelMail. ... However, when I try to browse the SquirrelMail folder, it just ...
      (freebsd-questions)
    • Re: [PHP] Apache asks to save php file?
      ... Just did a new install on FreeBSD 6.0 of Apache 2, ... PHP4 and MySQL, but the browser asks to save a PHP ... the compile began however. ...
      (php.general)
    • Re: simultaneous apache 1.3x & 2.x
      ... >> get crashes in PHP. ... >> squirrelmail requirements it seems that apache 1.3 is the natural ... > Doesn't squirrelmail require some IMAP version or another? ...
      (freebsd-questions)