Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Uploading files to web server.

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
mikejd
LXF regular


Joined: Fri Apr 08, 2005 5:46 pm
Posts: 131
Location: Huntly, Aberdeenshire

PostPosted: Mon May 30, 2005 3:24 pm    Post subject: Uploading files to web server. Reply with quote

I have a networked web server set up with Apache which I am going to use for testing web sites. I can access the web pages via port 80 over the network, at the moment only the default index.html file is available in /var/www/html.
What is the best way to upload files? Can I set up ftp and if so how do I do it? Assistance or pointer to good reference appreciated.

Regards,
Mike Davies
Back to top
View user's profile Send private message Visit poster's website
mattohope



Joined: Tue May 31, 2005 3:20 pm
Posts: 4

PostPosted: Tue May 31, 2005 3:51 pm    Post subject: RE: Uploading files to web server. Reply with quote

Hi,

I would say the best way would be via FTP, which Linux distribution are you running? this'll help to determin how to activate the FTP service.

Matt
Back to top
View user's profile Send private message
mikejd
LXF regular


Joined: Fri Apr 08, 2005 5:46 pm
Posts: 131
Location: Huntly, Aberdeenshire

PostPosted: Wed Jun 01, 2005 11:09 am    Post subject: RE: Uploading files to web server. Reply with quote

Matt,
I am running Mandrake 9.1. When I installed I thought I incuded the packages for ftp server but not certain.
I seem to have the following packages installed :
ftp-client-krbs, gftp, lftp, proftp

rpmdrake shows packages which can be installed :
ftp-server-krbs, ncftp, proftpd-anonymous, tftp, tftp-server, vsftpd

Do I need to install the ftp-server package?

Thanks for any assistance, Mike
Back to top
View user's profile Send private message Visit poster's website
mattohope



Joined: Tue May 31, 2005 3:20 pm
Posts: 4

PostPosted: Wed Jun 01, 2005 12:09 pm    Post subject: RE: Uploading files to web server. Reply with quote

Hi Mike,

I would personally install the vsfpd package, its the ftp server that we run on all our Linux servers at work and the one I use on my personal Linux PC's. Once installed and started the service will authenticate system users. For example if you have a linux user called admin, you can ftp to the server using admin's username and password.

Matt
Back to top
View user's profile Send private message
mikejd
LXF regular


Joined: Fri Apr 08, 2005 5:46 pm
Posts: 131
Location: Huntly, Aberdeenshire

PostPosted: Wed Jun 01, 2005 4:52 pm    Post subject: RE: Uploading files to web server. Reply with quote

Thanks Matt.
I have installed vsftp. It appears to be working. If I use gftp to connect to 192.168.0.3 port 21 it connects then immediately disconnects, if I connect to port 80 it stays connected but nothing shows.

Can you suggest a good reference to setting vsftp up to upload web pages to /var/ww/html/. I have Googled and found several links but they don't make a lot of sense in this respect.

Thanks again,
Mike
Back to top
View user's profile Send private message Visit poster's website
davecs
LXF regular


Joined: Sun Apr 10, 2005 12:13 am
Posts: 530
Location: Dagenham, Essex

PostPosted: Wed Jun 01, 2005 5:04 pm    Post subject: RE: Uploading files to web server. Reply with quote

I know nothing about local networks, but recently discovered that Konqueror is an excellent ftp agent. Just point konqueror to the target ftp address, it will ask for user name and password, and it will look just like it is in File Manager mode. All you need to do is open a local Konqueror in File Manager mode (ie click Home and navigate) and drag and drop files across. Easy.
_________________

Asus Asus M2N32 WS Pro+Athlon AM2/4200+ — GeForce 7600GT — 2Gb Cosair VS RAM — 500Gb WD5000AAKS SATA Drive — PCLinuxOS
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Wed Jun 01, 2005 6:47 pm    Post subject: RE: Uploading files to web server. Reply with quote

