LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-02-2005, 01:27 PM   #1
writ3r
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
FileZilla FTP to htdocs errors


Hi!

Set up my very first Linux box today with Slackware 10.1. With a lot of reading I got PHP and MySQL running.

With a cross-over network cable I connected my XP machine to the Linux box to explore web-hosting, etc. I created a user with the following command: adduser mark, then it prompts: UID ... Initial Group, Additional Groups, Home Directory, Shell, Exp date, etc.

When I use Filezilla to upload websites to the /var/www/htdocs directory it gives a "Critical transfer error" and does not upload the files. This is probably a permission error but how can I ftp as mark to upload files and create directories in the htdocs directory on the server, oh and the cgi-bin directory? My goal is to learn oscommerce and commerce-cgi with this box; doing it "local' is faster and cheaper!

Thank you for reading hope you can help.
 
Old 07-02-2005, 02:10 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I'm not familiar with the error you listed, but it does sound like a permissions problem. Each directory/file in *nix has permissions attached to it, and user mark doesn't have permission to create files in /var/www/html. The easiest solution (that is also safe) is to ftp the files into /home/mark/, and then use sudo or su to move the files into /var/www/html. You could also change the permissions on /var/www/html/, but that would make a real world webserver unsecure. As you plan to use this to learn, it is best to use the box as a real world server would be, and allowing easy access to the web directory is not the best of ideas. That will make it a 2 step process, the ftp step, then use putty or whatever your ssh client is to move the files. Many web developers like a program called SCP or something like that, which is just a port of the *nix scp (secure copy) program for Window$.

You could also change the permissions to allow mark to write to the directory, or ftp as root, but I don't think most ftp servers will allow root to log in. The ftp server I use, vsftp doesn't allow that at all, unless you modify the .conf file.

Peace,
JimBass
 
Old 07-02-2005, 06:35 PM   #3
writ3r
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Easy way but not secure...

Jim thanks for the reply! I did a chmod 777 on the htdocs directory and now I can upload files to my "www.mynamewebsite.com" directory, without Filezilla giving any errors. The website display in my browser as well. I understand that this is absolutely not secure, but I don't know what the command is to move files from the home dir to the htdocs dir in Linux? I am using putty to log into the server from my Windows PC.

I also tried the " Ln -s /home/MYNAME /var/www/htdocs " command to link the http dir to my user account to transfer files from there - uploading didn't work.

As you said, it is not possible to log in as root via an FTP client, unless changes are made...

Thanks again,

Have a great day.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
filezilla server ambelos General 7 11-27-2009 09:18 AM
FileZilla Server and SSL BlackHatRob Linux - Software 0 05-29-2005 02:04 AM
Wine FileZilla FTP TuxFreak General 6 12-26-2004 06:52 PM
Where to start when installing filezilla? JeffSquared Linux - Software 1 09-14-2004 09:00 PM
Filezilla problem artificialmaps General 3 06-11-2004 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration