diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2018-02-16 01:52:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 01:52:38 +0100 |
commit | 2e6b9ed3b9d5c813b0136230f6ac659df9ed46e7 (patch) | |
tree | 4c4201ed20c08f8f85c769e341512c3c7c78f209 /doc/md/Troubleshooting.md | |
parent | 8b48e36594394e367cbb33c7ad1a679ea57c374d (diff) | |
parent | 48679a159ed2e419f207d0be2e03e1a4f0e24f1d (diff) | |
download | Shaarli-2e6b9ed3b9d5c813b0136230f6ac659df9ed46e7.tar.gz Shaarli-2e6b9ed3b9d5c813b0136230f6ac659df9ed46e7.tar.zst Shaarli-2e6b9ed3b9d5c813b0136230f6ac659df9ed46e7.zip |
Merge pull request #1084 from virtualtam/doc/updates
Documentation: cleanup, update references to config(.json)?.php
Diffstat (limited to 'doc/md/Troubleshooting.md')
-rw-r--r-- | doc/md/Troubleshooting.md | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/doc/md/Troubleshooting.md b/doc/md/Troubleshooting.md index b2d86d40..570f6956 100644 --- a/doc/md/Troubleshooting.md +++ b/doc/md/Troubleshooting.md | |||
@@ -63,7 +63,7 @@ Related threads: | |||
63 | 63 | ||
64 | ### I forgot my password! | 64 | ### I forgot my password! |
65 | 65 | ||
66 | Delete the file `data/config.php` and display the page again. You will be asked for a new login/password. | 66 | Delete the file `data/config.json.php` and display the page again. You will be asked for a new login/password. |
67 | 67 | ||
68 | ### I'm locked out - Login bruteforce protection | 68 | ### I'm locked out - Login bruteforce protection |
69 | 69 | ||
@@ -97,7 +97,7 @@ php56 1 | |||
97 | 97 | ||
98 | ```php | 98 | ```php |
99 | //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. | 99 | //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. |
100 | // FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html | 100 | // FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html |
101 | //if (strpos($status,'200 OK')) $title=html_extract_title($data); | 101 | //if (strpos($status,'200 OK')) $title=html_extract_title($data); |
102 | ``` | 102 | ``` |
103 | 103 | ||
@@ -106,11 +106,11 @@ php56 1 | |||
106 | 106 | ||
107 | ### Dates are not properly formatted | 107 | ### Dates are not properly formatted |
108 | 108 | ||
109 | 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 :-( ) | 109 | Shaarli tries to sniff the language of the browser (using `HTTP_ACCEPT_LANGUAGE` headers) |
110 | 110 | and choose a date format accordingly. But Shaarli can only use the date formats | |
111 | ### Problems on CentOS servers | 111 | (and more generally speaking, the locales) provided by the webserver. |
112 | 112 | So even if you have a browser in French, you may end up with dates in US format | |
113 | On **CentOS**/RedHat derivatives, you may need to install the `php-mbstring` package. | 113 | (it's the case on sebsauvage.net :-( ) |
114 | 114 | ||
115 | ### My session expires! I can't stay logged in | 115 | ### My session expires! I can't stay logged in |
116 | 116 | ||
@@ -126,7 +126,3 @@ This can be caused by several things: | |||
126 | ## Sessions do not seem to work correctly on your server | 126 | ## Sessions do not seem to work correctly on your server |
127 | 127 | ||
128 | 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](http://curl.haxx.se/rfc/cookie_spec.html)). | 128 | 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](http://curl.haxx.se/rfc/cookie_spec.html)). |
129 | |||
130 | ### pubsubhubbub support | ||
131 | |||
132 | Download [publisher.php](https://pubsubhubbub.googlecode.com/git/publisher_clients/php/library/publisher.php) at the root of your Shaarli installation and set `$GLOBALS['config']['PUBSUBHUB_URL']` in your `config.php` | ||