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

Asked by rasha ibrahim

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

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :

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.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :

I suggest reading these guides to learn more about Ubuntu:

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.