file upload to multiple servers using http

15 pts.
Tags:
CMS
File upload
HTTP
Load balancing
PHP
We have two server for load balancing. The CMS sits on one. We need a way to ensure any file (image, PDF) uploaded via the CMS (Coded with PHP) goes to both servers simultaneously using http

Software/Hardware used:
PHP

Answer Wiki

Thanks. We'll let you know when a new response is added.

You would need to use some sort of replication at the server level to ensure that all the data is replicated between the two servers. What OS are you using?

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Fodewunmi
    Linux. The website and CMS sits on a LAMP stack. We are building the CMS for a client with a host environment for all their websites. We weren't allowed to use Rsync. We then developed an FTP code to copy the files from server 1 to server 2 after the files are upload to server 1 via the CMS. Now, We were then informed that FTP was disallowed on server 2 because of security issues. We are told to use HTTP to effect the uploads to server 2. Any thoughts?
    15 pointsBadges:
    report
  • carlosdl
    How about SCP or SFTP ?
    68,820 pointsBadges:
    report
  • petkoa
    You can use wget to sync sites through http. rsync is much better, though: if you (or server admins) need security, it defaults to ssh as a transport protocol with all the security ssh provides; if the server admins are afraid of unauthorized access to some parts of the file system, they can set a public rsync server with explicitly configured modules which correspond to the filesystem parts accessible through web server... BTW, both mechanisms could be combined - to ensure secure granullar access to the file system, if standard permissions, ACLs and SELINUX control isn't enough ;o)) .
    3,120 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following