Even better, select Window -> Split View and you can have a dual pane window with the local directory in one and the FTP site in the other.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
davecs
LXF regular


Joined: Sun Apr 10, 2005 12:13 am
Posts: 530
Location: Dagenham, Essex

PostPosted: Wed Jun 01, 2005 7:59 pm    Post subject: Re: RE: Uploading files to web server. Reply with quote

nelz wrote:
Even better, select Window -> Split View and you can have a dual pane window with the local directory in one and the FTP site in the other.

Blimey!

The sheer power of Konqueror just never ceases to amaze me. I just wish they could sort out one or two of the basics (eg if you have two copies open, one File Manager and one Browser, and you click on a Web Link in KMail, that it should automatically add the new tab to the browser, and not the File Manager!! - Nelz, if you could give me the answer to that one and make me look like a complete n00b again, I would be grateful!)
_________________

Asus Asus M2N32 WS Pro+Athlon AM2/4200+ — GeForce 7600GT — 2Gb Cosair VS RAM — 500Gb WD5000AAKS SATA Drive — PCLinuxOS
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8455
Location: Warrington, UK

PostPosted: Wed Jun 01, 2005 10:21 pm    Post subject: RE: Re: RE: Uploading files to web server. Reply with quote

I wish I knew the answer to that one, I keep getting bitten by it. It appears that when you open a new link, KDE always opens it in the first instance of Konqueror. I usually end up opening a new Konqueror window (or a tab on the existing browser window) and dragging the favicon across.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
skecs



Joined: Fri Apr 22, 2005 10:22 am
Posts: 76
Location: Bathurst, NSW Australia

PostPosted: Sun Jun 12, 2005 7:19 am    Post subject: RE: Re: RE: Uploading files to web server. Reply with quote

Hi Mike,

Which user are you trying to login as when using gFTP? If you are trying to access the "root" account vsftp will disconnect immediately. It is part of the "very secure" bit! It also locks users into their home directories not allowing access to other parts of the system. To change this either edit /etc/vsftpd.conf which is well commented (not recommended) or an easier way is to change the owner of /srv/www/htdocs or whatever your Document Root is in httpd.conf (depending on your Apache version something like /etc/httpd/httpd.conf or /etc/apache2/httpd.conf) to the user that manages the default web account. Then just do a "mv /srv/www/htdocs /srv/www/htdocs-old" and "mkdir /srv/www/htdocs" then change the user's home to /srv/www/htdocs.
_________________
Regards from
Downunder!
.... _
... (0)>
... / /\
.. / / .)
.. V_/_
Linux Powered!
Back to top
View user's profile Send private message
M0PHP
LXF regular


Joined: Wed Apr 06, 2005 8:40 am
Posts: 737
Location: Bishop Auckland, County Durham, UK

PostPosted: Sun Jun 12, 2005 11:38 am    Post subject: Reply with quote

I prefer to use samba to upload files to my local webserver. In linux or windows clients I can mount the samba share as a local folder and simply work from that directly - I don't have to save it on the harddisk, open up ftp client and then transfer it.
Back to top
View user's profile Send private message Visit poster's website
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Mon Jun 13, 2005 6:48 am    Post subject: Reply with quote

I was gonna say, if it is a local networked server, just create a shared folder with samba and upload accross the network.

if it is a remote system, you would have to use ftp.

looks like MOPHP had the same idea too Smile

Mike Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Guest






PostPosted: Mon Jun 13, 2005 4:36 pm    Post subject: Reply with quote

you can also use scp to copy files but this requires that ssh be running
i use this to copy files across webservers that are in different datacenters as it is secure since it uses ssh.
Back to top
bigbee



Joined: Thu Jun 09, 2005 3:46 pm
Posts: 55
Location: Westerlo, Belgium

PostPosted: Mon Jun 13, 2005 7:29 pm    Post subject: Reply with quote

or you can mount your drive as an NFS drive, which allow you to use your remote drive like a local directory
_________________
Back to top
View user's profile Send private message Visit poster's website
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast