Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

var/page_cache as writable_dirs #3202

Merged
merged 2 commits into from Aug 28, 2022
Merged

var/page_cache as writable_dirs #3202

merged 2 commits into from Aug 28, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jul 19, 2022

It will fix following Zend exception after successful deployment:
Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/path/to/www/releases/7/var/page_cache" is not writable in /path/to/www/releases/7/vendor/magento/zendframework1/library/Zend/Cache.php:209
This exception does not occur on every environment, as always, it depends on PHP pool user/group (default www-data or owner of project directory).

It will fix following Zend exception after successful deployment:
Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/path/to/www/releases/7/var/page_cache" is not writable in /path/to/www/releases/7/vendor/magento/zendframework1/library/Zend/Cache.php:209
This exception does not occur on every environment, it depends on PHP pool user/group (default www-data or owner of project directory).
@ghost
Copy link
Author

ghost commented Jul 19, 2022

For example, you can restore described exception after Caddy provisioning using Deployer's recipe.

Local Caddyfile PHP configuration:
php_fastcgi * unix//run/php/php7.4-fpm.sock

var/page_cache permissions:
drwxrwxr-x 3 deployer deployer 4096 Jul 19 16:32 page_cache

php7.4-fpm.sock permissions:
srw-rw---- 1 www-data www-data 0 Jul 19 15:42 /run/php/php7.4-fpm.sock

@antonmedv antonmedv merged commit 6981405 into deployphp:master Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants