unix - Wordpress Could not copy file. /var/www/wp-content/upgrade/attitude.tmp/attitude/images/my-space@2x.png -


this problem occurs when try install themes inside wordpress admin console. have tried change owner of /var/www directories (with chown -r <username> /var/www) have setup permission 755 directory. realize problem due file's permission in upgrade directory. file has permission -rw-r--r-- (this directory , files inside supposed created ftp user supplied when installing theme)

do have selinux installed? can check going ssh window , type # sestatus

it should show you

selinux status: enabled/disabled   selinuxfs mount: /selinux   current mode: enforce/permissive  mode config file: enforce  policy version: xx  policy config file: targeted 

if it's on 'enforce', can temporarily change permissive see if that's issue using

# setenforce 0  # getenforce // should return permissive 

try upload then. if works need add directory tell selinux allow httpd write there.

chcon -r -t httpd_sys_rw_content_t directory/path/that/you/want/to/write/to/ 

hope helps


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -