some strange happened me, while migrating websites hoster new vps centos 6, directadmin (and jira image v6, optimized magento , joomla).
i migrated 1 website succesfully, without problems. first one. works charm!
all other websites, same joomla! version, tried copy, had same problems of no single directory or file writable. checked settings, everywhere, far knowledge goes, nothing. copy method same, first one.
what did , tried far:
- .htaccess check (what wrong?)
- permissions check (755 , 644) (these good)
- ownership check , user / group check (as far know ok)
- php.ini check (changed , tried lot, don't know this)
- configuration.php check (all sure)
i tried manually uploading, downloading , extracting using ssh, resetting owner via da.
i tried put in php.ini > open_basedir = /tmp/
, resulted in blank page. (possibly something?)
i can see website, can login backend, can use ftp, can not modify in settings, can not install anything, checked permissions overview , red, like: unwritable, every file , directory. , not good.
additional info:
- old server: php 5.4.16 > new one: php 5.4.15
- old server: mysql 5.5.28 > new one: mysql 5.5.31
- old server: cgi-fcgi > new one: apache2handler
- old server: centos 6 > new one: centos 6
- need know? ask
i kind of desperate, while reuploading, vps reinstalling, etc, etc, doesn't work! can point me right direction?
i guess site running under user not expecting (or ran out of disk space). commands below meant run site webroot, i.e. index.php is:
cd /home/yourwebsite/html
or whatever server path.
wrong user frequent tar default mantain original owner id.
just make images folder 777
chmod -r 777 images
and upload file media manager.
ls -la images/* -rw-r--r-- 1 fasterjoomla fasterjoomla 31 apr 26 13:12 index.html -rw-r--r-- 1 fasterjoomla fasterjoomla 3746 apr 26 13:12 joomla_black.gif -rw-r--r-- 1 apache webserver 2301 jul 16 11:57 test.png
locate freshly uploaded image: beginning of line tell owner , group, example here test.png owned user apache , group webserver.
now change ownership of whole joomla installation except configuration.php, administrator or other files may want protect:
chown -r username:usergroup *
after can restore permissions per standard 555/755 , problem should solved.
chmod -r 555 * chmod -r 755 images logs tmp cache rm -f images/test.png
or whatever appropriate per security policy.
Comments
Post a Comment