Connecting Tech Pros Worldwide Forums | Help | Site Map

Compile Apache 2.0.59 with PHP4.4.5?

Newbie
 
Join Date: Aug 2007
Posts: 15
#1: Aug 23 '07
Hi Everyone!

Is there a need to compile my Apache 2.0.59 if I will use PHP4.4.5?
How can I apply my Apache to PHP4.4.5 or I might ask how will I use my Apache properly with PHP4.4.5?

This is my first time to use Apache with PHP.

Please help me.


Thanks in advance.

Jon

Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,754
#2: Aug 23 '07

re: Compile Apache 2.0.59 with PHP4.4.5?


Why would you want to use PHP4 ?

What OS are you using?
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#3: Aug 23 '07

re: Compile Apache 2.0.59 with PHP4.4.5?


Heya, Jon.

PHP installs as a shared module for Apache. You have to compile PHP with Apache already installed, but you do not have to recompile Apache to install PHP.

All you have to do is add this to your configure string for PHP:

./configure ... --with-apxs2=/path/to/apxs/usually/usr/local/apache2/bin/apxs
Newbie
 
Join Date: Aug 2007
Posts: 15
#4: Aug 23 '07

re: Compile Apache 2.0.59 with PHP4.4.5?


Quote:

Originally Posted by Atli

Why would you want to use PHP4 ?

What OS are you using?

I heard from my collegue that PHP4 has no bug and compatible with Apache 2.

Solaris 9.
Newbie
 
Join Date: Aug 2007
Posts: 15
#5: Aug 23 '07

re: Compile Apache 2.0.59 with PHP4.4.5?


Quote:

Originally Posted by pbmods

Heya, Jon.

PHP installs as a shared module for Apache. You have to compile PHP with Apache already installed, but you do not have to recompile Apache to install PHP.

All you have to do is add this to your configure string for PHP:

./configure ... --with-apxs2=/path/to/apxs/usually/usr/local/apache2/bin/apxs

Hi thanks for this. Cheers ü
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,754
#6: Aug 23 '07

re: Compile Apache 2.0.59 with PHP4.4.5?


Quote:

Originally Posted by jrefran

I heard from my collegue that PHP4 has no bug and compatible with Apache 2.

Solaris 9.

PHP 5 has been in development for quite some time and the PHP developers have done an excellent job of debugging it.
It to is indeed very compatible with Apache 2.

I would strongly recommend using PHP 5, unless you have a very good reason to use PHP 4.

Check this out GoPHP5.org
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#7: Aug 23 '07

re: Compile Apache 2.0.59 with PHP4.4.5?


Note that PHP 4 has been DISCONTINUED.

I'd recommend going with PHP 5. If you `make test`, and you get lots of FAILs, you can always change your configuration parameters, or even downgrade, before you install anything.

P.S., running PHP 5.2.3 with Apache 2.2.4 on a MacBook (*n?x) just fine over here :)
With GD!
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,754
#8: Aug 23 '07

re: Compile Apache 2.0.59 with PHP4.4.5?


Just ran into this article while checking out Solaris...
SAMP (Solaris, Apache 2, MySQL 5, and PHP 5) Setup for Solaris 10 OS and Solaris Express
Reply