Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cloning GS sites to new domains
#23
(2012-03-24, 23:57:15)marrco Wrote:
grassfrog Wrote:Yes, I copied the entire site from a working instance including the .htaccess file, and then CHOWN'd and CHMOD'd as required.  Installing via FTP takes way too long and is prone to errors but SSH works like a charm, except for this little hiccup. Any ideas?

I never user FTP to setup GS. I prefer to wget/unzip/mv or svn export. I don't chmod, just chown to www-data:www-data -R the root and never had a problem. Tested today with actual 3.1 on debian squeeze

It's seven years later now and still in the http://get-simple.info/wiki/installation:migrating site I don't see it written
that one should do a chown.

While the admin php will ask you to chmod to 755, it's irrelevant and doesn't do anything.
Either the files are owned by www-data (or whatever user the webserver (eg Apache) is running under) and then it will have write access to the files; or not, in which case only 777 would be useful. But the latter is a security leak. Some here wrote that it's not -  well I did get my site hacked in a day. In a university server. (A php code (in base64!) was included into one of the php files that I accidentally left on 777).  And when you upload from local PC to server, the file owner will never be www-data.

So the only solution to me seems to chown all files to www-data and make sure that write permission is only set for owner.

It would be nice to have in the migration wiki site, it would have saved me some time.. (I even had to find a new hosting solution as the original one didn't allow me to chown).   I can edit the wiki but would consult with you folks first.
Reply


Messages In This Thread
Cloning GS sites to new domains - by grassfrog - 2012-03-24, 12:54:11
RE: Cloning GS sites to new domains - by dblewett - 2013-04-11, 08:41:06
RE: Cloning GS sites to new domains - by shawn_a - 2013-04-11, 10:21:42
RE: Cloning GS sites to new domains - by shawn_a - 2013-04-11, 11:38:18
RE: Cloning GS sites to new domains - by shawn_a - 2013-04-11, 11:55:11
RE: Cloning GS sites to new domains - by shawn_a - 2013-04-11, 12:01:40
Cloning GS sites to new domains - by ccagle8 - 2012-03-24, 22:23:29
Cloning GS sites to new domains - by grassfrog - 2012-03-24, 23:12:30
Cloning GS sites to new domains - by marrco - 2012-03-24, 23:57:15
RE: Cloning GS sites to new domains - by hoemaco - 2019-09-03, 23:37:35
Cloning GS sites to new domains - by Mark Nielsen - 2012-03-25, 01:03:35
Cloning GS sites to new domains - by shawn_a - 2012-03-25, 01:25:43
Cloning GS sites to new domains - by grassfrog - 2012-03-25, 10:58:25
Cloning GS sites to new domains - by grassfrog - 2012-03-25, 12:17:03
Cloning GS sites to new domains - by Carlos - 2012-03-25, 17:03:20
Cloning GS sites to new domains - by grassfrog - 2012-03-26, 03:36:49
RE: Cloning GS sites to new domains - by jorre - 2013-03-21, 22:30:27



Users browsing this thread: 1 Guest(s)