]> git.mxchange.org Git - friendica.git/blob - doc/Settings.md
help not doc
[friendica.git] / doc / Settings.md
1 # Settings
2
3 * [Home](help)
4
5 If you are the admin of a Friendica node, you have access to the so called **Admin Panel** where you can configure your Friendica node.
6
7 On the front page of the admin panel you will see a summary of information about your node.
8 These information include the amount of messages currently being processed in the queues.
9 The first number is the number of messages which could not been delivered for various reasons.
10 They will be resend later.
11 You can have a quick glance into that second queus in the "Inspect Queue" section of the admin panel.
12 The second number represents the current number of jobs for the background workers.
13 These worker tasks are prioritised and are done accordingly.
14
15 Then you get an overview of the accounts on your node, which can be moderated in the "Users" section of the panel.
16 As well as an overview of the currently active addons
17 The list is linked, so you can have quick access to the Addon settings.
18 And finally you are informed about the version of Friendica you have installed.
19 If you contact the devs with a bug or problem, please also mention the version of your node.
20
21 The admin panel is seperated into subsections accessible from the side bar of the panel.
22
23 ## Site
24
25 This section of the admin panel contains the main configuration of your Friendica node.
26 It is separated into several sub-section beginning with the basic settings at the top, advancing towards the bottom of the page.
27
28 Most configuration options have a help text in the admin panel.
29 Therefore this document does not yet cover all the options
30
31 ### Basic Settings
32
33 #### Banner/Logo
34
35 Set the content for the site banner.
36 The default logo is the Friendica logo and name.
37 You may wish to provide HTML/CSS to style and/or position this content, as it may not be themed by default.
38
39 #### Language
40
41 This option will set the default language for the node.
42 It is used as fall back setting should Friendica fail to recognize the visitors preferences and can be overwritten by user settings.
43
44 The Friendica community offers some translations.
45 Some more compleate then others.
46 See [this help page](/help/translations) for more information about the translation process.
47
48 #### System Theme
49
50 Choose a theme to be the default system theme.
51 This can be over-ridden by user profiles.
52 Default theme is "duepunto zero" at the moment.
53
54 You may also want to set a special theme for mobile interfaces.
55 Which may or may not be neccessary depending of the mobile friendlyness of the desktop theme you have chosen.
56 The `vier` theme for instance is mobile friendly.
57
58 ### Registration
59
60 #### Register policy
61
62 With this drop down selector you can set the nodes registration policy.
63 You can chose between the following modes:
64
65 * **open**: Everybody can register a new account and start using it right away.
66 * **requires approval**: Everybody can register a new account, but the admin has to approve it before it can be used.
67 * **closed**: No new registrations are possible.
68
69 ##### Invitation based registry
70
71 Additionally to the setting in the admin panel, you can devide if registrations are only possible using an invitation code or not.
72 To enable invitation based registration, you have to set the `invitation_only` setting in the [.htconfig.php](/help/htconfig) file.
73 If you want to use this method, the registration policy has to be set to either *open* or *requires approval*.
74
75 #### Check Full Names
76
77 You may find a lot of spammers trying to register on your site.
78 During testing we discovered that since these registrations were automatic, the "Full Name" field was often set to just an account name with no space between first and last name.
79 If you would like to support people with only one name as their full name, you may change this setting to true.
80 Default is false.
81
82 #### OpenID
83
84 By default, OpenID may be used for both registration and logins.
85 If you do not wish to make OpenID facilities available on your system (at all), set 'no_openid' to true.
86 Default is false.
87
88 #### Multiple Registrations
89
90 The ability to create "Pages" requires a person to register more than once.
91 Your site configuration can block registration (or require approval to register).
92 By default, logged in users can register additional accounts for use as pages.
93 These will still require approval if the registration policy is set to *require approval*
94 You may prohibit logged in users from creating additional accounts by setting *block multible registrations* to true.
95 Default is false.
96
97 ### File upload
98
99 #### Maximum Image Size
100
101 Maximum size in bytes of uploaded images.
102 The default is set to 0, which means no limits.
103
104 ### Policies
105
106 #### Global Directory
107
108 This configures the URL to update the global directory, and is supplied in the default configuration.
109 The undocumented part is that if this is not set, the global directory is completely unavailable to the application.
110 This allows a private community to be completely isolated from the global network.
111
112 #### Force Publish
113
114 By default, each user can choose on their Settings page whether or not to have their profile published in the site directory.
115 This setting forces all profiles on this site to be listed in the site directory and there is no option provided to the user to change it.
116 Default is false.
117
118 #### Block Public
119
120 Set to true to block public access to all otherwise public personal pages on this site unless you are currently logged in.
121 This blocks the viewing of profiles, friends, photos, the site directory and search pages to unauthorised persons.
122 A side effect is that entries from this site will not appear in the global directory.
123 We recommend specifically disabling that also (setting is described elsewhere on this page).
124 Note: this is specifically for sites that desire to be "standalone" and do not wish to be connected to any other Friendica sites.
125 Unauthorised persons will also not be able to request friendship with site members.
126 Default is false.
127 Available in version 2.2 or greater.
128
129 #### Allowed Friend Domains
130
131 Comma separated list of domains which are allowed to establish friendships with this site.
132 Wildcards are accepted.
133 (Wildcard support on Windows platforms requires PHP5.3).
134 By default, any (valid) domain may establish friendships with this site.
135
136 This is useful if you want to setup a closed network for educational groups, cooperations and similar communities that don't want to commuicate with the rest of the network.
137
138 #### Allowed Email Domains
139
140 Comma separated list of domains which are allowed in email addresses for registrations to this site.
141 This can lockout those who are not part of this organisation from registering here.
142 Wildcards are accepted.
143 (Wildcard support on Windows platforms requires PHP5.3).
144 By default, any (valid) email address is allowed in registrations.
145
146 #### Allow Users to set remote_self
147
148 If you enable the `Allow Users to set remote_self` users can select Atom feeds from their contact list being their *remote self* in the advanced contact settings.
149 Which means that postings by the remote self are automatically reposted by Friendica in their names.
150
151 This feature can be used to let the user mirror e.g. blog postings into their Friendica postings.
152 It is disabled by default, as it causes additional load on the server and may be misused to distribute SPAM.
153
154 As admin of the node you can also set this flag directly in the database.
155 Before doing so, you should be sure you know what you do and have a backup of the database.
156
157 ### Advanced
158
159 #### Proxy Configuration Settings
160
161 If your site uses a proxy to connect to the internet, you may use these settings to communicate with the outside world.
162 The outside world still needs to be able to see your website, or this will not be very useful.
163
164 #### Network Timeout
165
166 How long to wait on a network communication before timing out.
167 Value is in seconds.
168 Default is 60 seconds.
169 Set to 0 for unlimited (not recommended).
170
171 #### Verify SSL Certitificates
172
173 By default Friendica allows SSL communication between websites that have "self-signed" SSL certificates.
174 For the widest compatibility with browsers and other networks we do not recommend using self-signed certificates, but we will not prevent you from using them.
175 SSL encrypts all the data transmitted between sites (and to your browser).
176 This allows you to have completely encrypted communications, and also protect your login session from hijacking.
177 Self-signed certificates can be generated for free, without paying top-dollar for a website SSL certificate.
178 However these aren't looked upon favourably in the security community because they can be subject to so-called "man-in-the-middle" attacks.
179 If you wish, you can turn on strict certificate checking.
180 This will mean you cannot connect (at all) to self-signed SSL sites.
181
182 #### Check upstream version
183
184 If this option is enabled your Friendica node will check the upstream version once per day from the github repository.
185 You can select if the stable version or the development version should be checked out.
186 If there is a new version published, you will get notified in the admin panel summary page.
187
188 ### Auto Discovered Contact Directory
189
190 ### Performance
191
192 ### Worker
193
194 This section allows you to configure the background process that is triggered by the `cron` job that was created during the installation.
195 The process does check the available system resources before creating a new worker for a task.
196 Because of this, it may happen that the maximum number of worker processes you allow will not be reached.
197
198 If your server setup does not allow you to use the `proc_open` function of PHP, please disable it in this section.
199
200 The tasks for the background process have priorities.
201 To guarantee that important tasks are executed even though the system has a lot of work to do, it is useful to enable the *fastlane*.
202
203 Should you not be able to run a cron job on your server, you can also activate the *frontend* worker.
204 If you have done so, you can call `example.com/worker` (replace example.com with your actual domain name) on a regular basis from an external servie.
205 This will then trigger the execution of the background process.
206
207 ### Relocate
208
209 ## Users
210
211 This section of the panel let the admin control the users registered on the node.
212
213 If you have selected "Requires approval" for the *Register policy* in the general nodes configuration, new registrations will be listed at the top of the page.
214 There the admin can then approve or disapprove the request.
215
216 Below the new registration block the current accounts on the Friendica node are listed.
217 You can sort the user list by name, email, registration date, date of last login, date of last posting and the account type.
218 Here the admin can also block/unblock users from accessing the node or delete the accounts entirely.
219
220 In the last section of the page admins can create new accounts on the node.
221 The password for the new account will be send by email to the choosen email address.
222
223 ## Addons
224
225 This page is for selecting and configuration of extensions for Friendica which have to be placed into the `/addon` subdirectory of your Friendica installation.
226 You are presented with a long list of available addons.
227 The name of each addon is linked to a separate page for that addon which offers more informations and configuration possibilities.
228 Also shown is the version of the addon and an indicator if the addon is currently active or not.
229
230 When you update your node and the addons they may have to be reloaded.
231 To simplify this process there is a button at the top of the page to reload all active Addons.
232
233 ## Themes
234
235 The Themes section of the admin panel works similar to the Addons section but let you control the themes on your Friendica node.
236 Each theme has a dedicated subpage showing the current status, some information about the theme and a screen-shot of the Friendica interface using the theme.
237 Should the theme offer special settings, admins can set a global default value here.
238
239 You can activate and deactivate themes on their dedicated sub-pages thus making them available for the users of the node.
240 To select a default theme for the Friendica node, see the *Site* section of the admin panel.
241
242 ## Additional Features
243
244 There are several optional features in Friendica like the *dislike* button.
245 In this section of the admin panel you can select a default setting for your node and eventually fix it, so users cannot change the setting anymore.
246
247 ## DB Updates
248
249 Should the database structure of Friendica change, it will apply the changes automatically.
250 In case you are suspecious that the update might not have worked, you can use this section of the admin panel to check the situation.
251
252 ## Inspect Queue
253
254 In the admin panel summary there are two numbers for the message queues.
255 The second number represents messages which could not be delivered and are queued for later retry.
256 If this number goes sky-rocking you might ask yourself which receopiant is not receiving.
257
258 Behind the inspect queue section of the admin panel you will find a list of the messages that could not be delivered.
259 The listing is sorted by the receipiant name so identifying potential broken communication lines should be simple.
260 These lines might be broken for various reasons.
261 The receiving end might be off-line, there might be a high system load and so on.
262
263 Don't panic!
264 Friendica will not queue messages for all time but will sort out *dead* nodes automatically after a while and remove messages from the queue then.
265
266 ## Server Blocklist
267
268 This page allows to block all communications (inbound and outbound) with a specific domain name.
269 Each blocked domain entry requires a reason that will be displayed on the [friendica](/friendica) page.
270 Matching is exact, blocking a domain doesn't block subdomains.
271
272 ## Federation Statistics
273
274 The federation statistics page gives you a short summery of the nodes/servers/pods of the decentralized social network federation your node knows.
275 These numbers are not compleate and only contain nodes from networks Friendica federates directly with.
276
277 ## Delete Item
278
279 Using this page an admin can delete postings and eventually associated discussion threads from their Friendica node.
280 To do so, they need to know the GUID of the posting.
281 This can be found on the `/display` page of the posting, it is the last part of the URL displayed in the browsers navigation bar.
282 You can get to the `/display` page by following the *Link to source*.
283
284 ## Addon Features
285
286 Some of the addons you can install for your Friendica node have settings which have to be set by the admin.
287 All those addons will be listed in this area of the admin panels side bar with their names.
288
289 ## Logs
290
291 The log section of the admin panel is seperated into two pages.
292 On the first, following the "log" link, you can configure how much Friendica shall log.
293 And on the second you can read the log.
294
295 You should not place your logs into any directory that is accessible from the web.
296 If you have to, and you are using the default configuration from Apache, you should choose a name for the logfile ending in ``.log`` or ``.out``.
297 Should you use another web server, please make sure that you have the correct accessrules in place so that your log files are not accessible.
298
299 There are five different log levels: Normal, Trace, Debug, Data and All.
300 Specifying different verbosities of information and data written out to the log file.
301 Normally you should not need to log at all.
302 The *DEBUG* level will show a good deal of information about system activity but will not include detailed data.
303 In the *ALL* level Friendica will log everything to the file.
304 But due to the volume of information we recommend only enabling this when you are tracking down a specific problem.
305
306 **The amount of data can grow the filesize of the logfile quickly**.
307 You should set up some kind of [log rotation](https://en.wikipedia.org/wiki/Log_rotation) to keep the log file from growing too big.
308
309 **Known Issues**: The filename ``friendica.log`` can cause problems depending on your server configuration (see [issue 2209](https://github.com/friendica/friendica/issues/2209)).
310
311 By default PHP warnings and error messages are supressed.
312 If you want to enable those, you have to activate them in the ``.htconfig.php`` file.
313 Use the following settings to redirect PHP errors to a file.
314
315 Config:
316
317         error_reporting(E_ERROR | E_WARNING | E_PARSE );
318         ini_set('error_log','php.out');
319         ini_set('log_errors','1');
320         ini_set('display_errors', '0');
321
322 This will put all PHP errors in the file php.out (which must be writeable by the webserver).
323 Undeclared variables are occasionally referenced in the program and therefore we do not recommend using `E_NOTICE` or `E_ALL`.
324 The vast majority of issues reported at these levels are completely harmless.
325 Please report to the developers any errors you encounter in the logs using the recommended settings above.
326 They generally indicate issues which need to be resolved.
327
328 If you encounter a blank (white) page when using the application, view the PHP logs - as this almost always indicates an error has occurred.
329
330 ## Diagnostics
331
332 In this section of the admin panel you find two tools to investigate what Friendica sees for certain ressources.
333 These tools can help to clarify communication problems.
334
335 For the *probe address* Friendica will display information for the address provided.
336
337 With the second tool *check webfinger* you can request information about the thing identified by a webfinger (`someone@example.com`).
338
339 # Exceptions to the rule
340
341 There are four exceptions to the rule, that all the config will be read from the data base.
342 These are the data base settings, the admin account settings, the path of PHP and information about an eventual installation of the node in a sub-directory of the (sub)domain.
343
344 ## DB Settings
345
346 With the following settings, you specify the data base server, the username and passwort for Friendica and the database to use.
347
348     $db_host = 'your.db.host';
349     $db_user = 'db_username';
350     $db_pass = 'db_password';
351     $db_data = 'database_name';
352
353 ## Admin users
354
355 You can set one, or more, accounts to be *Admin*.
356 By default this will be the one account you create during the installation process.
357 But you can expand the list of email addresses by any used email address you want.
358 Registration of new accounts with a listed email address is not possible.
359
360     $a->config['admin_email'] = 'you@example.com, buddy@example.com';
361
362 ## PHP Path
363
364 Some of Friendicas processes are running in the background.
365 For this you need to specify the path to the PHP binary to be used.
366
367     $a->config['php_path'] = '{{$phpath}}';
368
369 ## Subdirectory configuration
370
371 It is possible to install Friendica into a subdirectory of your webserver.
372 We strongly discurage you from doing so, as this will break federation to other networks (e.g. Diaspora, GNU Socia, Hubzilla)
373 Say you have a subdirectory for tests and put Friendica into a further subdirectory, the config would be:
374
375     $a->path = 'tests/friendica';
376
377 ## Other exceptions
378
379 Furthermore there are some experimental settings, you can read-up in the [Config values that can only be set in .htconfig.php](help/htconfig) section of the documentation.
380