RE: frustrating *dumb* problem getting php to work under apache

From: Timms, Simon (STimms_at_petro-canada.ca)
Date: 08/12/03

  • Next message: Markie: "Re: Missing TIFF library?"
    To: 'tb' <tb@material.net>, freebsd-questions@freebsd.org
    Date: Tue, 12 Aug 2003 14:24:53 -0600
    
    

    humm, that does sound frustrating and you seem to be doing everything right.

    Did you install php or mod_php?

    Are you restarting apache after you change your httpd.conf?

    Are your php pages .php or .php3 or .php4?

    -----Original Message-----
    From: tb [mailto:tb@material.net]
    Sent: Tuesday, August 12, 2003 1:54 PM
    To: freebsd-questions@freebsd.org
    Subject: frustrating *dumb* problem getting php to work under apache

    hi, all --

    i know this is a FAQ; in fact, it's *such* a FAQ that i've found dozens
    and dozens and dozens of FAs -- none of which have worked for me. and i
    *really* have tried before asking here. :/ and if i got djbdns, qmail
    and procmail working with maildir, i can't be too hopeless. or lazy. :)

    the goal: apache + php (under 4.8). the facts: apache, mysql, and php
    installed nicely. the problem: php doesn't render -- browsers either
    krash (konqueror), show php code, or ask me if i want DL the unknown
    document. php renders fine when i look at other sites, and i get the
    same (i.e., raw code) results looking at my host from an OSX box, so
    it's a server-config problem. as things stand, my httpd.conf is plain-
    vanilla *except for these two lines...

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

    ...at ~line 634 (maybe relevant because of the order in which various
    items load?). however, httpd.conf is plain-vanilla now because i have
    a loooong set of backed-up variations on it, which have included ex-
    periments like subsets of...

         LoadModule php_module modules/mod_php.so
         LoadModule php3_module modules/libphp3.so /* for PHP 3 */
         LoadModule php4_module modules/libphp4.so /* for PHP 4 */
         LoadModule perl_module modules/libperl.so

    ...both inside and outside of <IfDefine SSL> [...] </IfDefine>. and
    i've tried lots of other stuff besides.

    what i have now is an install that works, except for this one pathetic
    problem, basd on the instrux here -- which worked perfectly:
         http://www.freebsdforums.org/forums/showthread.php?threadid=12419

    i've hunted through /var/log for klews about why it's not working.

    i'd be happy to provide all kind of infodumps, but it seemed like a
    clear statement of the problem might be a good way to begin. for now,
    the basics:

    uname -a
         FreeBSD <...> 4.8-RELEASE-p1 FreeBSD 4.8-RELEASE-p1 #0: Sat Aug 9
         22:22:39 EDT 2003 <...>:/usr/src/sys/compile/EKB030809 i386
              -- custom-compiled for pcm support on an i810 :)

    httpd -v
         Server version: Apache/1.3.27 (Unix)
         Server built: Aug 12 2003 13:28:32

    httpd -l
         Compiled-in modules:
           http_core.c
           mod_so.c
         suexec: disabled; invalid wrapper /usr/local/sbin/suexec

    php -v
         PHP 4.3.1 (cli) (built: Aug 12 2003 13:36:26)
         Copyright (c) 1997-2002 The PHP Group
         Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies

    openssl version
         OpenSSL 0.9.7a Feb 19 2003

    any advice would be much appreciated!

    thanks,
    t

    _______________________________________________
    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"

                             ********************

    This email communication is intended as a private communication for the sole
    use of the primary addressee and those individuals listed for copies in the
    original message. The information contained in this email is private and
    confidential and if you are not an intended recipient you are hereby
    notified that copying, forwarding or other dissemination or distribution of
    this communication by any means is prohibited. If you are not specifically
    authorized to receive this email and if you believe that you received it in
    error please notify the original sender immediately. We honour similar
    requests relating to the privacy of email communications.

    Cette communication par courrier électronique est une communication privée à
    l'usage exclusif du destinataire principal ainsi que des personnes dont les
    noms figurent en copie. Les renseignements contenus dans ce courriel sont
    confidentiels et si vous n'êtes pas le destinataire prévu, vous êtes avisé,
    par les présentes que toute reproduction, tout transfert ou toute autre
    forme de diffusion de cette communication par quelque moyen que ce soit est
    interdit. Si vous n'êtes pas spécifiquement autorisé à recevoir ce courriel
    ou si vous croyez l'avoir reçu par erreur, veuillez en aviser l'expéditeur
    original immédiatement. Nous respectons les demandes similaires qui
    touchent la confidentialité des communications par courrier électronique.
    _______________________________________________
    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: Markie: "Re: Missing TIFF library?"

    Relevant Pages

    • RE: Xfree86 Config Problems
      ... If you do install kde from ... As for checking for multiple config files, ... This email communication is intended as a private communication for the sole ... Cette communication par courrier électronique est une communication privée à ...
      (freebsd-questions)
    • RE: Apache + PHP Issue
      ... AddType application/x-httpd-php .php ... This email communication is intended as a private communication for the sole ... Cette communication par courrier électronique est une communication privée à ... Les renseignements contenus dans ce courriel sont ...
      (freebsd-questions)
    • RE: Xfree86 Config Problems
      ... If you do install kde from ... > This email communication is intended as a private communication for the ... Les renseignements contenus dans ce courriel ... > forme de diffusion de cette communication par quelque moyen que ce soit ...
      (freebsd-questions)
    • RE: [PHP] Xampp question, pretty much 0T
      ... I suggest you look into VMWare. ... versions (player, server, etc) if you don't want Workstation (which I ... [PHP] Xampp question, pretty much 0T ... recommended it to me when I asked for an easy install of AMP. ...
      (php.general)
    • HOWTO: FreeTDS for Newbies (almost complete)
      ... One way to do that is to install FreeTDS, recompile PHP, ... You can go to freetds.org and install the RPMs on Unix or Linux ...
      (comp.lang.php)