Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Code on Separate Server From Apache?

This is something I've never seen done, and I'm not turning up in my research, but my boss is interested in the idea. We are looking at some load balancing options, and wonder if it is possible to have apache and php installed on multiple servers, managed by a load balancer, but have all the actual php code on one server, with the various apache servers pointing to the one central code base?

like image 924
Amy Anuszewski Avatar asked Jul 17 '26 18:07

Amy Anuszewski


1 Answers

For instance NFS mounts are certainly possible, but I wouldn't recommend it. A lot of the advantage of loadbalancing is lost, and you're reintroducing a single point of failure. When syncing code, and rsync cronjob can handle itself very nicely, or a manual rsync on deployment can be done.

What is the reason you would want this central code base? I'm about 99% sure there is a better solution then a single server dishing out code.

like image 101
Wrikken Avatar answered Jul 19 '26 08:07

Wrikken



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!