← Back to team overview

enterprise-support team mailing list archive

Re: [Question #251991]: can't create folder in var/www/html/

 

Question #251991 on apache2 in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/apache2/+question/251991

    Status: Open => Answered

Thomas Krüger proposed the following answer:
Normal users don't have permissions to write to /var/www/ for security
reasons. Your options:

1. chreate the folder with superuser rights, then change the owner:
sudo mkdir /var/www/html
sudo chown you /var/www/html

2. create a folder in your home (~/html below), then symlink is there:
sudo ln -s /home/you/html /var/www/html

You have to replace "you" with your username.

-- 
You received this question notification because you are a member of
Ubuntu Server/Client Support Team, which is an answer contact for
apache2 in Ubuntu.