Permissions

{success} To set permissions to all Ceptims 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 {} \;

Directories:

sudo find /path/to/your/application -type d -exec chmod 755 {} \;


{danger} Warning! Replace the /path/to/your/application with your project path.

Give Special Permissions To The 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.

{default} 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;
  • 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;

{danger} Warning: Assumed your webserver is running as www-data