]> git.mxchange.org Git - friendica.git/commitdiff
added hints how to specify a port for the database connection
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Thu, 8 Jun 2017 13:00:50 +0000 (15:00 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Thu, 8 Jun 2017 13:00:50 +0000 (15:00 +0200)
INSTALL.txt
doc/Install.md
doc/htconfig.md
view/templates/htconfig.tpl

index 81dfdfd27219a02febeb1afe15686909317435e4..c42c08971670c59a2c4e39b1120f34e814bea419 100644 (file)
@@ -71,9 +71,14 @@ write or create files in your web directory, create an empty file called
 .htconfig.php and make it writable by the web server.
 
 5. Visit your website with a web browser and follow the instructions. Please 
-note any error messages and correct these before continuing. If you are using
-SSL with a known signature authority (recommended), use the https: link to your
-website. If you are using a self-signed cert or no cert, use the http: link. 
+note any error messages and correct these before continuing.
+
+If you are using SSL with a known signature authority (recommended), use the
+https: link to your website. If you are using a self-signed cert or no cert,
+use the http: link.
+
+If you need to specify a port for the connection to the database, you can do
+so in the host name setting for the database.
 
 6. *If* the automated installation fails for any reason, check the following:
 
index a8ea2c050398631a087b6fccd7dd17238ea05e3c..53df55be067c8535291119d110e910f5608cb800 100644 (file)
@@ -82,6 +82,8 @@ Restart mysql and you should be fine.
 Point your web browser to the new site and follow the instructions.
 Please note any error messages and correct these before continuing.
 
+If you need to specify a port for the connection to the database, you can do so in the host name setting for the database.
+
 *If* the automated installation fails for any reason, check the following:
 
 * Does ".htconfig.php" exist? If not, edit htconfig.php and change the system settings. Rename to .htconfig.php
index 7887184d88b580d1cf51f318e83e6180032bab5d..519c655fb20185ae55a04678a7df3e79cea28f78 100644 (file)
@@ -117,3 +117,10 @@ If more then one account should be able to access the admin panel, seperate the
 If you want to have a more personalized closing line for the notification emails you can set a variable for the admin_name.
 
     $a->config['admin_name'] = "Marvin";
+
+## Database Settings
+
+The configuration variables db_host, db_user, db_pass and db_data are holding your credentials for the database connection.
+If you need to specify a port to access the database, you can do so by appending ":portnumber" to the db_host variable.
+
+               $db_host = 'your.mysqlhost.com:123456';
index 02cf67f39d1ee962f8e7a1f624c5af2e3d582d21..6a156012a282e533a085cca66dca52e48e21c50f 100644 (file)
@@ -1,14 +1,16 @@
 <?php
 
 /* ********************************************************************
- *  The following configuration has to be within the .htconfig file
- *  and will not be overruled by decisions made in the admin panel.
+ *  The following configuration has to be within the .htconfig.php
+ *  file and will not be overruled by decisions made in the admin panel.
  *
  *  See below for variables that may be overruled by the admin panel.
  * ********************************************************************/
 
 // Set the following for your MySQL installation
-// Copy or rename this file to .htconfig.php
+//
+// If you need to specify a port for reacing the database, you can do so by
+// adding ":portnumber" after "your.mysqlhost.com" in the $db_host config.
 
 $db_host = '{{$dbhost}}';
 $db_user = '{{$dbuser}}';