Loading...
 
Architecture / Installation

Architecture / Installation


Unable to write to File Gallery folder

posts: 8

I have migrated an installation of tiki 9.2 to a new hosting. The trouble is that I cannot no matter what I do with folder and file permissions get tiki to either recognise the files in a File Gallery folder OR write new files to that folder. e.g. I get the following error: Cannot write to this file:/public_html/tiki/WIKI_File_Storage/fe1ae73556812e62047270a4df2665f8

Current permissions is 777 but have tried 755 and 775

Any ideas?

posts: 214

Sorry, my first reply was incorrect, I've fixed it:

It looks like you currently have your Path to store files in the file gallery set to: /public_html/tiki/WIKI_File_Storage/ and it is treating it as the full path.
I would try setting to ../../public_html/tiki/WIKI_File_Storage/
or just set the path to: WIKI_File_Storage/
and rerun setup.sh.

setup.sh will set the correct permissions and owner.

Tom

posts: 8

Hi Tom

Thanks for the reply. I had already tried that with no luck although I did not try setup.sh

I don't have shell access so any other way of running setup.sh?

Regards

Mark


posts: 214

Not having shell access would make it more difficult to fix.

The Admin - Tiki Cache/System Admin page (at the bottom) will show you the status of your File Galleries folder.

There are multiple things that could cause the "Cannot write to this file" error.

  • The path not being correct. The error message you pasted showed your path as /public_html/tiki/WIKI_File_Storage/, if the path starts with a /, then it has to be the full path, and the full path would not start with /public_html. Change your path to WIKI_File_Storage/.
  • The permissions have to be correct. The setup.sh probably would have set it to 755.
  • The group needs to be correct (but if the current permissions are really set to 777, the group shouldn't be the problem). The setup.sh probably would have set the owner to apache.


Try those settings and check the Admin - Tiki Cache/System page to see if the folder is writable.

Good luck,
Tom

posts: 8

Hi Tom

I have resolved it but not in a conventional way. I installed another instance on tiki in another folder and upgraded to 9.4 at the same time. Pointed it to the database copied the folder containing files across and voila, it worked. Permissions are the same as other folders

There are other problems such as it is very slow to serve up a page and I get out of Emory errors when browsing to admin,editing and plugins. The hosting company says I should have more ram available but for such a small wiki I don't think this is worth the star expense.

Since this is a company only website I need to restrict access by modding .htaccess

Do you have any views or fixes for out of memory errors?

Thanks very much for the help you have given

Mark


posts: 214

If it was a low memory VPS and you had shell access, I would recommend disabling innodb. I have freed up a lot of ram by doing that, but on shared hosting that probably isn't an option.

Have you added "php_value memory_limit 128M" to your .htaccess?

Using phpmyadmin to optimize your tiki database might speed things up some.

Starting a new topic asking for help with low memory would probably get you some good suggestions.

Tom

posts: 8
Once again thanks Tom