Set All Files and Directories Permission:
To set permissions to all zCart directories to 755 and your files to 644, open your server terminal
and run below commands:
Files:
sudo find /path/to/your/application -type f -exec chmod 644 {} \;
And Directories:
sudo find /path/to/your/application -type d -exec chmod 755 {} \;
Warning: Replace the
/path/to/your/application
with your project path.
Give Special Permissions To The web-server User:
You must have to give the webserver the rights to read and write to storage and cache directories. To do so, open your server’s command-line tool and go to your project directory.
Tip: Run this command
cd /path/to/your/application
. Replace the /path/to/your/application
with your project path.
When you are into your project directory, run the below commands:
sudo mkdir storage/app/public/images;
sudo chgrp -R www-data .env public storage vendor bootstrap/cache;
sudo chmod -R 775 storage vendor bootstrap/cache storage/app/public/images;
sudo chmod -R ug+s+rwx .env public storage vendor bootstrap/cache;
Warning: Assumed your webserver is running as
www-data