can't do php development using netbeans IDE

Asked by ranganaMIT on 2010-05-30

hi friends,

i have installed the LAMP server bundle and already installed the netbeans in ubuntu 10.04, when i went and started a new project in netbeans i wanted to create my project in \var\www so i selected the path, but a project can't be created on that folder?
how can i resolve this problem? without having my project in that directory i can't go to the http://localhost by the browser and test my project also, can some one help me with this problem?


Question information

English Edit question
Ubuntu apache2 Edit question
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Last query:
Last reply:
Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :

Please give the right permission (write permission) on that folder... to the apache2 run user default is www-data

You need to do this from terminal Apllication→Accessories→Terminal

Please see the man page of chmod type

man chmod

and the man page of sudo

man sudo

Here an example on how you can change ( give all write read and execute permissions to all /var/www data and all subdirs ) the permissions, from terminal type:

sudo chmod -R 777 /var/www

the system will ask for a password give your user password (you will not see nothing when you type the password) then press enter.

Then retry to create project using netbeans

But i think then you MUST revisit the applied permissions to get better security.


Revision history for this message
ranganaMIT (sampathrangana) said :

Thanks marcobra (Marco Braida), that solved my question.