homepage Welcome to WebmasterWorld Guest from 54.226.136.179
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
Help implementing a new server for images and stuff
Jakotsu

10+ Year Member



 
Msg#: 3836170 posted 2:18 am on Jan 28, 2009 (gmt 0)

Hi, I have a site with heavy traffic and lots of dynamic content, so I'll have to implement an external server to store images, and relief Apache from serving them. But I'm not sure about the implementation for this.

I'd like to have a subdomain like images.mysite.com pointing to the image server (with different IP of course), and I'm not sure how to do that. I have DirectAdmin and full root access on both servers.

Also, when a user uploads a photo using the PHP scripts, the image must be stored on the other server. The only way I can figure out to do this is using the PHP FTP functions, but I wonder if there's a more convenient way to do this.

Any tips on any of the issues I asked will be greatly appreciated, thanks!

 

incrediBILL

WebmasterWorld Administrator incredibill us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



 
Msg#: 3836170 posted 10:19 pm on Feb 8, 2009 (gmt 0)

The only way I can figure out to do this is using the PHP FTP functions, but I wonder if there's a more convenient way to do this.

FTP or SCP over SSH, but another alternative is the Network File System (NFS) that allows you to mount the other server as a drive and then use normal file operations.

Jakotsu

10+ Year Member



 
Msg#: 3836170 posted 7:05 pm on Feb 9, 2009 (gmt 0)

Thanks, for now I'll use the normal FTP functions because it seems to be quite fast and effective. When I connect to the root with WinSCP in SCP mode, everything seems much slower than the normal FTP access.

incrediBILL

WebmasterWorld Administrator incredibill us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



 
Msg#: 3836170 posted 7:14 pm on Feb 9, 2009 (gmt 0)

That's because SCP is secure, it uses SSH.

If you're using raw FTP instead of SFTP you're broadcasting your password in plain text every time you upload an image.

It's a trade off of security vs speed.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved