Skip to content

Commit af5f0aa

Browse files
author
jwarnier
committed
- Add and use a $conf["logpath"].
- Fix some comments.
1 parent d53b932 commit af5f0aa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

install/tpl/config.inc.php.master

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,21 @@ $conf["dbmaster_password"] = '{mysql_master_server_ispconfig_password}';
8484

8585

8686
//** Paths
87-
define('ISPC_ROOT_PATH', realpath(dirname(__FILE__).'/../')); // The main ROOT is the parent directory to this file, ie Interface/. NO trailing slashes.
87+
define('ISPC_ROOT_PATH', realpath(dirname(__FILE__).'/../')); // Main ROOT is the parent directory to this file, ie interface/ or server/. NO trailing slashes.
8888
define('ISPC_LIB_PATH', ISPC_ROOT_PATH.'/lib');
8989
define('ISPC_CLASS_PATH', ISPC_ROOT_PATH.'/lib/classes');
9090
define('ISPC_WEB_PATH', ISPC_ROOT_PATH.'/web');
9191
define('ISPC_THEMES_PATH', ISPC_ROOT_PATH.'/web/themes');
9292
define('ISPC_WEB_TEMP_PATH', ISPC_WEB_PATH.'/temp'); // Path for downloads, accessible via browser
9393
define('ISPC_CACHE_PATH', ISPC_ROOT_PATH.'/cache');
94+
define('ISPC_LOG_PATH', '/var/log/ispconfig');
9495

9596
//** Paths (Do not change!)
9697
$conf["rootpath"] = substr(dirname(__FILE__),0,-4);
97-
$conf["fs_div"] = "/"; // File system divider, "\\" on windows and "/"" on linux and unix
98+
$conf["fs_div"] = "/"; // File system separator, "\\" on Windows and "/"" on Linux and UNIX
9899
$conf["classpath"] = $conf["rootpath"].$conf["fs_div"]."lib".$conf["fs_div"]."classes";
99100
$conf["temppath"] = $conf["rootpath"].$conf["fs_div"]."temp";
101+
$conf["logpath"] = ISPC_LOG_PATH;
100102

101103
define("FS_DIV",$conf["fs_div"]);
102104
define("SERVER_ROOT",$conf["rootpath"]);
@@ -117,7 +119,7 @@ $conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools';
117119

118120

119121
//** Logging
120-
$conf["log_file"] = '/var/log/ispconfig/ispconfig.log';
122+
$conf["log_file"] = $conf["logpath"].$conf["fs_div"]."ispconfig.log";
121123
$conf["log_priority"] = {ispconfig_log_priority}; // 0 = Debug, 1 = Warning, 2 = Error
122124

123125

0 commit comments

Comments
 (0)