Best way to install multiple versions of Apache, PHP and MySQL on a single FreeBSD host

Posted by Mikael Roos on Server Fault See other posts from Server Fault or by Mikael Roos
Published on 2010-05-26T15:16:18Z Indexed on 2010/05/26 15:21 UTC
Read the original article Hit count: 360

Filed under:
|
|
|
|

I want a test- and development-environment for web using Apache, PHP and MySQL. I need to be able to test a single web-application with multiple versions of PHP (5.2, 5.3, etc) and multiple versions of MySQL (5.0, 5.1, 5.5, etc). It shall be hosted on a FreeBSD server.

My idea is to compile each version into a directory structure and running them on separate portnumbers. For example:

opt/apache2.2-php5.2-mysql-5.0 
(httpd on port 8801, mysql on port 8802)
(directory contains each software, compiled and linked towards eachother)

opt/apache2.2-php5.3-mysql-5.1 
(httpd on port 8803, mysql on port 8804)
(and so on)

Any thoughts or suggestions of the best way to setup this type of environment?

© Server Fault or respective owner

Best way to install multiple versions of Apache, PHP and MySQL on a single FreeBSD host

Posted by Mikael Roos on Stack Overflow See other posts from Stack Overflow or by Mikael Roos
Published on 2010-05-26T14:11:25Z Indexed on 2010/05/26 14:31 UTC
Read the original article Hit count: 359

Filed under:
|
|
|
|

I want a test- and development-environment for web using Apache, PHP and MySQL. I need to be able to test a single web-application with multiple versions of PHP (5.2, 5.3, etc) and multiple versions of MySQL (5.0, 5.1, 5.5, etc). It shall be hosted on a FreeBSD server.

My idea is to compile each version into a directory structure and running them on separate portnumbers. For example:

opt/apache2.2-php5.2-mysql-5.0 
(httpd on port 8801, mysql on port 8802)
(directory contains each software, compiled and linked towards eachother)

opt/apache2.2-php5.3-mysql-5.1 
(httpd on port 8803, mysql on port 8804)
(and so on)

Any thoughts or suggestions of the best way to setup this type of environment?

© Stack Overflow or respective owner

Related posts about apache

Related posts about mysql