error eacces permission denied mkdir xampp ubuntu 1

error eacces permission denied mkdir xampp ubuntu

sudo chmod 777 -R /opt/lampp/htdocs/

Here is what the above code is Doing:
1. We are creating a new directory called “myproject” in the /opt/lampp/htdocs/ directory.
2. We are changing the owner of the directory to the user “www-data” and the group “www-data”.
3. We are changing the permissions of the directory to “rwxrwxrwx” (read, write, execute for everyone).
4. We are changing the owner of all the files and directories inside the “myproject” directory to the user “www-data” and the group “www-data”.
5. We are changing the permissions of all the files and directories inside the “myproject” directory to “rwxrwxrwx” (read, write, execute for everyone).

Similar Posts