can't create folder in var/www/html/

Asked by rasha ibrahim on 2014-07-22

I have ubuntu 14.04 LTS , I install Netbeans 8 , when I choose New project , php application, I want to create source folder in directory "/var/www/html/Netbeans/firstproject" , it show error "Sources folder is not writable."
Can you please help me.
Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apache2 Edit question
Assignee:
No assignee Edit question
Last query:
2014-07-22
Last reply:
2014-07-22
Thomas Kr├╝ger (thkrueger) said : #1

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.

I suggest reading these guides to learn more about Ubuntu:

https://help.ubuntu.com/community/ExternalGuides

Can you help with this problem?

Provide an answer of your own, or ask rasha ibrahim for more information if necessary.

To post a message you must log in.