-
Notifications
You must be signed in to change notification settings - Fork 631
WP-CLI error installing plugins/themes. "Could not create directory". Permissions error? Ubuntu 14.04 x64 #1395
Comments
Just an update- I solved the problem, temporarily, however, I'm hoping there is a better way. So, basically I'm using the --allow-root flag on all of my commands so that I can use sudo to run the commands as the root user. So basically a command looks like Like I said, if anyone has an easier way to handle this, I'd love to know. I did find this, https://www.digitalocean.com/community/tutorials/how-to-use-puppet-to-manage-wordpress-themes-and-plugins-on-ubuntu-14-04 which details how I would install WP-CLI with Puppet normally, however, since it is already installed, there is one part of that that could help my situation, and its in the "resource.pp" file that he creates to say |
Had the same issue just now on a local OSX server.
all files and folders are _www:_www and directories are 755 and files 644 so why can't the directory be created? Adding my own user to _www group did not help either. --allow-root does work, but yeah that should not be needed.. |
@peterjohnjoseph Just tried this, working fine after latest permissions updates to I did change one thing, though. The
@jasperf You need to run wp-cli from within the VM itself. I don't support OSX Server. |
Thank you, jtreminio. I'm not sure you realize how much your work is appreciated. |
also be sure to check the permissions on the wp-content-upgrade directory |
you mean |
Hey guys, I've been searching for hours trying to figure out a solution to this problem, but I've given up and its time to ask for some help.
I'm running Wordpress on an Ubuntu 14.04 x64 server. I use Mark Jaquith's WP-Skeleton folder set up, and have two shared folders set up; /var/www/wp (sitename/www/wp on the host) for Wordpress core files, and /var/www/content/ (sitename/www/content on the host) for a custom content directory which is the purpose of WP-Skeleton.
When SSH'ing into the VM and running WP-CLI, everything seems to work correctly as far as WP-CLI knowing the Path to my Content directory, and Wordpress core files. The problem is when trying to install plugins or themes, as shown below-
My first, and only thought so far is that this is a permissions error, but with my limited knowledge of this area, I've only been able to do so much, however, I can say that I've tried changing the permissions of the Content directory to 755, then 765, and even 777 using
chmod -v 755 /var/www/content/
.That also didn't work, even with the permissions set to 777. So what else could be wrong? I know this probably has to do with permissions for www-data, but like I said, I have limited knowledge of what to look for, or change. I'm sure this is something simple, and I'm sure this isn't directly related to WP-CLI, as I have a feeling if I used any other web app to try and install to the www folder that I'd have the same problem.
I'm going to include my config.yaml file below for completeness sake. If you need any other information from me, I'll be sure to include it.
Thanks in advance,
P.J.
The text was updated successfully, but these errors were encountered: