How do i directly upload to /var/www/html? how do i create a user that can upload files and folder directly to the /var/www/html?
i was unable to directly upload my website files to /var/www/html via a created user id. I had to update to user id documents folder and copied the folder to /var/www/html. thereafter running this command = sudo chown www-data /var/www/html/.. This will remove the uanble to a access resource error when i access the website.
however there is a /var/www/html/image folder that does not seem to effect by the command.
there has to be a more direct and easier method without compromising the security of the default apache folder.
Aucun commentaire:
Enregistrer un commentaire