Saving TiddlyWiki 5 to the server using store.php

On the server, everything in one directory and with all permissions are temporarily installed on 777 (including the directory itself):

I edited the list of users in store.php and checked that the store.php page loaded in the browser without errors.

$USERS = array( 'myuser'=>'mypass', 'UserName2'=>'Password2', 'UserName3'=>'Password3'); 

And set the following on the “Save” tab of the control panel:

  • Wiki Name: myuser
  • Password: mypass
  • Server URL: http://myhostnoerrors/my_dir/store.php
  • Download catalog:.
  • Backup Directory:.

When I click the save button (or try to create a new Tiddler), I see the "Start saving wiki" icon in the upper right corner, but the save icon remains red and the file does not update on my server (even if I update).

The "network" tool for web developers in Firefox shows that the POST request goes to the right place and with the correct information, but returns a 403 Forbidden error.

What am I doing wrong? Has anyone been able to successfully use store.php with version 5.1.7?

+6
source share
2 answers
 mkdir($structure, 0777, true) 

In your mkdirs($dir) function, you create a directory recursively. Therefore, you must give permission to the directory. The default mode is 0777, but it will be ignored on Windows. So give permission for the whole folder.

0
source

We had a similar problem on my raspberry pi with archlinks on it. The solution was to enable the apache " Overwrite " setting and replace the legacy "split" with the implementation of " preg_split " in the store.php script.

0
source

Source: https://habr.com/ru/post/983199/


All Articles