diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-07-22 05:02:10 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-08-04 16:02:21 +0200 |
commit | 992af0b9d77cb4fbac2c37ef8d5896042d67a2a3 (patch) | |
tree | 4726baf18e7057eac3f9b6bdb5991fe6117814fc /doc/Troubleshooting.md | |
parent | 96db105e4c0833324f7168edb5673278de8ccd54 (diff) | |
download | Shaarli-992af0b9d77cb4fbac2c37ef8d5896042d67a2a3.tar.gz Shaarli-992af0b9d77cb4fbac2c37ef8d5896042d67a2a3.tar.zst Shaarli-992af0b9d77cb4fbac2c37ef8d5896042d67a2a3.zip |
Doc: sync from Wiki, generate HTML
Closes #291
Fixes #227
Modifications
- HTML content: match the new Wiki structure
- Makefile
- generate a custom HTML sidebar
- include the sidebar on all pages
- infer and prepend page titles
- handle relative links
- add title metadata, e.g. Shaarli - <Page Name>
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'doc/Troubleshooting.md')
-rw-r--r-- | doc/Troubleshooting.md | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/doc/Troubleshooting.md b/doc/Troubleshooting.md new file mode 100644 index 00000000..4adf7c92 --- /dev/null +++ b/doc/Troubleshooting.md | |||
@@ -0,0 +1,60 @@ | |||
1 | #Troubleshooting | ||
2 | ## Login | ||
3 | ### I forgot my password! | ||
4 | |||
5 | Delete the file `data/config.php` and display the page again. You will be asked for a new login/password. | ||
6 | |||
7 | ### I'm locked out - Login bruteforce protection | ||
8 | 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. | ||
9 | |||
10 | To remove the current IP bans, delete the file `data/ipbans.php` | ||
11 | |||
12 | ### List of all login attempts | ||
13 | |||
14 | The file `data/log.txt` shows all logins (successful or failed) and bans/lifted bans. | ||
15 | Search for `failed` in this file to look for unauthorized login attempts. | ||
16 | |||
17 | ## Hosting problems | ||
18 | * On **free.fr** : Please note that free uses php 5.1 and thus you will not have autocomplete in tag editing. Don't forget to create a `sessions` directory at the root of your webspace. Change the file extension to `.php5` or create a `.htaccess` file in the directory where Shaarli is located containing: | ||
19 | |||
20 | ```ini | ||
21 | php 1 | ||
22 | SetEnv PHP_VER 5 | ||
23 | ``` | ||
24 | |||
25 | * If you have an error such as: `Parse error: syntax error, unexpected '=', expecting '(' in /links/index.php on line xxx`, it means that your host is using php4, not php5. Shaarli requires php 5.1. Try changing the file extension to `.php5` | ||
26 | * On **1and1** : If you add the link from the page (and not from the bookmarklet), Shaarli will no be able to get the title of the page. You will have to enter it manually. (Because they have disabled the ability to download a file through HTTP). | ||
27 | * If you have the error `Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /…/index.php on line xxx`, it means that your host has disabled the ability to fetch a file by HTTP in the php config (Typically in 1and1 hosting). Bad host. Change host. Or comment the following lines:[](.html) | ||
28 | |||
29 | ```php | ||
30 | //list($status,$headers,$data) = getHTTP($url,4); // Short timeout to keep the application responsive. | ||
31 | // FIXME: Decode charset according to charset specified in either 1) HTTP response headers or 2) <head> in html | ||
32 | //if (strpos($status,'200 OK')) $title=html_extract_title($data); | ||
33 | ``` | ||
34 | |||
35 | * On hosts which forbid outgoing HTTP requests (such as free.fr), some thumbnails will not work. | ||
36 | * On **lost-oasis**, RSS doesn't work correctly, because of this message at the begining of the RSS/ATOM feed : `<? // tout ce qui est charge ici (generalement des includes et require) est charge en permanence. ?>`. To fix this, remove this message from `php-include/prepend.php` | ||
37 | |||
38 | ### Dates are not properly formatted | ||
39 | 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 :-( ) | ||
40 | |||
41 | ### Problems on CentOS servers | ||
42 | On **CentOS**/RedHat derivatives, you may need to install the `php-mbstring` package. | ||
43 | |||
44 | |||
45 | ### My session expires! I can't stay logged in | ||
46 | This can be caused by several things: | ||
47 | |||
48 | * Your php installation may not have a proper directory setup for session files. (eg. on Free.fr you need to create a `session` directory on the root of your website.) You may need to create the session directory of set it up. | ||
49 | * Most hosts regularly clean the temporary and session directories. Your host may be cleaning those directories too aggressively (eg.OVH hosts), forcing an expire of the session. You may want to set the session directory in your web root. (eg. Create the `sessions` subdirectory and add `ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/../sessions');`. Make sure this directory is not browsable !)[](.html) | ||
50 | * If your IP address changes during surfing, Shaarli will force expire your session for security reasons (to prevent session cookie hijacking). This can happen when surfing from WiFi or 3G (you may have switched WiFi/3G access point), or in some corporate/university proxies which use load balancing (and may have proxies with several external IP addresses). | ||
51 | * Some browser addons may interfer with HTTP headers (ipfuck/ipflood/GreaseMonkey…). Try disabling those. | ||
52 | * You may be using OperaTurbo or OperaMini, which use their own proxies which may change from time to time. | ||
53 | * If you have another application on the same webserver where Shaarli is installed, these application may forcefully expire php sessions. | ||
54 | |||
55 | ## Sessions do not seem to work correctly on your server | ||
56 | 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)).[](.html) | ||
57 | |||
58 | ### pubsubhubbub support | ||
59 | |||
60 | 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`]('PUBSUBHUB_URL']`-in-your-`config.php`.html) | ||