[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re[2]: [cobalt-users] PHP4
- Subject: Re: Re[2]: [cobalt-users] PHP4
- From: "Mike Fritsch" <mfritsch@xxxxxxxxxxxx>
- Date: Thu Aug 3 15:35:16 2000
Will this install work if you want to have PHP3 and PHP4?
----- Original Message -----
From: "Richard Kurth" <rkurth@xxxxxxxxxxxx>
To: "cobalt-userlist" <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, August 03, 2000 2:44 PM
Subject: Re[2]: [cobalt-users] PHP4
>
> PS> --- Richard Kurth <rkurth@xxxxxxxxxxxx> wrote:
> >> BP> We are on a raq3 and would like to upgrade to php4 any one
have
> >> any advice
> >> BP> on doing this.
> >>
> >> Compile it from source as a module with apex works just fine.
>
> PS> (1) Richard: when you're replying, trim the quoted text. You only
should
> PS> quote relevant parts (read: not his signature).
>
> PS> (2) There's no such thing as apex. I presume you ment apxs.
>
> PS> That would imply a DSO; the phrase "as a module" is meaningless
without the
> PS> appropriate context. PHP is almost *always* a module (except in the
rare case
> PS> where it's compiled as a cgi binary). You needed to specify whether he
should
> PS> statically compile it in to the apache binary or compile it as a DSO.
>
> PS> Finally, you didn't specify the process for compiling it from source.
>
> PS> Your response didn't really help him solve his problem at all.
>
> Your write I didn't give much information so hear is how you do it
>
> I just ran configure like this
> Don't just copy and past this type or copy one module at a time you
> don't want a bunch of spaces in it
> ./configure --prefix=/usr --with-apxs=/usr/sbin/apxs
> --with-config-file-path=/etc/httpd/conf
> --with-exec-dir=/usr/sbin/httpd --with-system-regex
> --disable-debug --with-zlib --enable-safe-mode
> --with-gdbm --with-db2 --enable-magic-quotes
> --enable-debugger --enable-track-vars --enable-sysvsem
> --with-ftp --with-imap --with-xml --with-gd=/usr/include/gd.h
> --with-ttf --with-readline --with-mysql --with-pgsql
>
> It will give you a warning about apex but ignore it.
> then do a make
> then a make install
> then you have to go to the httpd conf file and change the part
> at the top that says this put # in front of php3 module if you
> have that and add /usr in front of the path to libphp4.so and
> then do the same thing in the section below this the one with
AddModule
> mod_php4.c
>
>
> # Documentation for modules is in "/home/httpd/manual/mod" in HTML format.
>
> # Extra Modules
> #LoadModule php_module modules/mod_php.so
> #LoadModule php3_module /usr/lib/apache/libphp3.so
> #LoadModule perl_module /usr/lib/apache/libperl.so
> LoadModule php4_module /usr/lib/apache/libphp4.so
>
> # Reconstruction of the complete module list from all available modules
> # (static and shared ones) to achieve correct module execution order.
> # [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
> #ClearModuleList
>
> # Extra Modules
> #AddModule mod_php.c
> #AddModule mod_php3.c
> #AddModule mod_perl.c
> AddModule mod_php4.c
>
> Now open srm.conf and go to the line that looks like this
> # For example, the PHP3 module (not part of the Apache distribution)
> # will typically use:
> AddType application/x-httpd-php .php3 .php
> #AddType application/x-httpd-php3-source .phps
> # The following is for PHP/FI (PHP2):
> #AddType application/x-httpd-php3 .php
>
> change to the way you what to run php.
> Restart apache and you should be up and running
> To add the optimizer gust follow the directions that come with it.
>
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users