使用store.php将TiddlyWiki 5保存到服务器

On the server, all in the same directory, and with all permissions set temporarily to 777 (including the directory itself):

I have edited the user list in store.php, and checked that the store.php page loads in the browser without errors.

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

And set the following in the Control Pannel "Saving" tab:

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

When I click the save button (or try to create a new Tiddler), I see the badge "Starting to save wiki" in the upper right, but the save icon stays red, and the file is not updated on my server (even if I refresh).

The "Network" Web Developer Tool in Firefox shows that the POST request is going to the right location and with the right information, but returns a 403 Forbidden error.

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

mkdir($structure, 0777, true)

In Your mkdirs($dir) function You are creating directory recursive . So You have to give permission for the directory. The default Mode is 0777 but it will ignored on Windows. So Give permission for all folder.

Had similar problem on my raspberry pi with an archlinux on it. Solution was to enable apache "Overwrite" setting and replace deprecated "split" by "preg_split" implementation in store.php script.