Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On my old machine (back on Lucid!) I used XAMPP for local dev work. XAMPP installed everything for you, including setting up FTP to your localhost (/var/www) directory, since permissions don't allow you to write directly to it.

I have a new machine running Precise, and decided to do things the grown-up way. I installed everything using tasksel, and got apache, php, mysql, and phpmyadmin up and running. But it's kind of a pain to have to create and edit all my files via gksudo gedit on the command line, and sooner or later I'm going to have to upload images.

How can I set up FTP so that I can "upload" files to my localhost server?

Edit to add

Followed the first video, but when I got to the point where he was creating files (around 7:25 in), I get hung up. Here's what my terminal looks like when I try to get into the /srv directory (which I verified does exist in Nautilus):

enter image description here

What do I need to do to get past this?

share|improve this question
add comment

1 Answer 1

Well, I was just trying to do this exact same thing...

I looked it up on Youtube, he explains how to do it with a GUI. It is basically the same thing with a CLI, if that's what you are using, just all with text- obviously.

Here is part one editing the .conf file for vsftpd:

Configuring FTP in Ubuntu - Part 1

And part two, where he finishes adding permissions and access control:

Configuring FTP in Ubuntu - Part 2

Best of luck...

share|improve this answer
    
Thanks for the links. I followed the process to the letter, but got hung up around 7:26 in the first video - where he goes into the /srv folder to create files for testing. When I try that, it asks me for a password, which I obviously don't have since we haven't gotten to the point of creating accounts yet. (And yes, I did enable anonymous access in the .conf file.) Any idea why that's happening or how to get past it? –  EmmyS Jul 12 '12 at 0:27
    
That one I'm not to sure about. I just know that the video worked for me. Sorry. :/ –  Enigmatic Oct 1 '12 at 16:33
3  
Any non-video answers? –  Thomas W. Nov 25 '12 at 20:23
    
ubuntuforums.org/showthread.php?t=518293 here's a non video –  Kotzilla Sep 16 '13 at 5:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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