LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2013, 08:41 PM   #1
ErwinSawyer
LQ Newbie
 
Registered: Jun 2013
Location: Philippines
Posts: 3

Rep: Reputation: Disabled
Talking 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!
 
Old 06-06-2013, 10:26 PM   #2
shane25119
Member
 
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 654

Rep: Reputation: 53
I'm a bit confused as to why you would want to do so. Why not just put them on the same server?
 
Old 06-07-2013, 12:00 AM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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.
 
Old 06-07-2013, 01:17 AM   #4
ErwinSawyer
LQ Newbie
 
Registered: Jun 2013
Location: Philippines
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shane25119 View Post
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...
 
Old 06-07-2013, 10:04 AM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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.
 
Old 06-07-2013, 06:24 PM   #6
ErwinSawyer
LQ Newbie
 
Registered: Jun 2013
Location: Philippines
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frieza View Post
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Open edit Php file problem (PhP apache installed) waerfwe Programming 3 06-30-2011 09:29 AM
php in apache problem hack124x768 Linux - Networking 6 02-17-2005 04:56 PM
apache php problem irvken Linux - Software 1 07-08-2004 02:51 AM
Help w/ a PHP/Apache problem ming0 Linux - Software 10 04-14-2004 09:12 AM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration