Making tiddlywiki available online

230 views
Skip to first unread message

Terces ...

unread,
Oct 16, 2017, 10:49:15 PM10/16/17
to TiddlyWiki
Greetings everyone,

I'm trying to host my own tiddlywiki on my server. For me it is important that I can edit the wiki from anywhere, since I want to do some of my work while I'm away. I would also appreciate not having to save/replace my wiki file all the time (so dropbox solutions are not what I'm looking for).

I tried doing the method mentioned in the wiki:
I got myself the empty.html wiki file
I got myself the store.php
I edited the store.php
I uploaded both files to my webspace
I load the empty.html and change the saving settings
it shows "starting to save wiki"
in the console I see that the POST failed with a 500 internal server error.
URL and data seems to be fine


Is it just me that is having problems with this?

Any help would be greatly appreciated

Mark S.

unread,
Oct 16, 2017, 11:38:31 PM10/16/17
to TiddlyWiki
I recall that with tiddlyspot when you first save you have to use Chrome. Since tiddlyspot uses store.php also, it may be that you need to use Chrome for your own version (can't remember if I needed it for mine).

I'm sure others will have better advice, but it's a start.

Good luck,
Mark

Terces ...

unread,
Oct 17, 2017, 5:41:15 AM10/17/17
to TiddlyWiki
Hi Mark,

Thank you for your fast reply. I'm using Vivaldi which is based on chromium, so I should be fine.
I think it might have to do with my server settings, but I really don't know what it could be. I have increased the file upload limits, so that shouldn't be it...

Terces ...

unread,
Oct 17, 2017, 7:07:22 AM10/17/17
to TiddlyWiki
I uploaded the tiddlywiki and the store.php to a free webhosting service and there it works without any problems. This must be a server config problem, but I just can't seem to find it.

Lost Admin

unread,
Oct 17, 2017, 8:54:00 AM10/17/17
to TiddlyWiki
The 500 server error response indicates the server had a problem. Can you check the server logs?

This is a wild guess, but you should check to make sure that the system user that runs the php script (probably the system user that runs the web server) has write access to the location that the tiddlywiki file is going to be saved to.

Terces ...

unread,
Oct 17, 2017, 8:43:23 PM10/17/17
to TiddlyWiki
I found three issues and finally solved my problem.

1. store.php used the split() function, which isn't just deprecated since php 5, but removed in php 7. I use php7, so that function never worked and the file was never stored. I used preg_split() instead.
2. Apparently I had the wrong permissions set up. Right now the folder and all subfolders are set to chmod 744 and they all belong to user and group www-data. I hope that is right.
3. Somehow the changes I made to the php.ini were not applied, so my upload limits were still set to 2MB. I included a .user.ini file in the subfolders that raise that limit.

Maybe someone can tell me more elegant solutions. Also I am still stuck with two problems:

1. I'm getting a php error: Got error 'PHP message: PHP Warning:  preg_split(): No ending delimiter '=' found in /var/www/html/tiddlywiki/store.php on line 243
2. No backups are created. Maybe that is connected to the php error.

Any further help is greatly appreciated.

Terces ...

unread,
Oct 17, 2017, 8:51:43 PM10/17/17
to TiddlyWiki
replacing the pgrep_split() function with explode() solved the backup problem and the php-error problem.
As such, I only have to worry about configs now.
Reply all
Reply to author
Forward
0 new messages