Hi, I have an installation with ubuntu where I'm going to use apache as a web server.
For this I have created a folder in / var / www / html / tests Where I created a series of files for example "index.php"
The problem I have is that if I do not create the file with the command "sudo nano file.php" the editor will not let me create or edit files.
The user I use is "edu", and what I have tried has been to put the permissions of the files inside the folder tests with the permissions 777 and the user and group to www-data with this command
sudo chown www-data: www-data -R *
This is useful for the files I have created, but for those who "go" creating this, it does not work for me because I must pass this command every time.
The solution which would be to put the folder / var / www / html that belongs to the user "edu"?
Thanks