From 600ef06d882db45c25e29c4127b53bce9df8bd6e Mon Sep 17 00:00:00 2001 From: Michael Sprauer Date: Thu, 7 Jul 2016 15:56:51 +0200 Subject: [PATCH] support for sockets --- api/install.php | 1 + config/config-default.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/api/install.php b/api/install.php index 4f257fe..d5d953a 100644 --- a/api/install.php +++ b/api/install.php @@ -20,6 +20,7 @@ if(file_exists("../config/config-user.php")) { echo "Permission denied!"; exit(); } +require_once("../config/config-default.php"); //Get input $input = json_decode(file_get_contents('php://input')); diff --git a/config/config-default.php b/config/config-default.php index 5466095..5661700 100644 --- a/config/config-default.php +++ b/config/config-default.php @@ -29,4 +29,6 @@ $config['nonce_lifetime'] = 15; //Number of rows in domain overview $config['domain_rows'] = 15; +ini_set("mysqli.default_socket", "/var/run/mysqld/mysqld.sock"); + include 'config-user.php';