How to access var/www using dreamweaver?

Posted July 30, 2014 7.6k views

I’ve Ubuntu 14.04 and I’ve created a non-root user and gave the root privileges as recommended in the initial server setup. Using this user’s credential I can login using filezilla and update my wordpress files just fine. However I would like to use dreamweaver istead of filezilla. It’s a pain to keep editing the files in one place and having to FTP in another.

When I use this user to login via dreamweaver SFTP option, I only have access to /home/username/
I have also created a group and new user, but same thing happens - only access to /home/newuser/

Any help on how I can connect to var/www using dreamweaver is very much appreciated. Thanks.

I’m the only one who will change files. If I access

1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Same problem, thanks this worked for me in DW using SFTP, but it will see the folder but not upload to it permissions?

  • In that case, you’ll need to allow your user to write to /var/www:

    sudo chown -R youruser:youruser /var/www

    If your webserver needs to be able to write to certain directories in /var/www, you can run the following command to do so:

    sudo chgrp -R www-data /var/www/path/to/directory
    sudo chmod -R g+w /var/www/path/to/directory

Hi Kamal,
Thanks for your help.
With dreamweaver I don’t have the option to navigate to var/www/. The only directory that shows to me is /home/webmaster with the files .profile, .bachrc, bach_logout and a cache folder.
Here is what shows to me

Thank you.

  • There should be a “Host” or “Root” directory option in the Dreamweaver servers configuration. Can you set that to /var/www ?

Hey Andrew,
Thanks for the suggestion, that solved my problem!
Thanks again!