From 53ed6d7d1e678d7486337ce67a2f17b30bac21ac Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 26 Jan 2017 18:52:54 +0100 Subject: Generate HTML documentation using MkDocs (WIP) MkDocs is a static site generator geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML file. * http://www.mkdocs.org/ * http://www.mkdocs.org/user-guide/configuration/ Ref. #312 * remove pandoc-generated HTML documentation * move markdown doc to doc/md/, * mkdocs.yml: * generate HTML doc in doc/html * add pages TOC/ordering * use index.md as index page * Makefile: remove execute permissions from generated files * Makefile: rewrite htmlpages GFM to markdown conversion using sed: awk expression aslo matched '][' which causes invalid output on complex links with images or code blocks * Add mkdocs.yml to .gitattributes, exclude this file from release archives * Makefile: rename: htmldoc -> doc_html target * run make doc: pull latest markdown documentation from wiki * run make htmlpages: update html documentation --- doc/Troubleshooting.html | 202 ----------------------------------------------- 1 file changed, 202 deletions(-) delete mode 100644 doc/Troubleshooting.html (limited to 'doc/Troubleshooting.html') diff --git a/doc/Troubleshooting.html b/doc/Troubleshooting.html deleted file mode 100644 index f43e6ed3..00000000 --- a/doc/Troubleshooting.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - Shaarli – Troubleshooting - - - - - - -
- -
-

Troubleshooting

-

Browser

-

Redirection issues (HTTP Referer)

-

Depending on its configuration and installed plugins, the browser may remove or alter (spoof) HTTP referers, thus preventing Shaarli from properly redirecting between pages.

-

See:

- -

Firefox HTTP Referer options

-

HTTP settings are available by browsing about:config, here are the available settings and their values.

-

network.http.sendRefererHeader - determines when to send the Referer HTTP header

- -

network.http.referer.XOriginPolicy - Cross-domain origin policy

- -

network.http.referer.spoofSource - Referer spoofing (~faking)

- -

network.http.referer.trimmingPolicy - trim the URI not to send a full Referer

- -

Firefox, localhost and redirections

-

localhost is not a proper Fully Qualified Domain Name (FQDN); if Firefox has been set up to spoof referers, or only accept requests from the same base domain/host, Shaarli redirections will not work properly.

-

To solve this, assign a local domain to your host, e.g.

-
127.0.0.1 localhost desktop localhost.lan
-::1       localhost desktop localhost.lan
-

and browse Shaarli at http://localhost.lan/.

-

Related threads:

- -

Login

-

I forgot my password!

-

Delete the file data/config.php and display the page again. You will be asked for a new login/password.

-

I'm locked out - Login bruteforce protection

-

Login form is protected against brute force attacks: 4 failed logins will ban the IP address from login for 30 minutes. Banned IPs can still browse links.

-

To remove the current IP bans, delete the file data/ipbans.php

-

List of all login attempts

-

The file data/log.txt shows all logins (successful or failed) and bans/lifted bans.
-Search for failed in this file to look for unauthorized login attempts.

-

Hosting problems

-

Old PHP versions

- -
<IfDefine Free>
-php56 1
-</IfDefine>
- -
//list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive.
-// FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html 
-//if (strpos($status,'200 OK')) $title=html_extract_title($data);
- -

Dates are not properly formatted

-

Shaarli tries to sniff the language of the browser (using HTTP_ACCEPT_LANGUAGE headers) and choose a date format accordingly. But Shaarli can only use the date formats (and more generaly speaking, the locales) provided by the webserver. So even if you have a browser in French, you may end up with dates in US format (it's the case on sebsauvage.net :-( )

-

Problems on CentOS servers

-

On CentOS/RedHat derivatives, you may need to install the php-mbstring package.

-

My session expires! I can't stay logged in

-

This can be caused by several things:

- -

Sessions do not seem to work correctly on your server

-

Follow the instructions in the error message. Make sure you are accessing shaarli via a direct IP address or a proper hostname. If you have no dots in the hostname (e.g. localhost or http://my-webserver/shaarli/), some browsers will not store cookies at all (this respects the HTTP cookie specification).

-

pubsubhubbub support

-

Download publisher.php at the root of your Shaarli installation and set $GLOBALS['config'['PUBSUBHUB_URL'] in your config.php]('PUBSUBHUB_URL']-in-your-config.php`.html)

- - -- cgit v1.2.3