LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache and PHP problem Please Help (https://www.linuxquestions.org/questions/linux-server-73/apache-and-php-problem-please-help-4175465051/)

ErwinSawyer 06-06-2013 08:41 PM

Apache and PHP problem Please Help
 
I`m Building 2 web server using Suselinux and i would like to know that it is possible to combine 2 server..

let say server1 i have apache2 on server1 in server2 i have PHP5 only.. it is possible to combine this thing..

i already try the NFS server but failed did not work...

i appreciated any kind of suggestion... Thank You!:)

shane25119 06-06-2013 10:26 PM

I'm a bit confused as to why you would want to do so. Why not just put them on the same server?

frieza 06-07-2013 12:00 AM

probably not, no, php runs as a module of Apache, so separating php and Apache in such a way would be horribly inefficient at best, impossible at worst, that being said, you CAN keep your php SCRIPTS on an NFS server by simply pointing the document root of the web server at the NFS mount point in your Apache configuration file.

ErwinSawyer 06-07-2013 01:17 AM

Quote:

Originally Posted by shane25119 (Post 4966977)
I'm a bit confused as to why you would want to do so. Why not just put them on the same server?

actually i know that it is impossible i just want to know if theirs a way to combine with separate php and apache.
i`m doing this coz this is the task that management give it to me and also our client want this kind of setup...

frieza 06-07-2013 10:04 AM

i've worked in a situation where i created an environment as i mentioned in my previous post, apache/php on one server, document root on another via nfs, you could have apache/php on that as well, but as even you admit, what the client wants is impossible, so i guess the best answer is to tactfully explain WHY it's impossible and propose a more sensible alternative.

ErwinSawyer 06-07-2013 06:24 PM

Quote:

Originally Posted by frieza (Post 4967261)
i've worked in a situation where i created an environment as i mentioned in my previous post, apache/php on one server, document root on another via nfs, you could have apache/php on that as well, but as even you admit, what the client wants is impossible, so i guess the best answer is to tactfully explain WHY it's impossible and propose a more sensible alternative.

Thank you for suggesting... i hope they can understand.. that it is really impossible for that kind of setup...


All times are GMT -5. The time now is 10:38 AM.