Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say I have 2 servers:

  1. web server (apache, php, mysql)
  2. storage server (lighttpd) - I wanna store a lot of images

How can I upload images to storage server via a web interface stored on web server (in real-time) ? I've read about NFS but I'm not sure if this is the best option. Any ideas ?



locked by HopelessN00b Jan 21 '15 at 22:25

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Jan 21 '15 at 22:25

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

do you mean automating a upload or a user manually uploading? – t q Aug 14 '12 at 23:28
user manually uploading – Robert Aug 14 '12 at 23:31
i personally like this if you want a separate server for storage you might use port 80: http and use PHP's CURL to make that connection – t q Aug 14 '12 at 23:40
This question is off-topic under current topicality rules. – HopelessN00b Jan 21 '15 at 22:25
up vote 1 down vote accepted

If you're simply trying to use a web-based tool to copy images to your server, you can run wget or curl from your apache/php/mysql server against the lighttpd server where the images live.

On the other hand, if you're trying to do something more production-y, you might need to clarify your question. Do you have a fat pipe between web/app server and storage server, and so want to cache from the front end? Do you have a post-production system pushing to the storage server, and want to publish new content out to a production site? Do you have too much image data to stage on your web/app front end, and need to do some tricky caching?

This is good, HTTP proxy is one of the best performing methods. Over internet HTTPS is just OK with self-signed certificate as well very secure with passwords. – Andrew Smith Aug 14 '12 at 23:53
Right now the images are on the web server too and I want to move all of them to storage server. My problem is... how can I link the storage server with the web server ?! I think I'll install NFS on storage server and mount it on web server. After that it should work uploading files directly to the storage server. – Robert Aug 15 '12 at 0:03
after some research... I've decided to use lsyncd – Robert Aug 15 '12 at 17:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.