File: localhost.patch

package info (click to toggle)
phppgadmin 5.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,916 kB
  • ctags: 4,657
  • sloc: php: 47,091; sh: 37; sql: 16; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Go through localhost instead of Unix-domain socket because localhost allows
password access by default on Debian; Unix-domain socket uses ident, which
doesn't work through the web server.

--- a/conf/config.inc.php-dist
+++ b/conf/config.inc.php-dist
@@ -15,7 +15,7 @@
 
 	// Hostname or IP address for server.  Use '' for UNIX domain socket.
 	// use 'localhost' for TCP/IP connection on this computer
-	$conf['servers'][0]['host'] = '';
+	$conf['servers'][0]['host'] = 'localhost';
 
 	// Database port on server (5432 is the PostgreSQL default)
 	$conf['servers'][0]['port'] = 5432;