top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to Scale Out Apache 2

+2 votes
263 views

I'm hoping to hear from users who have experience scaling out (adding apache servers) websites to cope with extra demand to learn from them.

My query isn't specific to any version of Apache2 and falls under the category "if I have added as much RAM, CPU, Network capacity as the server can hold how to I go about adding additional apache servers so the demand/load is spread by a LB across numerous apache servers?"

I'm particularly interested to hear how the content to serve (var/www/site1/) is kept consistent across the different servers especially if visitors to the site would be uploading content themselves.

Would having php run with mod_suphp (suPHP is a tool for executing PHP scripts with the permissions of their owners) complicate the matter as regards permissions & ownership or is there also a way to deal with it?

posted Aug 7, 2013 by Deepak Dasgupta

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+2 votes

Is it possible to use PHP 5.2.5 with Apache/2.4.6?

I have an application that was written in WAMP5 using PHP 5.2.5, and I am trying to get the application onto a CentOS server and I can't get it to work with 5.4.16.

Are there any good tutorials on using an older version of PHP with Apache?

+1 vote

I run an instance of apache under OS X which I use to pass data to PHP scripts using ajax. If I have a string such as "O'Toole" (without the double-quotes), then when the string (which I pass through encodeURIComponent in the browser) arrives in the PHP script, the single-quote is prefixed with a backslash. That is, the string above becomes "O'Toole".

I want my app to run under Win7, and I observe that there, the backslash is *not* inserted. This difference is a bit irritating, especially as I am having trouble discovering which component (browser, apache, PHP) is adding the backslash. On the whole, I'd rather not have it, but I'd settle for both platforms adding it. Then at least code common to both platforms can remove it.

+1 vote

I want to be able to run a specific php version with apache. So uninstalled apache and php then installed apache, and then built php from source to have the right version.

Now In the browser when i put an html file it works but php files do not. Can someone tell me how to link my php with apache without upgrading my php?

...