Warning: You are browsing the documentation from version 4 to 10 of Pimcore. Please visit https://pimcore.com/docs/platform/ for the latest versions of Pimcore.
Version:

File Permissions

Pimcore requires write access to the following directories: /app/config, /bin, /composer.json, /pimcore, /var, /web/pimcore and /web/var.

If you know which user executes PHP on your system (PHP-FPM user, Apache user, ...), simply give write access to the appropriate user. Execute the following commands on the shell (eg. via SSH, …) in your install directory - replace YOURUSER and YOURGROUP with your configuration:

chown -R YOURUSER:YOURGROUP app/config bin composer.json pimcore var web/pimcore web/var

You can get further generic information about Symfony file permissions here: Symfony file permissions.

To be able to execute cli tools (pimcore or symfony console for instance), you need to give execute permissions to the cli tools. Here it add execute permissions to the user and group:

chmod ug+x bin/*

On Debian systems (and most other Linux distributions) mostly the www-data user executes the PHP files, just execute the following commands in your install directory.

chown -R YOURUSER:YOURGROUP app/config bin composer.json pimcore var web/pimcore web/var
chmod ug+x bin/*