LinuxQuestions.org
Help answer threads with 0 replies.
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 10-24-2010, 11:27 AM   #1
shree24985
LQ Newbie
 
Registered: Jan 2009
Location: Mumbai
Distribution: slackware
Posts: 15

Rep: Reputation: 0
Communication between servers


Hello guys,
I have two webservers say web1 and web2, web2 server being my datacenter also.
The situation is that I have a web page form on web1 and on submitting the form the form data should be transferred to web2 and saved there.
The stored form data in web2 can also be fetched by web1 server when it needs it.

currently I am using lynx within popen as a IPC to send the data to the web2.

Please suggest me if there exist a better and efficient way to accomplish this.


Thanks.
 
Old 10-24-2010, 01:52 PM   #2
Guillermo Reisch
LQ Newbie
 
Registered: Mar 2010
Location: Montevideo
Distribution: Debian, Ubuntu, knoppix
Posts: 7

Rep: Reputation: 1
why don't use a SQL Database server ? like "postgres , mysql , etc" to store the data in other server or install the SQL Database in one of the 2 servers you have
Using a Database Server you have sincronized, safe data-changes, concurrency check and other good stuff
 
Old 10-24-2010, 02:47 PM   #3
shree24985
LQ Newbie
 
Registered: Jan 2009
Location: Mumbai
Distribution: slackware
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks Reisch,
May be I was not clear in what i was asking.

The data is indeed going to be saved in a database in a server. But i dont want to allow any other machine to connect to the database except itself.

Any other suggestions
 
Old 10-24-2010, 09:47 PM   #4
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Rep: Reputation: 18
Quote:
Originally Posted by shree24985 View Post
Thanks Reisch,
May be I was not clear in what i was asking.

The data is indeed going to be saved in a database in a server. But i dont want to allow any other machine to connect to the database except itself.

Any other suggestions
Then if you don't want any other user to connect to the database just create the database user to only connect from localhost:

CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';

and make sure that the

bind-address = 127.0.0.1

in /etc/mysql/my.cnf

Hope that helps.
 
Old 10-24-2010, 10:50 PM   #5
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
Quote:
Originally Posted by shree24985 View Post
Thanks Reisch,
May be I was not clear in what i was asking.

The data is indeed going to be saved in a database in a server. But i dont want to allow any other machine to connect to the database except itself.

Any other suggestions
Setup another host on the one server that is on an IP address not behind the load balance. Then have the HTML POST function sends to that URL that which is the one server outside the load balanced cluster. Then from what ever page that is, then have a link that returns the user back to the cluster.

Last edited by joec@home; 10-24-2010 at 10:51 PM.
 
  


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
Are IBM servers the Best Servers, for a music download website.? mixhypnatist General 30 09-16-2009 09:26 PM
Fault in KDE processes communication: Could not read network communication list Magnus Johansson MEPIS 0 03-30-2008 12:50 PM
2 NICs with 2 Servers - Communication problem - Help Koroshiya Linux - Networking 0 01-13-2005 06:22 PM

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

All times are GMT -5. The time now is 05:16 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