3 // If automatic system installation fails:
6 die('The configuration you did manually contains some mistakes. Please have a look at your .htconfig.php file.');
7 // If you are doing the configuration manually, please remove the line above
10 // Copy or rename this file to .htconfig.php
12 // Why .htconfig.php? Because it contains sensitive information which could
13 // give somebody complete control of your database. Apache's default
14 // configuration denies access to and refuses to serve any file beginning
17 // Then set the following for your MySQL installation
19 $db_host = 'your.mysqlhost.com';
20 $db_user = 'mysqlusername';
21 $db_pass = 'mysqlpassword';
22 $db_data = 'mysqldatabasename';
24 // Set the database connection charset to full Unicode (utf8mb4).
25 // Changing this value will likely corrupt the special characters.
26 // You have been warned.
27 $a->config['system']['db_charset'] = "utf8mb4";
29 // Choose a legal default timezone. If you are unsure, use "America/Los_Angeles".
30 // It can be changed later and only applies to timestamps for anonymous viewers.
32 $default_timezone = 'America/Los_Angeles';
34 // Default system language
36 $a->config['system']['language'] = 'en';
38 // What is your site name?
40 $a->config['sitename'] = "Friendica Social Network";
42 // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED.
43 // Be certain to create your own personal account before setting
44 // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on
45 // the registration page. REGISTER_APPROVE requires you set 'admin_email'
46 // to the email address of an already registered person who can authorise
47 // and/or approve/deny the request.
49 // In order to perform system administration via the admin panel, admin_email
50 // must precisely match the email address of the person logged in.
52 $a->config['register_policy'] = REGISTER_OPEN;
53 $a->config['register_text'] = '';
54 $a->config['admin_email'] = '';
56 // Maximum size of an imported message, 0 is unlimited
58 $a->config['max_import_size'] = 200000;
60 // maximum size of uploaded photos
62 $a->config['system']['maximagesize'] = 800000;
64 // Location of PHP command line processor
66 $a->config['php_path'] = 'php';
68 // Server-to-server private message encryption (RINO) is allowed by default.
69 // set to 0 to disable, 1 to enable
71 $a->config['system']['rino_encrypt'] = 1;
73 // allowed themes (change this from admin panel after installation)
75 $a->config['system']['allowed_themes'] = 'quattro,vier,duepuntozero,smoothly';
77 // default system theme
79 $a->config['system']['theme'] = 'vier';
82 // By default allow pseudonyms
84 $a->config['system']['no_regfullname'] = true;
86 //Deny public access to the local directory
87 //$a->config['system']['block_local_dir'] = false;
89 // Location of the global directory
90 $a->config['system']['directory'] = 'https://dir.friendica.social';
92 // Allowed protocols in link URLs; HTTP protocols always are accepted
93 $a->config['system']['allowed_link_protocols'] = ['ftp', 'ftps', 'mailto', 'cid', 'gopher'];
95 // Authentication cookie lifetime, in days
96 $a->config['system']['auth_cookie_lifetime'] = 7;