jaycangel
asked on
How to install multiple versions of apache, php and mysql on same server
I am setting up a test environment (thinking of using ubuntu server), on it I would like to install multiple versions of apache, mysql and php.
I'd like to install each of the above into a folder structure like this
apache1_php4 (listening to port 81)
apache1_php5 (listening to port 82)
apache2_php4 (listening to port 83)
apache2_php5 (listening to port 84)
mysql4 (listening to 3307)
mysql5 (listening to 3308)
I would like all of the apache folders to be viewing the same htdocs folder. So that I can easily test a website and see how it runs under different versions.
Is this all possible? Is it easy to do? I would like each of the installs required files to be all under the folder. So if I want to add more versions (say a php6, or mysql6 in the future) it is easy to do so, and none will be clashing with something else.
Thanks for your help
I'd like to install each of the above into a folder structure like this
apache1_php4 (listening to port 81)
apache1_php5 (listening to port 82)
apache2_php4 (listening to port 83)
apache2_php5 (listening to port 84)
mysql4 (listening to 3307)
mysql5 (listening to 3308)
I would like all of the apache folders to be viewing the same htdocs folder. So that I can easily test a website and see how it runs under different versions.
Is this all possible? Is it easy to do? I would like each of the installs required files to be all under the folder. So if I want to add more versions (say a php6, or mysql6 in the future) it is easy to do so, and none will be clashing with something else.
Thanks for your help
ASKER
Its not the sharing of the directory that i'm worried about - it's the installing of the seperate versions. How would I do that?!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks dasmaer, what about MySql and PHP?
Does anyone know of any HOWTO's to install them all seperately.
What about making MySQL listen on a different port? I know how to do that on apache but is it easy with mysql?
Thanks
Jason
Does anyone know of any HOWTO's to install them all seperately.
What about making MySQL listen on a different port? I know how to do that on apache but is it easy with mysql?
Thanks
Jason
On Ubuntu the htdocs is located at /var/www, across mulitple Apache servers its the same location for each anyway so you wouldn't need to worry so much.