What folders have to be writable by the web server?
Note: we use 0777 for permissions because this is what works on most hosting accounts. The data that you create in the web interface has to also be available in the command line as well and vice-versa, and often the user/group under which the web process runs is different from the one used in command line, which might lead to situations where the files are created from the web interface but they cannot be removed/modified from cli (i.e: when doing cleanups/upgrades/etc) or vice-versa, like cache built in the command line but unreadable in the web interface.
If your hosting account is configured to use same user/group for the web and for the cli, then by all means try to use 0775 or 0755 for file permissions, otherwise stick to 0777.
Following folders have to be writable by the web server, that is chmod-ed to 0777 recursive:
/apps/common/config
/apps/common/runtime
/backend/assets/cache
/customer/assets/cache
/frontend/assets/cache
/frontend/assets/files
/frontend/assets/gallery
/apps/extensions
AppMail also comes with a command line script that will chmod all the above folders automatically. You just have to run it from command line like:
# make it executable
chmod +x /apps/console/commands/shell/set-dir-perms
# run it
/apps/console/commands/shell/set-dir-perms
Related Articles
Adding a new Amazon SES delivery server (Web API)
This article will drive you through the steps on creating and validating an Amazon SES delivery server. First of all, you have to create an account here. Once you are done and you are logged in, you should search for the Simple Email Service. The ...
Cannot find a valid server to send the campaign email, aborting until a delivery server is available!
This error is shown because AppMail does not have a delivery server to pick to send the current campaign. This can happen for various reasons, such as: 1) You actually have never created a delivery server in the first place. 2) You did create a ...
Add a new delivery server type
If you look in apps/common/models/ you will see lots of files called DeliveryServer{TYPE}.php where type is the provider they implement, for example DeliveryServerAmazonSesWebApi.php In order to create your own delivery server implementation, you ...
Upgrade steps
Before starting the update process, make sure you backup your files and database, this is very important. The upgrade process: Make sure you download latest version of AppMail and you don’t use the files from the same version you already have ...
Nginx server basic configuration for AppMail
Please note that the below configuration is going to use php-fpm for what is worth. /etc/nginx/nginx.conf # For more information on configuration, see: # * Official English Documentation: https://nginx.org/en/docs/ # * Official Russian Documentation: ...