can't save tw in my own php server

105 views
Skip to first unread message

李晨

unread,
Apr 4, 2019, 1:29:44 AM4/4/19
to TiddlyWiki
hi 

I put my tiddlywiki file in my own server with name "index.html"

I set saving parameters like this:

    wiki name: lichen
    password: 123456
    upload filename: index.html
    upload Directory: .
    upload backup Directory: .

my php version is "PHP 7.0.33-0ubuntu0.16.04.3 (cli) ( NTS )"


when I save tw, the chrome browser says:

Error while saving:

<?php
/***
! User settings

blabla...



how should I do ?


TonyM

unread,
Apr 4, 2019, 2:56:55 AM4/4/19
to TiddlyWiki
Search for tw-reciever which is a newer implimentation of php saver.

Regards
tony

李晨

unread,
Apr 4, 2019, 5:37:25 AM4/4/19
to TiddlyWiki
thanks tony, but still don't work


I modify the password in tw-receiver-server.php as 123456, and upload this file to my server

then I import the plugin_sendwheel_tw-receiver.json in my tw index.html, and set parameters:

secret key: 123456
filename: index.html

then upload this file to my server

I can see my tw using  http://212.129.142.212 , but when I save, browser still tell me: 

Error while saving:

Error
<?php
// set a strong secret key

blabla..





在 2019年4月4日星期四 UTC+8下午2:56:55,TonyM写道:

TonyM

unread,
Apr 4, 2019, 9:09:55 AM4/4/19
to TiddlyWiki
The same error using store.php or tw-Reciver suggests a problem on the server.

Perhaps you need to share more info. Are you sure the php file is not in error

Is it called index.php and names the wiki file in it

Is something in .htaccess interfearing

Does the php have the correct attributes or permissions

Regards
tony

李晨

unread,
Apr 4, 2019, 11:52:43 AM4/4/19
to TiddlyWiki
I think you are right, it's something wrong in my server.  

------------------

here is some infomation:

ubuntu@VM-0-11-ubuntu:/var/www/html$ ls -l
total 1988
-rwxrwxrwx 1 ubuntu ubuntu 2019718 Apr  4 17:24 index.html
-rwxrwxrwx 1 ubuntu ubuntu   10476 Apr  4 17:24 tw-receiver-server.php

and you might see the php file with url: http://212.129.142.212/tw-receiver-server.php

------------------

everything looks right, but it doesn't work




在 2019年4月4日星期四 UTC+8下午9:09:55,TonyM写道:

TonyM

unread,
Apr 4, 2019, 7:49:28 PM4/4/19
to TiddlyWiki

When I go to the same php file I get the following see below. Rather than seeing the content.


It suggests to me php is simply not being processed by the server. That is where I would focus first.

Regards
Tony


Debug Tests

ini setting: file_uploadsOK
ini setting: upload_max_filesize2M
ini setting: post_max_size8M
backups enabledYES
backups max count10
backups directory existsFAIL
backups directory is writableFAIL
this directory is writableOK
external key enabledYES
external key reachableNO
secure connection (https)YES
challenge digest auth modeYES
check data integrity signatureYES
check stale overwrite protectionYES

Notes: 
- Your upload_max_filesize and post_max_size must be at least larger than your wiki filesize 
- On NGINX client_max_body_size is another parameter worth looking at if uploads fail with 413 Request Entity Too Large
Reply all
Reply to author
Forward
0 new messages