{"id":60978,"date":"2020-09-21T18:57:20","date_gmt":"2020-09-21T21:57:20","guid":{"rendered":"https:\/\/powertic.com\/?p=60978"},"modified":"2020-09-21T18:58:52","modified_gmt":"2020-09-21T21:58:52","slug":"mautic-cache-clean-adjust-permissions","status":"publish","type":"post","link":"https:\/\/powertic.com\/en\/mautic-cache-clean-adjust-permissions\/","title":{"rendered":"Mautic Cache: Clean and adjust Permissions"},"content":{"rendered":"<p>For Mautic to work correctly you must apply the appropriate permissions to the root directory of your installation and also clear the Mautic cache.<\/p>\n\n\n\n<p>Symfony &#8211; PHP Framework used to develop Mautic &#8211; caches objects, sessions, etc. to improve application performance. <\/p>\n\n\n\n<p>You should perform these operations from time to time and whenever you update Mautic or adjust the Database.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Important<\/strong><br>Check which user is configured on your Apache \/ Nginx to run PHP. In most cases it is www-data, but on some servers it can be root or another.<\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Cleaning the Mautic Cache<\/h2>\n\n\n\n<p>You can simply remove the Mautic app \/ cache folder so that the cache is removed and redone. But Mautic himself offers two commands that do all the work of cleaning and heating the cache. I recommend that you use these two commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php app\/console cache:clear\nphp app\/console cache:warmup\n\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Adjusting file permissions in Mautic<\/h2>\n\n\n\n<p>The command below reflects most installations of Mautic on Debian \/ Ubuntu using Apache or NGINX: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chown -R www-data:www-data .\nchmod -R g+rw .<\/pre>\n\n\n\n<p>What we did in the first command was to set the file owner recursively -R for the user and the www-data group, which is responsible for running PHP through its web server.<\/p>\n\n\n\n<p>The second command modifies the access permissions to the files saying that the www-data group has written and read access.<\/p>","protected":false},"excerpt":{"rendered":"<p>For Mautic to work correctly you must apply the appropriate permissions to the root directory of your installation and also clear the Mautic cache. Symfony&hellip;<\/p>","protected":false},"author":4,"featured_media":60981,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2973],"tags":[],"class_list":["post-60978","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mautic-4"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/posts\/60978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/comments?post=60978"}],"version-history":[{"count":0,"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/posts\/60978\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/media\/60981"}],"wp:attachment":[{"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/media?parent=60978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/categories?post=60978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/powertic.com\/en\/wp-json\/wp\/v2\/tags?post=60978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}