Loading...
 
Architecture / Installation

Architecture / Installation


Re: Moving files in folder - strategy?

posts: 98 Greece

Back here to report that I was able to make the transfer (database -> directory) in my new hosting server.

The folder I used was the /files folder inside my tiki installation. So the whole path as I see it with plesk -> files tab is /root directory/www.mysite.com/files with permissions 755 (rwx, r-x, r-x) for this folder and 644 (rw-, r- -, r- -) for all the files that were created during the transfer (after I pressed the "move files from database to directory button").

All these files have a long name like 0bf9cde136094db76b166f3ad35a0149 and browser says they are bin files. Actually, all of these were pictures with a couple of pdfs.

Let me put forward a few question, to check if I am doing ok or not.

(a) is the folder / files permissions correct and secure?
(b) is getting these bin files, instead of .jpb or .pdf files ok?
(c) if yes, how do I check these pictures with plesk? If I click them I get an "Unable to read the file or the file format is not supported" error message. Mmmm, why I was expecting a readable file format for these files?
(d) finally, my database should be a lot smaller now, right?

PS. I opened my site from another computer and every pic is in its position, so I believe not major damage done (at least regarding the readability of my site).

note: I am using 12.2

posts: 3665 United States
nikosal wrote:
(a) is the folder / files permissions correct and secure?

Appears so, yes. You can use the Tiki installer to verify that permissions are set correctly and that Tiki can fully read/write to the directory.

(b) is getting these bin files, instead of .jpb or .pdf files ok?

Yes, this is to make it more difficult for people to access the images directly from a URL (thereby by-passing the Tiki security checks. File names are hashed upon upload for your protection.

(c) if yes, how do I check these pictures with plesk? If I click them I get an "Unable to read the file or the file format is not supported" error message. Mmmm, why I was expecting a readable file format for these files?

I'm not sure what Plesk is.... You can check the files via the Tiki File Gallery. Please review the docs for details.

(d) finally, my database should be a lot smaller now, right?

Yes, if you deleted the items from the DB. As I recall, simply "moving" the files does not actually delete the record from the DB.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.