I posted earlier but it seems to have gone missing. I did as requested and get the following result
memory_limit is 32M
Which makes it clear my request for memory_limit = 64M in user.ini is not working.
I will try and drive a higher limit but I would have thought 32M was enough.
For a limited time I will leave this open
http://tiddlywiki.psat.com.au/MasterDB/phpinfo.php
thanks for your help
Tony
I am getting there, with Your suggested Change, then 128M on the .htaccess I can now open the large tiddlywiki in edit mode and create tiddlers.
The save changes process however does not last long and will not save the file. I need to secure this file/folder given the private nature of the content but at least I have Read only access from any browser which is helpful, next making it savable.
Thanks
Tony
Sorry for being so brief.
Yes, I have saved a small TWC more than once through MTS
It works with a small TWC based on empty.html
See my use of htaccess below.
My main objective is to have my large "materTWC" accessible only to me after entering a password, should I use MTS password, htacces or both?
I then want to be able to save master DB back to the server after making changes. Since the file is large I do not want Autosave.
Small Wiki
.htaccess in the folder contains only;
php_value memory_limit 64M
index.php contains the addition;
ini_set("memory_limit","110M");
I have my larger TWC in a separate folder
.htaccess in the folder contains;
php_value memory_limit 128M
AuthType Basic
AuthName "redacted"
AuthUserFile "PATHredacted/passwd"
require valid-user
When I access my 17MB tiddlyWiki it NOW loads after the memory limit increase however will not save.
I will remove the security in htaccess temporarily and see if this helps.
Thanks once again for your help.
Regards
Tony
I can open index.php?options and select the wiki in question. This updates the mts_options.json file. I can then load my large tiddlywiki however selecting save changes seems to do nothing, and no files are updated on the server.
I wonder if the large TWC has some plugin or save code interfering?
Of course my normal use is opening the file in firefox and using tiddlyfox to save
Regards
Tony
I did not understand the method behind the MTS access management, thanks for explaining. I will try and write a paragraph that may make this easier to grasp for newbees like me, once it is solved.
So now I am endeavoring to use MTS as you may have expected I would have.
All files in each folder has the 0644 permissions set. The tests open on chrome browser
I will report back soon.
Tony
< ?php
ini_set("memory_limit","128M");
// (experimental, doesn't work yet) "no cache" headers
I have applied the update and restored the extra memory settings. The Password Protection of the folder method seems different to my host so I have protected the folder through control panel.
I have been stepping through out previous correspondence to see what issues to address.
The Wiki Loads, I can make changes and since there is no auto save set, I close all, and hit save changes, nothing seems to happen but if left some time later it reports that the tiddlywiki was saved. This is untrue, it does not save as the timestamp as seen on the server does not change and a reload looses the new tiddlers.
There is no error log in the server folder.
I will endeavor to place a reduced wiki with the same plugins and are happy to give you some credentials.
Thanks so much for your help, I may take a week to do the next step given my schedule being full. I am doing a Big Data Course, Building an online shop and completing my tax returns along with a weekend at our country shack.
Regards
Tony
< ?php
ini_set("memory_limit","128M");// (experimental, doesn't work yet) "no cache" headers
Ouch. As you can see, this piece of code is inside an html comment and the opening <?php tag is deliberately broken, so it was a wrong place to put the ini_set function (I haven't noticed that first). On the other hand, in the current dev snapshot 1.4.9 (attached to this post) you may put it there (I've fixed the BOM encoding problem which prevented the headers sending from correct work, now those are part of the main code).
This version also supports working with multiple TWs simultaneously, but be careful: that works correctly only when the TW are opened from the ?wikis page (through the ?wiki=wikiname.html request). I'll make the interface more clear and get rid of this ambiguity in the future versions, but if you use MTS with only one TW, you don't have to worry/change anything anyway.
There is no error log in the server folder.
Right, this is something I should note, logging could be helpful.
I will endeavor to place a reduced wiki with the same plugins and are happy to give you some credentials.
Like I wrote in the letter, I failed to access FTP (although have accessed TW via HTTP), so can't really do much help for now.
Best regards,
Yakov.
I can confirm that around 20MB the saving of changes stops on Linux and a local Apache server.
Can you publish your latest version of MTS.
Best regards, Okido
I can confirm that it is working now on Linux and PHP7.1.10.
Can you consider to add some code for the backup process like here below, around line 359.
Do you have a road map for further development?
Have a nice day, Okido
// first, backup if required
$backupid = preg_replace("/[^0-9\.]/", '', $_POST['backupid']);
if($backupid)
# copy($wikipath, $wikipath . ".$backupid.html");
# make proper backups, by setting year, month, day, hour or minutes
# remove the options from the array that are not needed
mkdir("backup", 0777); # make dir if not present
$requiredBackup = array("Y", "F", "j", "H\h", "i\m");
foreach ($requiredBackup as $text) {
copy($wikipath, str_replace("html", "", $workingFolder . "/backup/" . $wikipath) . date($text) . ".html");
}
file_put_contents($wikipath, $content);
With regards to the backups, I like to have backups once per year/month/day and sometimes hours in case I am testing something.
This schema keeps the amount of backups limited and saves spaces on the drive and I do not have to do manual editing.
With regards to the options interface, does this become the landing place for managing the tw's, similar like a startpage?
With regards to the options interface, does this become the landing place for managing the tw's, similar like a startpage?
This particular RPi is using a wired connection but I don't see why WiFi wouldn't work just the same. As I mentioned it's serving this TWC using your MTS and LAMP, right now to my local network only, but it's also running a PiVPN endpoint so I can VPN into my network and then pull up the TWC. It took a bit of fiddling to get it all working but it seems to be usable & stable now. And a nice side benefit is that I'm future-proofed against all the Firefox problems that are coming!