X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FSettings.md;h=7d909afa093a51d06037e0286b2993d3507c0313;hb=46f5fc0a09f836b84bf97a36541a0602080c622a;hp=574ce8dcc1ee9cb2e30fade0287fc8c5308724d4;hpb=8a80ea24d1d8039be6dc532c9db23c60e71eb467;p=friendica.git
diff --git a/doc/Settings.md b/doc/Settings.md
index 574ce8dcc1..7d909afa09 100644
--- a/doc/Settings.md
+++ b/doc/Settings.md
@@ -1,227 +1,245 @@
-Here are some of the built-in features which don't have an exposed interface or are otherwise undocumented. Configuration settings are stored in the file ".htconfig.php". Edit this file with a text editor to make the desired changes. Several system settings are already documented in that file and will not be covered here.
+Settings
+===
+Here are some of the built-in features which don't have an exposed interface or are otherwise undocumented.
+Configuration settings are stored in the file ".htconfig.php".
+Edit this file with a text editor to make the desired changes.
+Several system settings are already documented in that file and will not be covered here.
-**Hot Keys**
+Hot Keys
+---
Friendica traps the following keyboard events:
-* [Pause] - Pauses "Ajax" update activity. This is the process that provides updates without reloading the page. You may wish to pause it to reduce network usage and/or as a debugging aid for javascript developers. A pause indicator will appear at the lower right hand corner of the page. Hit the [pause] key once again to resume.
+* [Pause] - Pauses "Ajax" update activity. This is the process that provides updates without reloading the page. You may wish to pause it to reduce network usage and/or as a debugging aid for javascript developers. A pause indicator will appear at the lower right hand corner of the page. Hit the [pause] key once again to resume.
-* [F8] - Displays a language selector
+Birthday Notifications
+---
+Birthday events are published on your Home page for any friends having a birthday in the coming 6 days.
+In order for your birthday to be discoverable by all of your friends, you must set your birthday (at least the month and day) in your default profile.
+You are not required to provide the year.
-**Birthday Notifications**
+System settings
+---
-Birthday events are published on your Home page for any friends having a birthday in the coming 6 days. In order for your birthday to be discoverable by all of your friends, you must set your birthday (at least the month and day) in your default profile. You are not required to provide the year.
+**Settings should be done in the admin panel** (/admin).
+Those settings found in the database, will always override the settings added to the ``.htconfig.php`` file.
-**Configuration settings**
+###Language
+Please see util/README for information on creating language translations.
-**Language**
+Config:
-System Setting
+ $a->config['system']['language'] = 'name';
-Please see util/README for information on creating language translations.
+###System Theme
-Config:
-```
-$a->config['system']['language'] = 'name';
-```
+Choose a theme to be the default system theme. This can be over-ridden by user profiles.
+Default theme is "default".
+Config:
-**System Theme**
+ $a->config['system']['theme'] = 'theme-name';
-System Setting
+###Proxy Configuration Settings
-Choose a named theme to be the default system theme (which may be over-ridden by user profiles). Default theme is "default".
+If your site uses a proxy to connect to the internet, you may use these settings to communicate with the outside world.
+The outside world still needs to be able to see your website, or this will not be very useful.
Config:
-```
-$a->config['system']['theme'] = 'theme-name';
-```
-
-**Verify SSL Certitificates**
+ $a->config['system']['proxy'] = "http://proxyserver.domain:port";
+ $a->config['system']['proxyuser'] = "username:password";
-Security setting
+###Network Timeout
-By default Friendica allows SSL communication between websites that have "self-signed" SSL certificates. 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. SSL encrypts all the data transmitted between sites (and to your browser) and this allows you to have completely encrypted communications, and also protect your login session from hijacking. Self-signed certificates can be generated for free, without paying top-dollar for a website SSL certificate - however these aren't looked upon favourably in the security community because they can be subject to so-called "man-in-the-middle" attacks. If you wish, you can turn on strict certificate checking. This will mean you cannot connect (at all) to self-signed SSL sites.
+How long to wait on a network communication before timing out.
+Value is in seconds.
+Default is 60 seconds.
+Set to 0 for unlimited (not recommended).
Config:
-```
-$a->config['system']['verifyssl'] = true;
-```
-
-**Allowed Friend Domains**
+ $a->config['system']['curl_timeout'] = 60;
-Corporate/Edu enhancement
+###Banner/Logo
-Comma separated list of domains which are allowed to establish friendships with this site. Wildcards are accepted. (Wildcard support on Windows platforms requires PHP5.3). By default, any (valid) domain may establish friendships with this site.
+Set the content for the site banner.
+The default logo is the Friendica logo and name.
+You may wish to provide HTML/CSS to style and/or position this content, as it may not be themed by default.
Config:
-```
-$a->config['system']['allowed_sites'] = "sitea.com, *siteb.com";
-```
+ $a->config['system']['banner'] = 'My Great Website';
-**Allowed Email Domains**
+###Maximum Image Size
-Corporate/Edu enhancement
-
-Comma separated list of domains which are allowed in email addresses for registrations to this site. This can lockout those who are not part of this organisation from registering here. Wildcards are accepted. (Wildcard support on Windows platforms requires PHP5.3). By default, any (valid) email address is allowed in registrations.
+Maximum size in bytes of uploaded images.
+The default is set to 0, which means no limits.
Config:
-```
-$a->config['system']['allowed_email'] = "sitea.com, *siteb.com";
-```
-**Block Public**
+ $a->config['system']['maximagesize'] = 1000000;
-Corporate/Edu enhancement
+###UTF-8 Regular Expressions
-Set to true to block public access to all otherwise public personal pages on this site unless you are currently logged in. This blocks the viewing of profiles, friends, photos, the site directory and search pages to unauthorised persons. A side effect is that entries from this site will not appear in the global directory. We recommend specifically disabling that also (setting is described elsewhere on this page). Note: this is specifically for sites that desire to be "standalone" and do not wish to be connected to any other Friendica sites. Unauthorised persons will also not be able to request friendship with site members. Default is false. Available in version 2.2 or greater.
+During registrations, full names are checked using UTF-8 regular expressions.
+This requires PHP to have been compiled with a special setting to allow UTF-8 expressions.
+If you are completely unable to register accounts, set no_utf to true.
+The default is set to false (meaning UTF8 regular expressions are supported and working).
Config:
-```
-$a->config['system']['block_public'] = true;
-```
-
-**Force Publish**
+ $a->config['system']['no_utf'] = true;
-Corporate/Edu enhancement
+###Check Full Names
-By default, each user can choose on their Settings page whether or not to have their profile published in the site directory. 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. Default is false.
+You may find a lot of spammers trying to register on your site.
+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.
+If you would like to support people with only one name as their full name, you may change this setting to true.
+Default is false.
Config:
-```
-$a->config['system']['publish_all'] = true;
-```
-
-**Global Directory**
+ $a->config['system']['no_regfullname'] = true;
-Corporate/Edu enhancement
+###OpenID
-This configures the URL to update the global directory, and is supplied in the default configuration. The undocumented part is that if this is not set, the global directory is completely unavailable to the application. This allows a private community to be completely isolated from the global mistpark network.
-
-```
-$a->config['system']['directory_submit_url'] = 'http://dir.friendica.com/submit';
-```
+By default, OpenID may be used for both registration and logins.
+If you do not wish to make OpenID facilities available on your system (at all), set 'no_openid' to true.
+Default is false.
+Config:
-**Proxy Configuration Settings**
+ $a->config['system']['no_openid'] = true;
-If your site uses a proxy to connect to the internet, you may use these settings to communicate with the outside world (the outside world still needs to be able to see your website, or this will not be very useful).
+###Multiple Registrations
+The ability to create "Pages" requires a person to register more than once.
+Your site configuration can block registration (or require approval to register).
+By default, logged in users can register additional accounts for use as pages.
+These will still require approval if REGISTER_APPROVE is selected.
+You may prohibit logged in users from creating additional accounts by setting 'block_extended_register' to true.
+Default is false.
+
Config:
-```
-$a->config['system']['proxy'] = "http://proxyserver.domain:port";
-$a->config['system']['proxyuser'] = "username:password";
-```
+ $a->config['system']['block_extended_register'] = true;
-**Network Timeout**
+Security settings
+---
-How long to wait on a network communication before timing out. Value is in seconds. Default is 60 seconds. Set to 0 for unlimited (not recommended).
+###Verify SSL Certitificates
+
+By default Friendica allows SSL communication between websites that have "self-signed" SSL certificates.
+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.
+SSL encrypts all the data transmitted between sites (and to your browser). This allows you to have completely encrypted communications, and also protect your login session from hijacking.
+Self-signed certificates can be generated for free, without paying top-dollar for a website SSL certificate.
+However these aren't looked upon favourably in the security community because they can be subject to so-called "man-in-the-middle" attacks.
+If you wish, you can turn on strict certificate checking.
+This will mean you cannot connect (at all) to self-signed SSL sites.
Config:
-```
-$a->config['system']['curl_timeout'] = 60;
-```
+ $a->config['system']['verifyssl'] = true;
+
+Corporate/Edu enhancements
+---
-**Banner/Logo**
+###Allowed Friend Domains
-Set the content for the site banner. Default is the Friendica logo and name. You may wish to provide HTML/CSS to style and/or position this content, as it may not be themed by default.
+Comma separated list of domains which are allowed to establish friendships with this site.
+Wildcards are accepted.
+(Wildcard support on Windows platforms requires PHP5.3).
+By default, any (valid) domain may establish friendships with this site.
Config:
-```
-$a->config['system']['banner'] = 'My Great Website';
-```
+ $a->config['system']['allowed_sites'] = "sitea.com, *siteb.com";
-**Maximum Image Size**
+###Allowed Email Domains
-Maximum size in bytes of uploaded images. Default is 0, which means no limits.
+Comma separated list of domains which are allowed in email addresses for registrations to this site.
+This can lockout those who are not part of this organisation from registering here.
+Wildcards are accepted.
+(Wildcard support on Windows platforms requires PHP5.3).
+By default, any (valid) email address is allowed in registrations.
Config:
-```
-$a->config['system']['maximagesize'] = 1000000;
-```
+ $a->config['system']['allowed_email'] = "sitea.com, *siteb.com";
-**UTF-8 Regular Expressions**
+###Block Public
-During registrations, full names are checked using UTF-8 regular expressions. This requires PHP to have been compiled with a special setting to allow UTF-8 expressions. If you are completely unable to register accounts, set no_utf to true. Default is false (meaning UTF8 regular expressions are supported and working).
+Set to true to block public access to all otherwise public personal pages on this site unless you are currently logged in.
+This blocks the viewing of profiles, friends, photos, the site directory and search pages to unauthorised persons.
+A side effect is that entries from this site will not appear in the global directory.
+We recommend specifically disabling that also (setting is described elsewhere on this page).
+Note: this is specifically for sites that desire to be "standalone" and do not wish to be connected to any other Friendica sites.
+Unauthorised persons will also not be able to request friendship with site members.
+Default is false.
+Available in version 2.2 or greater.
Config:
-```
-$a->config['system']['no_utf'] = true;
-```
+ $a->config['system']['block_public'] = true;
-**Check Full Names**
+###Force Publish
-You may find a lot of spammers trying to register on your site. 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. If you would like to support people with only one name as their full name, you may change this setting to true. Default is false.
+By default, each user can choose on their Settings page whether or not to have their profile published in the site directory.
+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.
+Default is false.
Config:
-```
-$a->config['system']['no_regfullname'] = true;
-```
-
-
-**OpenID**
-
-By default, OpenID may be used for both registration and logins. If you do not wish to make OpenID facilities available on your system (at all), set 'no_openid' to true. Default is false.
-
-Config:
-```
-$a->config['system']['no_openid'] = true;
-```
+ $a->config['system']['publish_all'] = true;
-**Multiple Registrations**
+###Global Directory
-The ability to create "Pages" requires a person to register more than once. Your site configuration can block registration (or require approval to register). By default logged in users can register additional accounts for use as pages. These will still require approval if REGISTER_APPROVE is selected. You may prohibit logged in users from creating additional accounts by setting 'block_extended_register' to true. Default is false.
-
-Config:
-```
-$a->config['system']['block_extended_register'] = true;
-```
+This configures the URL to update the global directory, and is supplied in the default configuration.
+The undocumented part is that if this is not set, the global directory is completely unavailable to the application.
+This allows a private community to be completely isolated from the global network.
+ $a->config['system']['directory'] = 'http://dir.friendi.ca';
-**Developer Settings**
+Developer Settings
+---
+### Debugging
Most useful when debugging protocol exchanges and tracking down other communications issues.
Config:
-```
-$a->config['system']['debugging'] = true;
-$a->config['system']['logfile'] = 'logfile.out';
-$a->config['system']['loglevel'] = LOGGER_DEBUG;
-```
-Turns on detailed debugging logs which will be stored in 'logfile.out' (which must be writeable by the webserver). LOGGER_DEBUG will show a good deal of information about system activity but will not include detailed data. You may also select LOGGER_ALL but due to the volume of information we recommend only enabling this when you are tracking down a specific problem. Other log levels are possible but are not being used at the present time.
+ $a->config['system']['debugging'] = true;
+ $a->config['system']['logfile'] = 'logfile.out';
+ $a->config['system']['loglevel'] = LOGGER_DEBUG;
+Turns on detailed debugging logs which will be stored in 'logfile.out' (which must be writeable by the webserver).
+LOGGER_DEBUG will show a good deal of information about system activity but will not include detailed data.
+You may also select LOGGER_ALL but due to the volume of information we recommend only enabling this when you are tracking down a specific problem.
+Other log levels are possible but are not being used at the present time.
-**PHP error logging**
+Please be aware that turning on the logging can fill up the disk space on your server relatively quick.
+You should take preventions with e.g. [logrotate](https://en.wikipedia.org/wiki/Log_rotation) or similar tools.
+
+###PHP error logging
Use the following settings to redirect PHP errors to a file.
Config:
-```
-error_reporting(E_ERROR | E_WARNING | E_PARSE );
-ini_set('error_log','php.out');
-ini_set('log_errors','1');
-ini_set('display_errors', '0');
-```
-
-This will put all PHP errors in the file php.out (which must be writeable by the webserver). Undeclared variables are occasionally referenced in the program and therefore we do not recommend using E_NOTICE or E_ALL. The vast majority of issues reported at these levels are completely harmless. Please report to the developers any errors you encounter in the logs using the recommended settings above. They generally indicate issues which need to be resolved.
-
-If you encounter a blank (white) page when using the application, view the PHP logs - as this almost always indicates an error has occurred.
+ error_reporting(E_ERROR | E_WARNING | E_PARSE );
+ ini_set('error_log','php.out');
+ ini_set('log_errors','1');
+ ini_set('display_errors', '0');
+This will put all PHP errors in the file php.out (which must be writeable by the webserver).
+Undeclared variables are occasionally referenced in the program and therefore we do not recommend using E_NOTICE or E_ALL.
+The vast majority of issues reported at these levels are completely harmless.
+Please report to the developers any errors you encounter in the logs using the recommended settings above.
+They generally indicate issues which need to be resolved.
+If you encounter a blank (white) page when using the application, view the PHP logs - as this almost always indicates an error has occurred.
+*Note*: PHP logging cannot be activated from the admin panel but has to be configured from the ``.htconfig.php`` file.