Re: problem w/ php3+php4

From: Greg Panula (greg.panula_at_dolaninformation.com)
Date: 07/24/03

  • Next message: Scott Mitchell: "Re: Weird USB lockup with Linksys USB100TX NIC"
    Date: Thu, 24 Jul 2003 05:01:31 -0500
    To: Andrey Alekseyev <uitm@blackflag.ru>
    
    

    Andrey Alekseyev wrote:
    >
    > Hello,
    >
    > Has anybody experienced any problems with php3+php4 combo
    > in systems newer than 4.6-STABLE (as of June-Aug 2002)?
    >
    > Briefly, the problem looks very similar to what is
    > stated in the following reports:
    >
    > http://groups.google.com/groups?q=%22php3+kills+apache%22&hl=ru&lr=&ie=UTF-8&oe=UTF-8&selm=wqz8yrfzbug.wl%40hurt.theclones.net&rnum=1
    > http://groups.google.com/groups?q=%2Bfreebsd+%2B4.8+%2Bphp3&hl=ru&lr=&ie=UTF-8&oe=UTF-8&selm=b41uk8%241qnklv%241%40fu-berlin.de&rnum=3
    >
    > I'm stumped :) Any information would be much appreciated.
    >

    I've got a box running 4.7-STABLE (Oct 15th 2002) with both PHP4 & PHP3
    installed and working without problems. Don't remember much about the
    setup... think the only hassle was getting the right the parser to
    handle the php3 & php4 pages.

    Here is the relavent part from my httpd.conf
    (load module statements)
    # php3 is needed for the helpdesk apps
    LoadModule php3_module libexec/apache/libphp3.so
    # ldap is for provide authenication against Active Directory
    LoadModule auth_ldap_module libexec/apache/auth_ldap.so
    <IfDefine SSL>
    LoadModule ssl_module libexec/apache/libssl.so
    LoadModule php4_module libexec/apache/libphp4.so
    </IfDefine>

    (apache runs with ssl enabled, but in case it gets restarted without ssl
    enabled at least the helpdesk will still work.)

    AddModule mod_php3.c
    AddModule auth_ldap.c
    <IfDefine SSL>
    AddModule mod_ssl.c
    AddModule mod_php4.c
    AddModule mod_dav.c
    AddModule mod_auth_external.c
    </IfDefine>

    (DirectoryIndex stuff)
    # DirectoryIndex: Name of the file or files to use as a pre-written HTML
    # directory index. Separate multiple entries with spaces.
    #
    <IfModule mod_dir.c>
        <IfModule mod_php3.c>
            <IfModule mod_php4.c>
                DirectoryIndex index.php index.php3 index.html
                AddType application/x-httpd-php3 .php3
                AddType application/x-httpd-php .php .php4
                AddType application/x-httpd-php-source .phps
            </IfModule>
            <IfModule !mod_php4.c>
                DirectoryIndex index.php3 index.html
            </IfModule>
        </IfModule>
        <IfModule !mod_php3.c>
            <IfModule mod_php4.c>
                DirectoryIndex index.php index.html
            </IfModule>
            <IfModule !mod_php4.c>
                DirectoryIndex index.html
            </IfModule>
        </IfModule>
    </IfModule>

    ~~~~

    ## PHP info ##

    pkg_info | grep -i php
    adodb-2.50 A database library for PHP4
    mod_php3-3.0.18_3 PHP3 module for Apache
    mod_php4-4.2.3 PHP4 module for Apache

    good luck,
      greg
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Scott Mitchell: "Re: Weird USB lockup with Linksys USB100TX NIC"

    Relevant Pages

    • Re: PHP/Apache Configuration
      ... Try altering the LoadModule statement to refer to php5apache2_2.dll and see ... After that also try removing the AddModule line. ... I added my PHP directory, C:/PHP5, to my PATH ... If I comment out the above two statemens, Apache will start. ...
      (comp.lang.php)
    • Re: Apache 1.3.41
      ... I also ended up rebuilding apache to be on the safe side and it started ... AddModule mod_mmap_static.c ... AddIcon /icons/binary.gif .bin .exe ... AddLanguage da .dk ...
      (freebsd-questions)
    • Re: Apache and Php
      ... Should I just put a hold on apache and php until I feel ... what I did was issue the following command: ... AddModule mod_macro.c ...
      (Debian-User)
    • How do I know that PHP is running
      ... directives for running PHP as a loaded module and as CGI as noted in the ... AddModule mod_php4.c ... I did both and Apache doesn't like it. ...
      (comp.lang.php)
    • stable mod_python apache not working
      ... I am unable to get the example from the mod_python tutorial working with ... apache, on debian stable. ... No error in the server logs. ... AddModule mod_macro.c ...
      (Debian-User)