Hello everyone, I work in netbeans, but when php creates or edits files, it sets privileges only for www, and since Netbeans is not running under root, then you understand ... Is it possible to give Netbeans root privileges on ubuntu? I can run it from root, but then another Netbeans will open, not the same one in which I have a project and all the settings. How to be? I ask for advice Thank you.
2 answers
You have 2 options
Copy your netbeans root profile
sudo cp -R /home/youruser/.netbeans /root/
and then run netbeans from under the root
Change file ownership
sudo chown youruser -R /path/to/files
correct later
sudo chown www-data -R /path/to/files
|
It’s normal to set up virtualhost in apache and don’t suffer from root and netbeans bullshit. You create the www folder in your home folder, configure apache from your user https://interface31.ru/tech_it/2015/06/nastraivaem-veb-server-na-baze -apache-v-debian-ubuntu-server.html
https://dyrik.ru/linux/ustanovka-apache2-mpm-itk-v-ubuntu-16-04.html
|
когда php создает или редактирует файлы он ставит привилегии только для www- How is this possible? What files does it edit? Why then rule them in the Neatbeans?chowntochownyou;) - E_p/var/www/html? This is not a good idea. As an option, you can make a sim link.ln -s /your/project/folder /var/www/html. just delete/var/www/html- E_p