15 pts.
 file upload to multiple servers using http
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
ASKED: Apr 7, 2010  1:31 PM GMT
UPDATED: April 8, 2010  2:20:38 PM GMT
63,630 pts.

Answer Wiki:
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?
Last Wiki Answer Submitted:  Apr 7, 2010  4:39 PM (GMT)  by  Mrdenny   63,630 pts.
To see other answers submitted to the Answer Wiki View Answer History.
Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _




 

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 pts.

 

How about SCP or SFTP ?

 60,245 pts.

 

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,060 pts.