Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm new to linux and I've set up a web server with Ubuntu Desktop edition so I can practice with the GUI a bit before transitioning to Ubuntu Server.

I've already set up a LAMP stack as well as FTP. Now I just need to know how to transfer my web files to the /var/www folder in Ubuntu. Previously I've worked on Mac OS and there's a central server for all the web files where I can FTP to.

Now after I've managed to connect via FTP to the Ubuntu server, I see all the folders such as Desktop, Downloads, Documents etc but no web folder.

Anyone able to help me understand how do I FTP to the /var/www folder in Ubuntu?

Thanks

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You are going to need write access to /var/www, which

sudo adduser LOGIN_ID www-data
sudo chmod g+rwX -R /var/www

will establish. Next thing would be to create a shortcut in your home directory:

sudo ln -s /var/www /home/LOGIN_ID/

After connecting with the FTP server you should now see the www folder alongside the Desktop folder.

share|improve this answer
    
I've created the shortcut but when I try to access it via my FTP program, Forklift, I get the following message "The symbolic link "/www" can't be resolved because the original item can't be found." –  jc.yin Jun 30 '13 at 17:23
    
Oh actually I've set my program to access SFTP rather than FTP and now it works, perfect answer! –  jc.yin Jun 30 '13 at 17:27

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.