From 961540160f0924e2b64eb52bc8a0a3c82407468a Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 12 Jan 2016 20:05:16 -0800 Subject: cleanup text in INSTALL.txt --- install/INSTALL.txt | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'install') diff --git a/install/INSTALL.txt b/install/INSTALL.txt index 8ca74c23b..78cea638d 100644 --- a/install/INSTALL.txt +++ b/install/INSTALL.txt @@ -1,6 +1,6 @@ Hubzilla Installation -We've tried very hard to ensure that the Hubzilla will run on commodity +We've tried very hard to ensure that Hubzilla will run on commodity hosting platforms - such as those used to host Wordpress blogs and Drupal websites. It will run on most any Linux VPS system. Windows LAMP platforms such as XAMPP and WAMP are not officially supported at this time - however @@ -29,7 +29,7 @@ issues. Before you begin: Choose a domain name or subdomain name for your server. -The Hubzilla can only be installed into the root of a domain or +Hubzilla can only be installed into the root of a domain or sub-domain, and can not be installed using alternate TCP ports. Decide if you will use SSL and obtain an SSL certificate before software @@ -53,13 +53,14 @@ advice. This is disruptive to the community. That said, we recognise the issues surrounding the current certificate infrastructure and agree there are many problems, but that doesn't change the requirement. -Free "browser-valid" certificates are available from providers such as StartSSL. +Free "browser-valid" certificates are available from providers such as StartSSL +and LetsEncrypt. If you do NOT use SSL, there may be a delay of up to a minute for the initial install script - while we check the SSL port to see if anything responds there. When communicating with new sites, Hubzilla always attempts connection on the SSL port first, before falling back to a less secure connection. If you do not -use SSL, your webserver must not listen on port 443 at all. +use SSL, your webserver MUST NOT listen on port 443 at all. 1. Requirements - Apache with mod-rewrite enabled and "AllowOverride All" so you can use a @@ -137,7 +138,7 @@ use SSL, your webserver must not listen on port 443 at all. cd mywebsite util/update_addon_repo matrix - - Create searchable represenations of the online documentation. You may do this any time + - Create searchable representations of the online documentation. You may do this any time that the documentation is updated. cd mywebsite @@ -177,7 +178,16 @@ Registration errors should all be recoverable automatically. If you get any *critical* failure at this point, it generally indicates the database was not installed correctly. You might wish to move/rename .htconfig.php to another name and empty (called 'dropping') the database -tables, so that you can start fresh. +tables, so that you can start fresh. + +In order for your account to be given administrator access, it should be the +first account created, and the email address provided during registration +must match the "administrator email" address you provided during +installation. Otherwise to give an account administrator access, +add 4096 to the account_roles for that account in the database. + +For your site security there is no way to provide administrator access +using web forms. **************************************************************************** **************************************************************************** @@ -185,7 +195,7 @@ tables, so that you can start fresh. **************************************************************************** **************************************************************************** -8. Set up a cron job or scheduled task to run the poller once every 5-10 +8. Set up a cron job or scheduled task to run the poller once every 10-15 minutes to pick up the recent "public" postings of your friends. Example: cd /base/directory; /path/to/php include/poller.php @@ -201,10 +211,11 @@ You can generally find the location of PHP by executing "which php". If you have troubles with this section please contact your hosting provider for assistance. Hubzilla will not work correctly if you cannot perform this step. -You should also be sure that $a->config['system']['php_path'] is set correctly, -it should look like (changing it to the correct PHP location) +You should also be sure that $a->config['system']['php_path'] is set correctly +in your .htconfig.php file, it should look like (changing it to the correct +PHP location): -$a->config['system']['php_path'] = '/usr/local/php53/bin/php'; +$a->config['system']['php_path'] = '/usr/local/php55/bin/php'; ##################################################################### @@ -221,7 +232,7 @@ $a->config['system']['php_path'] = '/usr/local/php53/bin/php'; Check your database settings. It usually means your database could not be opened or accessed. If the database resides on the same machine, check that -the database server name is the word "localhost". +the database server name is "127.0.0.1" or the word "localhost". ##################################################################### - 500 Internal Error @@ -296,7 +307,7 @@ Retry the installation. As soon as the database has been created, ##################################################################### - Some configurations with "suhosin" security are configured without -an ability to run external processes. The Hubzilla requires this ability. +an ability to run external processes. Hubzilla requires this ability. Following are some notes provided by one of our members. ##################################################################### @@ -386,4 +397,5 @@ MaxRequestWorkers to 70. Here you can read more about Apache performance tuning: https://httpd.apache.org/docs/2.4/misc/perf-tuning.html -There are tons of scripts to help you with fine-tuning your Apache installation. Just search with your favorite search engine 'apache fine-tuning script'. +There are tons of scripts to help you with fine-tuning your Apache installation. +Just search with your favorite search engine 'apache fine-tuning script'. -- cgit v1.2.3 From a076a248bf10b8f98be33afac7cea4e043d49c81 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 18 Jan 2016 14:47:16 -0800 Subject: add db_type to sample htconfig --- install/htconfig.sample.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/htconfig.sample.php b/install/htconfig.sample.php index 21697a951..794afa93b 100755 --- a/install/htconfig.sample.php +++ b/install/htconfig.sample.php @@ -17,7 +17,7 @@ $db_port = 0; // leave 0 for default or set your port $db_user = 'mysqlusername'; $db_pass = 'mysqlpassword'; $db_data = 'mysqldatabasename'; - +$db_type = 0; // use 1 for postgres, 0 for mysql /* * Notice: Many of the following settings will be available in the admin panel -- cgit v1.2.3 From 48495f41e898498a91a1b3d9e8fa1950e60a12de Mon Sep 17 00:00:00 2001 From: redmatrix Date: Fri, 22 Jan 2016 02:22:27 -0800 Subject: provide mechanism for custom .well-known handlers and static files (e.g. for letsencypt ownership verification). Document that if you create a .well-known directory to validate a letsencrypt cert you need to remove it before installing hubzilla. We probably need a check for this in the install checklist. --- install/INSTALL.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'install') diff --git a/install/INSTALL.txt b/install/INSTALL.txt index 78cea638d..22c7ef35f 100644 --- a/install/INSTALL.txt +++ b/install/INSTALL.txt @@ -62,6 +62,14 @@ When communicating with new sites, Hubzilla always attempts connection on the SSL port first, before falling back to a less secure connection. If you do not use SSL, your webserver MUST NOT listen on port 443 at all. +If you use LetsEncrypt to provide certificates and create a file under +.well-known/acme-challenge so that LetsEncrypt can verify your domain ownership, +please remove or rename the .well-known directory as soon as the certificate is +generated. Hubzilla will provide its own handler for ".well-known" services when +it is installed, and an existing directory in this location may prevent some of +these services from working correctly. + + 1. Requirements - Apache with mod-rewrite enabled and "AllowOverride All" so you can use a local .htaccess file. Some folks have successfully used nginx and lighttpd. -- cgit v1.2.3 From 08fbe176276b8f92aec4490d5b0f03a5a4e4fa7c Mon Sep 17 00:00:00 2001 From: Jeroen van Riet Paap Date: Wed, 27 Jan 2016 23:40:33 +0100 Subject: no trailing slash it will break your system --- install/htconfig.sample.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/htconfig.sample.php b/install/htconfig.sample.php index 794afa93b..df39bc9ad 100755 --- a/install/htconfig.sample.php +++ b/install/htconfig.sample.php @@ -37,7 +37,7 @@ $db_type = 0; // use 1 for postgres, 0 for mysql $default_timezone = 'America/Los_Angeles'; -// What is your site name? +// What is your site name? DO NOT ADD A TRAILING SLASH! $a->config['system']['baseurl'] = 'https://myredsite.example'; $a->config['system']['sitename'] = "Hubzilla"; -- cgit v1.2.3 From 9cf105f8ea89165d46cfdfd6dbb729e7647c1fd0 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 4 Feb 2016 23:58:31 -0800 Subject: initial uno config --- install/htconfig.sample.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install') diff --git a/install/htconfig.sample.php b/install/htconfig.sample.php index df39bc9ad..50ce9658b 100755 --- a/install/htconfig.sample.php +++ b/install/htconfig.sample.php @@ -19,6 +19,8 @@ $db_pass = 'mysqlpassword'; $db_data = 'mysqldatabasename'; $db_type = 0; // use 1 for postgres, 0 for mysql +define( 'UNO', 0 ); + /* * Notice: Many of the following settings will be available in the admin panel * after a successful site install. Once they are set in the admin panel, they -- cgit v1.2.3 From a14b87baf25e8a4747318efa7a7b52ad04966af7 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 8 Feb 2016 14:48:11 -0800 Subject: make yet another recommended security header optional - this time because of piwik. Personally I think if you want to track people you really don't understand this project and its history, but whatever.... --- install/htconfig.sample.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'install') diff --git a/install/htconfig.sample.php b/install/htconfig.sample.php index 50ce9658b..f64e2571b 100755 --- a/install/htconfig.sample.php +++ b/install/htconfig.sample.php @@ -46,6 +46,15 @@ $a->config['system']['sitename'] = "Hubzilla"; $a->config['system']['location_hash'] = 'if the auto install failed, put a unique random string here'; +// These lines set additional security headers to be sent with all responses +// You may wish to set transport_security_header to 0 if your server already sends +// this header. content_security_policy may need to be disabled if you wish to +// run the piwik analytics plugin or include other offsite resources on a page + +$a->config['system']['transport_security_header'] = 1; +$a->config['system']['content_security_policy'] = 1; + + // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED. // Be certain to create your own personal account before setting // REGISTER_CLOSED. 'register_text' (if set) will be displayed prominently on -- cgit v1.2.3 From d04aef4c44a867453dc815b901de7f7cdadfb15f Mon Sep 17 00:00:00 2001 From: Jeroen van Riet Paap Date: Fri, 12 Feb 2016 17:17:26 +0100 Subject: don't confuse people with matrix --- install/INSTALL.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install') diff --git a/install/INSTALL.txt b/install/INSTALL.txt index 22c7ef35f..37faddc55 100644 --- a/install/INSTALL.txt +++ b/install/INSTALL.txt @@ -135,16 +135,16 @@ these services from working correctly. cd mywebsite - Then you should clone the addon repository (separately). We'll give this repository - a nickname of 'matrix'. You can pull in other hubzilla addon repositories by + a nickname of 'hzaddons'. You can pull in other hubzilla addon repositories by giving them different nicknames. - util/add_addon_repo https://github.com/redmatrix/hubzilla-addons.git matrix + util/add_addon_repo https://github.com/redmatrix/hubzilla-addons.git hzaddons - For keeping the addon tree updated, you should be on your top level website directory and issue an update command for that repository. cd mywebsite - util/update_addon_repo matrix + util/update_addon_repo hzaddons - Create searchable representations of the online documentation. You may do this any time that the documentation is updated. -- cgit v1.2.3 From 4da7fcb41dd97669305551914964df57ffc22ee7 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 17 Feb 2016 16:24:26 -0800 Subject: schema updates for iconfig --- install/schema_mysql.sql | 13 +++++++++++++ install/schema_postgres.sql | 11 +++++++++++ install/update.php | 39 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 62 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 3d7ea41df..bb6ad24a2 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -543,6 +543,19 @@ CREATE TABLE IF NOT EXISTS `hubloc` ( KEY `hubloc_error` (`hubloc_error`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +CREATE TABLE IF NOT EXISTS `iconfig` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `iid` int(11) NOT NULL DEFAULT '0', + `cat` char(255) NOT NULL DEFAULT '', + `k` char(255) NOT NULL DEFAULT '', + `v` mediumtext NOT NULL, + PRIMARY KEY (`id`), + KEY `iid` (`iid`), + KEY `cat` (`cat`), + KEY `k` (`k`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE IF NOT EXISTS `issue` ( `issue_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `issue_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 5cabbc2c9..2d9bffdec 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -538,6 +538,17 @@ create index "hubloc_primary" on hubloc ("hubloc_primary"); create index "hubloc_orphancheck" on hubloc ("hubloc_orphancheck"); create index "hubloc_error" on hubloc ("hubloc_error"); create index "hubloc_deleted" on hubloc ("hubloc_deleted"); +CREATE TABLE "iconfig" ( + "id" serial NOT NULL, + "iid" bigint NOT NULL DEFAULT '0', + "cat" text NOT NULL DEFAULT '', + "k" text NOT NULL DEFAULT '', + "v" text NOT NULL DEFAULT '', + PRIMARY_KEY("id") +); +create index "iconfig_iid" on iconfig ("iid"); +create index "iconfig_cat" on iconfig ("cat"); +create index "iconfig_k" on iconfig ("k"); CREATE TABLE "issue" ( "issue_id" serial NOT NULL, "issue_created" timestamp NOT NULL DEFAULT '0001-01-01 00:00:00', diff --git a/install/update.php b/install/update.php index 24f4f21d5..e96bda03c 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ Date: Thu, 18 Feb 2016 00:20:08 -0800 Subject: iconfig - add sharing variable --- install/schema_mysql.sql | 4 +++- install/schema_postgres.sql | 2 ++ install/update.php | 14 ++++++++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) (limited to 'install') diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index bb6ad24a2..693cad1a8 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -550,10 +550,12 @@ CREATE TABLE IF NOT EXISTS `iconfig` ( `cat` char(255) NOT NULL DEFAULT '', `k` char(255) NOT NULL DEFAULT '', `v` mediumtext NOT NULL, + `sharing` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `iid` (`iid`), KEY `cat` (`cat`), - KEY `k` (`k`) + KEY `k` (`k`), + KEY `sharing` (`sharing`), ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `issue` ( diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 2d9bffdec..964ca5966 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -544,11 +544,13 @@ CREATE TABLE "iconfig" ( "cat" text NOT NULL DEFAULT '', "k" text NOT NULL DEFAULT '', "v" text NOT NULL DEFAULT '', + "sharing" int NOT NULL DEFAULT '0', PRIMARY_KEY("id") ); create index "iconfig_iid" on iconfig ("iid"); create index "iconfig_cat" on iconfig ("cat"); create index "iconfig_k" on iconfig ("k"); +create index "iconfig_sharing" on iconfig ("sharing"); CREATE TABLE "issue" ( "issue_id" serial NOT NULL, "issue_created" timestamp NOT NULL DEFAULT '0001-01-01 00:00:00', diff --git a/install/update.php b/install/update.php index e96bda03c..d21295be7 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ Date: Tue, 23 Feb 2016 19:50:45 +0000 Subject: Remove stray comma --- install/schema_mysql.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 693cad1a8..161c174e5 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -555,7 +555,7 @@ CREATE TABLE IF NOT EXISTS `iconfig` ( KEY `iid` (`iid`), KEY `cat` (`cat`), KEY `k` (`k`), - KEY `sharing` (`sharing`), + KEY `sharing` (`sharing`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `issue` ( -- cgit v1.2.3 From 6300f47cdcd921141b8f98b71d373d53aa3d80f2 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 24 Feb 2016 16:59:50 -0800 Subject: schema change to support channel move (a completely different operation than channel clone) --- install/schema_mysql.sql | 4 +++- install/schema_postgres.sql | 2 ++ install/update.php | 17 ++++++++++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 161c174e5..07a88cf0a 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -230,6 +230,7 @@ CREATE TABLE IF NOT EXISTS `channel` ( `channel_w_like` int(10) unsigned NOT NULL DEFAULT '0', `channel_removed` tinyint(1) NOT NULL DEFAULT '0', `channel_system` tinyint(1) NOT NULL DEFAULT '0', + `channel_moved` char(255) NOT NULL DEFAULT '', PRIMARY KEY (`channel_id`), UNIQUE KEY `channel_address_unique` (`channel_address`), KEY `channel_account_id` (`channel_account_id`), @@ -268,7 +269,8 @@ CREATE TABLE IF NOT EXISTS `channel` ( KEY `channel_w_like` (`channel_w_like`), KEY `channel_removed` (`channel_removed`), KEY `channel_system` (`channel_system`), - KEY `channel_lastpost` (`channel_lastpost`) + KEY `channel_lastpost` (`channel_lastpost`), + KEY `channel_moved` (`channel_moved`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `chat` ( diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 964ca5966..3302ef6c0 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -225,6 +225,7 @@ CREATE TABLE "channel" ( "channel_w_like" bigint NOT NULL DEFAULT '128', "channel_removed" smallint NOT NULL DEFAULT '0', "channel_system" smallint NOT NULL DEFAULT '0', + "channel_moved" text NOT NULL DEFAULT '', PRIMARY KEY ("channel_id"), UNIQUE ("channel_address") ); @@ -265,6 +266,7 @@ create index "channel_dirdate" on channel ("channel_dirdate"); create index "channel_lastpost" on channel ("channel_lastpost"); create index "channel_removed" on channel ("channel_removed"); create index "channel_system" on channel ("channel_system"); +create index "channel_moved" on channel ("channel_moved"); CREATE TABLE "chat" ( "chat_id" serial NOT NULL, "chat_room" bigint NOT NULL DEFAULT '0', diff --git a/install/update.php b/install/update.php index d21295be7..0f9b3ab28 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ Date: Mon, 29 Feb 2016 19:31:52 -0800 Subject: abconfig --- install/schema_mysql.sql | 14 ++++++++++++++ install/schema_postgres.sql | 13 +++++++++++++ install/update.php | 43 +++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 68 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 07a88cf0a..01cf97674 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -1,4 +1,18 @@ +CREATE TABLE IF NOT EXISTS `abconfig` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `chan` char(255) NOT NULL DEFAULT '', + `xchan` char(255) NOT NULL DEFAULT '', + `cat` char(255) NOT NULL DEFAULT '', + `k` char(255) NOT NULL DEFAULT '', + `v` mediumtext NOT NULL, + PRIMARY KEY (`id`), + KEY `chan` (`chan`), + KEY `xchan` (`xchan`), + KEY `cat` (`cat`), + KEY `k` (`k`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + CREATE TABLE IF NOT EXISTS `abook` ( `abook_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `abook_account` int(10) unsigned NOT NULL DEFAULT '0', diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 3302ef6c0..0ff78e873 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -1,3 +1,16 @@ +CREATE TABLE "abconfig" ( + "id" serial NOT NULL, + "chan" text NOT NULL, + "xchan" text NOT NULL, + "cat" text NOT NULL, + "k" text NOT NULL, + "v" text NOT NULL, + PRIMARY KEY ("id") +); +create index "abconfig_chan" on abconfig ("chan"); +create index "abconfig_xchan" on abconfig ("xchan"); +create index "abconfig_cat" on abconfig ("cat"); +create index "abconfig_k" on abconfig ("k"); CREATE TABLE "abook" ( "abook_id" serial NOT NULL, "abook_account" bigint NOT NULL, diff --git a/install/update.php b/install/update.php index 0f9b3ab28..bfd01494f 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ Date: Tue, 1 Mar 2016 17:54:52 +0100 Subject: fix typo in postgres schema --- install/schema_postgres.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 0ff78e873..a7cd5875c 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -560,7 +560,7 @@ CREATE TABLE "iconfig" ( "k" text NOT NULL DEFAULT '', "v" text NOT NULL DEFAULT '', "sharing" int NOT NULL DEFAULT '0', - PRIMARY_KEY("id") + PRIMARY KEY("id") ); create index "iconfig_iid" on iconfig ("iid"); create index "iconfig_cat" on iconfig ("cat"); -- cgit v1.2.3 From 32c23ef562fc963c2972c51895b4cfa71743e495 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 10 Mar 2016 15:43:59 -0800 Subject: some minor cleanups --- install/INSTALL.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install') diff --git a/install/INSTALL.txt b/install/INSTALL.txt index 37faddc55..1d3811501 100644 --- a/install/INSTALL.txt +++ b/install/INSTALL.txt @@ -67,7 +67,8 @@ If you use LetsEncrypt to provide certificates and create a file under please remove or rename the .well-known directory as soon as the certificate is generated. Hubzilla will provide its own handler for ".well-known" services when it is installed, and an existing directory in this location may prevent some of -these services from working correctly. +these services from working correctly. This should not be a problem with Apache, +but may be an issue with nginx or other web server platforms. 1. Requirements -- cgit v1.2.3 From 9abd95fad3784a10fc48bc40f9b8a75d7d74edda Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 31 Mar 2016 16:06:03 -0700 Subject: static App --- install/INSTALL.txt | 6 +++--- install/htconfig.sample.php | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'install') diff --git a/install/INSTALL.txt b/install/INSTALL.txt index 1d3811501..18cf4a1db 100644 --- a/install/INSTALL.txt +++ b/install/INSTALL.txt @@ -220,11 +220,11 @@ You can generally find the location of PHP by executing "which php". If you have troubles with this section please contact your hosting provider for assistance. Hubzilla will not work correctly if you cannot perform this step. -You should also be sure that $a->config['system']['php_path'] is set correctly +You should also be sure that App::$config['system']['php_path'] is set correctly in your .htconfig.php file, it should look like (changing it to the correct PHP location): -$a->config['system']['php_path'] = '/usr/local/php55/bin/php'; +App::$config['system']['php_path'] = '/usr/local/php55/bin/php'; ##################################################################### @@ -353,7 +353,7 @@ are NOT called with -d suhosin.executor.func.blacklist=none. So the simple solution is to put the correct parameters into .htconfig.php: // Location of PHP command line processor - $a->config['system']['php_path'] = '/usr/bin/php -d suhosin.executor.func.blacklist=none + App::$config['system']['php_path'] = '/usr/bin/php -d suhosin.executor.func.blacklist=none -d suhosin.executor.eval.blacklist=none'; diff --git a/install/htconfig.sample.php b/install/htconfig.sample.php index f64e2571b..1d9dc1a13 100755 --- a/install/htconfig.sample.php +++ b/install/htconfig.sample.php @@ -41,9 +41,9 @@ $default_timezone = 'America/Los_Angeles'; // What is your site name? DO NOT ADD A TRAILING SLASH! -$a->config['system']['baseurl'] = 'https://myredsite.example'; -$a->config['system']['sitename'] = "Hubzilla"; -$a->config['system']['location_hash'] = 'if the auto install failed, put a unique random string here'; +App::$config['system']['baseurl'] = 'https://myredsite.example'; +App::$config['system']['sitename'] = "Hubzilla"; +App::$config['system']['location_hash'] = 'if the auto install failed, put a unique random string here'; // These lines set additional security headers to be sent with all responses @@ -51,8 +51,8 @@ $a->config['system']['location_hash'] = 'if the auto install failed, put a uniqu // this header. content_security_policy may need to be disabled if you wish to // run the piwik analytics plugin or include other offsite resources on a page -$a->config['system']['transport_security_header'] = 1; -$a->config['system']['content_security_policy'] = 1; +App::$config['system']['transport_security_header'] = 1; +App::$config['system']['content_security_policy'] = 1; // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED. @@ -65,13 +65,13 @@ $a->config['system']['content_security_policy'] = 1; // In order to perform system administration via the admin panel, admin_email // must precisely match the email address of the person logged in. -$a->config['system']['register_policy'] = REGISTER_OPEN; -$a->config['system']['register_text'] = ''; -$a->config['system']['admin_email'] = ''; +App::$config['system']['register_policy'] = REGISTER_OPEN; +App::$config['system']['register_text'] = ''; +App::$config['system']['admin_email'] = ''; // Location of PHP command line processor -$a->config['system']['php_path'] = 'php'; +App::$config['system']['php_path'] = 'php'; // Configure how we communicate with directory servers. @@ -80,7 +80,7 @@ $a->config['system']['php_path'] = 'php'; // DIRECTORY_MODE_PRIMARY = main directory server (you do not want this unless you are operating your own realm. one per realm.) // DIRECTORY_MODE_STANDALONE = "off the grid" or private directory services (only local site members in directory) -$a->config['system']['directory_mode'] = DIRECTORY_MODE_NORMAL; +App::$config['system']['directory_mode'] = DIRECTORY_MODE_NORMAL; // PHP error logging setup -- cgit v1.2.3 From c0bdcfedeb8c5b8753587ac77d5b90d48698ec66 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Fri, 8 Apr 2016 05:10:36 -0700 Subject: log if the session handler fails and surface the ssl_cookie config setting --- install/htconfig.sample.php | 1 + 1 file changed, 1 insertion(+) (limited to 'install') diff --git a/install/htconfig.sample.php b/install/htconfig.sample.php index 1d9dc1a13..5e506225e 100755 --- a/install/htconfig.sample.php +++ b/install/htconfig.sample.php @@ -53,6 +53,7 @@ App::$config['system']['location_hash'] = 'if the auto install failed, put a uni App::$config['system']['transport_security_header'] = 1; App::$config['system']['content_security_policy'] = 1; +App::$config['system']['ssl_cookie_protection'] = 1; // Your choices are REGISTER_OPEN, REGISTER_APPROVE, or REGISTER_CLOSED. -- cgit v1.2.3