Re: [PHP] PHP3 and PHP4 together

[email protected] (PHP user) Fri, 08 Dec 2000 08:16:11 -0200 (BRDT)
Newsgroups php.migration
Message-ID <[email protected]>
Hi,

I need because i want run phpChat and I dont know why it doesn't run in PHP4. I 
have others applications thar was projected for php3 and they run very fine in 
php4. But with phpChat no.

Regards,
Jairo 


Cópia Pavel Jartsev <[email protected]>:

> PHP user wrote:
> > 
> > Hi all,
> > 
> > Can I compile/install php3 and php4 together as apache module ?
> > I'm using:
> > Apache 1.3.14
> > PHP 4.0.3pl1
> > PHP 3.0.15
> > Both PHP's with: ldap, xml, mysql, imap, etc
> > 
> 
> >From INSTALL file of php-tarball:
> --------------------------
> To enable it, configure PHP 3 and PHP 4 to use APXS (--with-apxs) and 
> the necessary link extensions (--enable-versioning). Otherwise, all
> standard    
> installations instructions apply. 
> For example:  
>  $ ./configure \
>    --with-apxs=/apache/bin/apxs \
>    --enable-versioning \
>    --with-mysql \
>    --enable-track-vars
> --------------------------
> 
> It worked this way for me.
> 
> But why to use both of php-modules?
> Maybe it's better to use only php4 and force Apache 
> to use for .php and .php3 files mod_php4 by this line in httpd.conf:
> 
> AddType application/x-httpd-php .php .php3
> 
> 
> 
> Hope this helps.
> :)
> 
> -- 
> Pavel a.k.a. Papi
>