Theme Installation from zip: permissions
-
I’m having great trouble working out exactly what WP needs to allow a theme to be installed from within WP itself.
My web server user is ‘wwwrun’. The permissions on wp-content/uploads, wp-content/upgrade and wp-content/themes allows this user to write.
Running the command-line ‘wp’ tool to install a theme works: the theme zip file appears in wp-content/uploads/2016/08 and gets unpacked into wp-content/themes:
wwwrun@login190:~> wp --debug --path=/local/www/htdocs/ theme install philomina Debug: No readable global config found (0.016s) Debug: No project config found (0.018s) Debug: No package autoload found to load. (0.031s) Debug: ABSPATH defined: /local/www/htdocs/ (0.031s) Debug: Begin WordPress load (0.032s) Debug: wp-config.php path: /local/www/htdocs/wp-config.php (0.032s) Debug: Loaded WordPress (0.402s) Debug: Running command: theme install (0.402s) PHP Notice: Undefined offset: 4 in phar:///usr/local/sbin/wp/php/WP_CLI/DocParser.php on line 124 Notice: Undefined offset: 4 in phar:///usr/local/sbin/wp/php/WP_CLI/DocParser.php on line 124 Installing Philomina (1.3.2) Downloading install package from https://downloads.wordpress.org/theme/philomina.1.3.2.zip... Using cached file '/var/lib/wwwrun/.wp-cli/cache/theme/philomina-1.3.2.zip'... Unpacking the package... Installing the theme... Theme installed successfully.However if I try to install a theme from within WP itself (the web server also running as wwwrun) I just get taken to the page that requests FTP credentials. I can see that the zip file appears in wp-content/uploads/2016/08 but it seems that unpacking fails for some reason. No warnings, no errors, just silent failure. Turning on WP debugging doesn’t help.
What does the theme installer require in terms of permissions that isn’t required by the ‘wp’ utility?
The topic ‘Theme Installation from zip: permissions’ is closed to new replies.