Wordpress: Unpacking the package… Could not create directory
On my website i am using apache: 2.2.22 and wordpress: 4.2.10,
Since i enabled my website to have ftp access, every plugin update or installation gives me the error:
Unpacking the package…
Could not create directory
My vhost configs:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.website.com
ServerAlias website.com
DocumentRoot /home/website.com/htdocs
<IfModule mpm_itk_module>
AssignUserId ftp-user ftp-user
</IfModule>
<Directory /home/website.com/htdocs>
php_admin_value open_basedir /home/website.com/htdocs:/tmp
php_admin_value safe_mode On
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
........
</VirtualHost>
I am making setfacl for the apache "www-data" user as rwx permission all over the "/home/website.com/htdocs" recursively,
-rwxrwxr-x+ 1 ftp-user ftp-group 32 mywot23b6b47ec20c5b6cd50d.html
-rwxrwxr-x+ 1 ftp-user ftp-group 7361 readme.html
drwxrwxr-x+ 2 ftp-user ftp-group 4096 tracking
-rw-rwxr--+ 1 ftp-user ftp-group 2085 unsubscribezoho.php
-rwxrwxr-x+ 1 ftp-user ftp-group 4951 wp-activate.php
drwxrwxr-x+ 11 ftp-user ftp-group 4096 wp-admin
-rwxrwxr-x+ 1 ftp-user ftp-group 271 wp-blog-header.php
-rwxrwxr-x+ 1 ftp-user ftp-group 5007 wp-comments-post.php
-rwxrwxr-x+ 1 ftp-user ftp-group 3687 wp-config.php
-rwxrwxr-x+ 1 ftp-user ftp-group 2727 wp-config-sample.php
drwxrwxr-x+ 8 ftp-user ftp-group 4096 wp-content
-rwxrwxr-x+ 1 ftp-user ftp-group 3115 wp-cron.php
drwxrwxr-x+ 13 ftp-user ftp-group 4096 wp-includes
-rwxrwxr-x+ 1 ftp-user ftp-group 2380 wp-links-opml.php
-rwxrwxr-x+ 1 ftp-user ftp-group 3123 wp-load.php
-rwxrwxr-x+ 1 ftp-user ftp-group 34241 wp-login.php
-rwxrwxr-x+ 1 ftp-user ftp-group 8252 wp-mail.php
-rwxrwxr-x+ 1 ftp-user ftp-group 11048 wp-settings.php
I tried to grant "777" to wp-content recursively (plugins, upgrades folders) didn't work, and tried to change the ownership to apache user "www-data", but the plugins are gone in the admin page!
Please Help!
server permissions apache2 plugins wordpress
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
On my website i am using apache: 2.2.22 and wordpress: 4.2.10,
Since i enabled my website to have ftp access, every plugin update or installation gives me the error:
Unpacking the package…
Could not create directory
My vhost configs:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.website.com
ServerAlias website.com
DocumentRoot /home/website.com/htdocs
<IfModule mpm_itk_module>
AssignUserId ftp-user ftp-user
</IfModule>
<Directory /home/website.com/htdocs>
php_admin_value open_basedir /home/website.com/htdocs:/tmp
php_admin_value safe_mode On
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
........
</VirtualHost>
I am making setfacl for the apache "www-data" user as rwx permission all over the "/home/website.com/htdocs" recursively,
-rwxrwxr-x+ 1 ftp-user ftp-group 32 mywot23b6b47ec20c5b6cd50d.html
-rwxrwxr-x+ 1 ftp-user ftp-group 7361 readme.html
drwxrwxr-x+ 2 ftp-user ftp-group 4096 tracking
-rw-rwxr--+ 1 ftp-user ftp-group 2085 unsubscribezoho.php
-rwxrwxr-x+ 1 ftp-user ftp-group 4951 wp-activate.php
drwxrwxr-x+ 11 ftp-user ftp-group 4096 wp-admin
-rwxrwxr-x+ 1 ftp-user ftp-group 271 wp-blog-header.php
-rwxrwxr-x+ 1 ftp-user ftp-group 5007 wp-comments-post.php
-rwxrwxr-x+ 1 ftp-user ftp-group 3687 wp-config.php
-rwxrwxr-x+ 1 ftp-user ftp-group 2727 wp-config-sample.php
drwxrwxr-x+ 8 ftp-user ftp-group 4096 wp-content
-rwxrwxr-x+ 1 ftp-user ftp-group 3115 wp-cron.php
drwxrwxr-x+ 13 ftp-user ftp-group 4096 wp-includes
-rwxrwxr-x+ 1 ftp-user ftp-group 2380 wp-links-opml.php
-rwxrwxr-x+ 1 ftp-user ftp-group 3123 wp-load.php
-rwxrwxr-x+ 1 ftp-user ftp-group 34241 wp-login.php
-rwxrwxr-x+ 1 ftp-user ftp-group 8252 wp-mail.php
-rwxrwxr-x+ 1 ftp-user ftp-group 11048 wp-settings.php
I tried to grant "777" to wp-content recursively (plugins, upgrades folders) didn't work, and tried to change the ownership to apache user "www-data", but the plugins are gone in the admin page!
Please Help!
server permissions apache2 plugins wordpress
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
On my website i am using apache: 2.2.22 and wordpress: 4.2.10,
Since i enabled my website to have ftp access, every plugin update or installation gives me the error:
Unpacking the package…
Could not create directory
My vhost configs:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.website.com
ServerAlias website.com
DocumentRoot /home/website.com/htdocs
<IfModule mpm_itk_module>
AssignUserId ftp-user ftp-user
</IfModule>
<Directory /home/website.com/htdocs>
php_admin_value open_basedir /home/website.com/htdocs:/tmp
php_admin_value safe_mode On
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
........
</VirtualHost>
I am making setfacl for the apache "www-data" user as rwx permission all over the "/home/website.com/htdocs" recursively,
-rwxrwxr-x+ 1 ftp-user ftp-group 32 mywot23b6b47ec20c5b6cd50d.html
-rwxrwxr-x+ 1 ftp-user ftp-group 7361 readme.html
drwxrwxr-x+ 2 ftp-user ftp-group 4096 tracking
-rw-rwxr--+ 1 ftp-user ftp-group 2085 unsubscribezoho.php
-rwxrwxr-x+ 1 ftp-user ftp-group 4951 wp-activate.php
drwxrwxr-x+ 11 ftp-user ftp-group 4096 wp-admin
-rwxrwxr-x+ 1 ftp-user ftp-group 271 wp-blog-header.php
-rwxrwxr-x+ 1 ftp-user ftp-group 5007 wp-comments-post.php
-rwxrwxr-x+ 1 ftp-user ftp-group 3687 wp-config.php
-rwxrwxr-x+ 1 ftp-user ftp-group 2727 wp-config-sample.php
drwxrwxr-x+ 8 ftp-user ftp-group 4096 wp-content
-rwxrwxr-x+ 1 ftp-user ftp-group 3115 wp-cron.php
drwxrwxr-x+ 13 ftp-user ftp-group 4096 wp-includes
-rwxrwxr-x+ 1 ftp-user ftp-group 2380 wp-links-opml.php
-rwxrwxr-x+ 1 ftp-user ftp-group 3123 wp-load.php
-rwxrwxr-x+ 1 ftp-user ftp-group 34241 wp-login.php
-rwxrwxr-x+ 1 ftp-user ftp-group 8252 wp-mail.php
-rwxrwxr-x+ 1 ftp-user ftp-group 11048 wp-settings.php
I tried to grant "777" to wp-content recursively (plugins, upgrades folders) didn't work, and tried to change the ownership to apache user "www-data", but the plugins are gone in the admin page!
Please Help!
server permissions apache2 plugins wordpress
On my website i am using apache: 2.2.22 and wordpress: 4.2.10,
Since i enabled my website to have ftp access, every plugin update or installation gives me the error:
Unpacking the package…
Could not create directory
My vhost configs:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.website.com
ServerAlias website.com
DocumentRoot /home/website.com/htdocs
<IfModule mpm_itk_module>
AssignUserId ftp-user ftp-user
</IfModule>
<Directory /home/website.com/htdocs>
php_admin_value open_basedir /home/website.com/htdocs:/tmp
php_admin_value safe_mode On
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
........
</VirtualHost>
I am making setfacl for the apache "www-data" user as rwx permission all over the "/home/website.com/htdocs" recursively,
-rwxrwxr-x+ 1 ftp-user ftp-group 32 mywot23b6b47ec20c5b6cd50d.html
-rwxrwxr-x+ 1 ftp-user ftp-group 7361 readme.html
drwxrwxr-x+ 2 ftp-user ftp-group 4096 tracking
-rw-rwxr--+ 1 ftp-user ftp-group 2085 unsubscribezoho.php
-rwxrwxr-x+ 1 ftp-user ftp-group 4951 wp-activate.php
drwxrwxr-x+ 11 ftp-user ftp-group 4096 wp-admin
-rwxrwxr-x+ 1 ftp-user ftp-group 271 wp-blog-header.php
-rwxrwxr-x+ 1 ftp-user ftp-group 5007 wp-comments-post.php
-rwxrwxr-x+ 1 ftp-user ftp-group 3687 wp-config.php
-rwxrwxr-x+ 1 ftp-user ftp-group 2727 wp-config-sample.php
drwxrwxr-x+ 8 ftp-user ftp-group 4096 wp-content
-rwxrwxr-x+ 1 ftp-user ftp-group 3115 wp-cron.php
drwxrwxr-x+ 13 ftp-user ftp-group 4096 wp-includes
-rwxrwxr-x+ 1 ftp-user ftp-group 2380 wp-links-opml.php
-rwxrwxr-x+ 1 ftp-user ftp-group 3123 wp-load.php
-rwxrwxr-x+ 1 ftp-user ftp-group 34241 wp-login.php
-rwxrwxr-x+ 1 ftp-user ftp-group 8252 wp-mail.php
-rwxrwxr-x+ 1 ftp-user ftp-group 11048 wp-settings.php
I tried to grant "777" to wp-content recursively (plugins, upgrades folders) didn't work, and tried to change the ownership to apache user "www-data", but the plugins are gone in the admin page!
Please Help!
server permissions apache2 plugins wordpress
server permissions apache2 plugins wordpress
asked Nov 15 '16 at 17:27
MohammedSimbaMohammedSimba
42051529
42051529
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Had the same issue just recently and found a fix.
You need to change permissions on the folders inside wp-content folder:
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} ;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} ;
After you've done that, add the following to your wp-config.php file and it should work just fine.
define('FS_METHOD','direct');
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f849795%2fwordpress-unpacking-the-package-could-not-create-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Had the same issue just recently and found a fix.
You need to change permissions on the folders inside wp-content folder:
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} ;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} ;
After you've done that, add the following to your wp-config.php file and it should work just fine.
define('FS_METHOD','direct');
add a comment |
Had the same issue just recently and found a fix.
You need to change permissions on the folders inside wp-content folder:
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} ;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} ;
After you've done that, add the following to your wp-config.php file and it should work just fine.
define('FS_METHOD','direct');
add a comment |
Had the same issue just recently and found a fix.
You need to change permissions on the folders inside wp-content folder:
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} ;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} ;
After you've done that, add the following to your wp-config.php file and it should work just fine.
define('FS_METHOD','direct');
Had the same issue just recently and found a fix.
You need to change permissions on the folders inside wp-content folder:
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} ;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} ;
After you've done that, add the following to your wp-config.php file and it should work just fine.
define('FS_METHOD','direct');
answered Dec 16 '16 at 17:09
Gregory SmithermanGregory Smitherman
3116
3116
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f849795%2fwordpress-unpacking-the-package-could-not-create-directory%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown