Folder Permissions
We recommend to set all folders to 755:
Owner: Read, Write, Execute
Group: Read, Execute
Others: Read, Execute
To change all folders permissions to 755 on Linux terminal:
find path_to_core -type d -exec chmod 755 {} \;
Replace path_to_core with real core root path.
Never set folders permissions to 777 if your website is live.
File Permissions
We recommend to set all files to 644:
Owner: Read, Write
Group: Read
Others: Read
To change all files permissions to 644 on Linux terminal:
find path_to_core -type f -exec chmod 644 {} \;
Replace path_to_core with real core root path.
Never set files permissions to 777 if your website is live.
Folders and Files Owner
If you have problem with permissions after you changed the file and folder permissions, You need to check folders and files owner.
Often the Apache server is owned by the www-data, dhapache or nobody user. to change all folder and files owner on Linux terminal:
sudo chown -R www-data path_to_core
Replace path_to_core with real core root path.