No image

Magento, WordPress, Laravel Permissions Reset

[For aMiSTACX only] One of the most plaguing issues with any of our Linux applications stacks is permissions out of baseline.  When installing a new module or theme pay attention to permission changes for files and folders. This normally leads to compile errors, white screens, and/or module install failures.

aMiSTACX keeps the security model of Ubuntu in tack. This means you need to elevate privileges when connecting via the ubuntu user. Typically this is done with sudo, or when using WinSCP configuration to use sudo is set automatically. It is NOT recommended circumventing the default security model to bypass this annoyance. It is for your own security. Additionally, system processes such as Apache and PHP run under the context of the www-data user.  Messing around with security groups can land you in hot water or open a big security hole.

To resolve permission conflicts, simply keep these two commands handy, and use them for development environments. For production systems you may want to add additional security restrictions on certain file folders or paths.

sudo chmod -R u+rwX,go+rX,go-w /var/www/{application}

sudo chown -R www-data:www-data /var/www/{application}

You should now be back on baseline and good to go!

Better – Stronger – Faster!

Comments are closed.