Last active
May 2, 2019 14:38
-
-
Save guilhermealveslopes/5783061a7813f8356d95669fdb065fac to your computer and use it in GitHub Desktop.
Fix Installation failed: Could not create directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fix the problem "Installation failed: Could not create directory" when try to install some plugin | |
or make any file changes. | |
// Find WebServer Owner eg: daemon, apache | |
ps aux | egrep '(apache|httpd)' | |
// Give this user ownership to project folder | |
chown -R {WEB_SERVER OWNER} /opt/lampp/htdocs | |
// Setup permission for directories | |
sudo find /opt/lampp/htdocs -type d -exec chmod 755 {} \; | |
// Setup permission for files | |
sudo find /opt/lampp/htdocs/ -type f -exec chmod 644 {} \; | |
// Permission to root user edit files from: ( FTP / WP Admin ) | |
sudo chown -R {WEB_SERVER OWNER}:ubuntu /opt/lampp/htdocs/{PROJECT_FOLDER}/wp-content/ | |
// vps permission | |
// wp plugin permission | |
// could not create directory | |
// não foi possível criar o diretório |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment