It’s not about Nginx, actually editing the file on the machine is not about servers.
The problem of asking "password" is that the folder that this php scripts are do not belong to your linux user, this is a problem of your understanding about linux.
Linux is not like Windows, you need to first understand what groups, user and permissions are, but I won’t go into detail
The quick solution is to change the folder where the files are changing in the nginx.conf
, look for something like this root /var/www
(or similar) and adjust to a folder where you have access from the user for example, in the folder /home/usuario
create a folder named /home/usuario/www
and edit the root
, will look something like this:
server {
listen 80;
server_name localhost;
root /home/usuario/www;
Restart Nginx after saving changes from nginx.conf
Now start writing your scripts inside /home/usuario/www
Vlw, I just moved in a little while ago ... I’m focusing on programming for now.
– Luis Souza