Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-24-2010, 11:27 AM
|
#1
|
LQ Newbie
Registered: Jan 2009
Location: Mumbai
Distribution: slackware
Posts: 15
Rep:
|
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.
|
|
|
10-24-2010, 01:52 PM
|
#2
|
LQ Newbie
Registered: Mar 2010
Location: Montevideo
Distribution: Debian, Ubuntu, knoppix
Posts: 7
Rep:
|
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
|
|
|
10-24-2010, 02:47 PM
|
#3
|
LQ Newbie
Registered: Jan 2009
Location: Mumbai
Distribution: slackware
Posts: 15
Original Poster
Rep:
|
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 
|
|
|
10-24-2010, 09:47 PM
|
#4
|
Member
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188
Rep:
|
Quote:
Originally Posted by shree24985
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.
|
|
|
10-24-2010, 10:50 PM
|
#5
|
Member
Registered: Sep 2009
Location: Galveston Tx
Posts: 291
Rep:
|
Quote:
Originally Posted by shree24985
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.
|
|
|
All times are GMT -5. The time now is 08:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|