sanchi Posted April 1, 2009 Share Posted April 1, 2009 I am new to PHP. I am trying to install PHP and make it work with Apache webserver. So far I am able to install it and it is working properly. However I am looking for some clarifications on the following: 1) can a single instance of PHP be used with two separate Apache instances. 2) I compiled PHP with the configuration parameters --with-apxs2=/opt/app/apache2/bin/apxs to install libphp5.so under /opt/app/apache2/modules directory. Is this module portable, meaning can I copy this module to second apache instance to make it work? or do I need to install two PHP instances separately one for each Apache instances? Please clarify. Thanks for any info on this. sanchi Quote Link to comment https://forums.phpfreaks.com/topic/152107-php-and-multiple-apache-webservers/ Share on other sites More sharing options...
trq Posted April 1, 2009 Share Posted April 1, 2009 Why would you be using two apache instances in the first place? Quote Link to comment https://forums.phpfreaks.com/topic/152107-php-and-multiple-apache-webservers/#findComment-798843 Share on other sites More sharing options...
sanchi Posted April 1, 2009 Author Share Posted April 1, 2009 We have two Apache instances one for secure and another for non-secure and we want to use PHP for both at the backend. Thanks, sanchi Quote Link to comment https://forums.phpfreaks.com/topic/152107-php-and-multiple-apache-webservers/#findComment-798866 Share on other sites More sharing options...
trq Posted April 1, 2009 Share Posted April 1, 2009 Fair enough. To answer your question, yes, the mod_php so is portable. You should be able to simply make a link in one directroy pointing to the actual so file. Quote Link to comment https://forums.phpfreaks.com/topic/152107-php-and-multiple-apache-webservers/#findComment-798888 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.