amazon web services - Can't upload theme to wordpress - AWS Linux -
i've got wordpress running on aws linux instance. can create posts. can upload images. can't upload themes.
having messed permissions stands:
-rwxr-xr-x 1 apache apache 418 sep 25 2013 index.php -rwxr-xr-x 1 apache apache 19935 jan 2 2017 license.txt -rwxr-xr-x 1 apache apache 7413 dec 12 2016 readme.html -rwxr-xr-x 1 apache apache 5447 sep 27 2016 wp-activate.php drwxr-sr-x 9 apache apache 4096 jun 8 14:29 wp-admin -rwxr-xr-x 1 apache apache 364 dec 19 2015 wp-blog-header.php -rwxr-xr-x 1 apache apache 1627 aug 29 2016 wp-comments-post.php -rwxr-xr-x 1 apache apache 2825 jul 27 21:21 wp-config.php drwxr-sr-x 5 apache apache 4096 jul 28 11:53 wp-content -rwxr-xr-x 1 apache apache 3286 may 24 2015 wp-cron.php drwxr-sr-x 18 apache apache 12288 jun 8 14:29 wp-includes -rwxr-xr-x 1 apache apache 2422 nov 21 2016 wp-links-opml.php -rwxr-xr-x 1 apache apache 3301 oct 25 2016 wp-load.php -rwxr-xr-x 1 apache apache 34327 may 12 17:12 wp-login.php -rwxr-xr-x 1 apache apache 8048 jan 11 2017 wp-mail.php -rwxr-xr-x 1 apache apache 16200 apr 6 18:01 wp-settings.php -rwxr-xr-x 1 apache apache 29924 jan 24 2017 wp-signup.php -rwxr-xr-x 1 apache apache 4513 oct 14 2016 wp-trackback.php -rwxr-xr-x 1 apache apache 3065 aug 31 2016 xmlrpc.php
any appreciated. missing obvious?
you need check permissions themes folder inside wp-content folder.
try running following commands if it's centos:
changes ownership apache user , group
chowm -r apache:apache /path-to-wp/wp-content/
change permissions , add setguid
cd /path-to-wp/wp-content/ find . -type d -exec chmod 2775 {} \; find . -type f -exec chmod 664 {} \;
this should resolve file permissions , fix uploads.
Comments
Post a Comment