Set Ownership

Set File or Directory Ownership

Set the ownership of your project directory and all directories/files in it to your root user and set the group to the webserver.
 

Run this command:

sudo chown -R your-user-name:www-data /path/to/your/application
 

Warning: Here the your-user-name is your username and the web server is running as www-data as most servers do. The /path/to/your/application is the project path. Replace the values with yours.

 
 

Was this helpful to you?

Leave Comment