Commit d5edf31b authored by Manfred Kutas's avatar Manfred Kutas

ZP-897 Update the MAPI_SERVER location to be Kopano and backwards

compatible.

Released under the Affero GNU General Public License (AGPL) version 3.
parent aa014666
...@@ -45,5 +45,20 @@ ...@@ -45,5 +45,20 @@
// BackendKopano settings // BackendKopano settings
// ************************ // ************************
// Defines the server to which we want to connect // Defines the server to which we want to connect.
define('MAPI_SERVER', 'http://127.0.0.1:236/zarafa'); //
// Depending on your setup, it might be advisable to change the lines below to one defined with your
// default socket location.
// Normally "default:" points to the default setting ("file:///var/run/kopano/server.sock")
// Examples: define("MAPI_SERVER", "default:");
// define("MAPI_SERVER", "http://localhost:236/kopano");
// define("MAPI_SERVER", "https://localhost:237/kopano");
// define("MAPI_SERVER", "file:///var/run/kopano/server.sock";
// If you are using ZCP >= 7.2.0, set it to the zarafa location, e.g.
// define("MAPI_SERVER", "http://localhost:236/zarafa");
// define("MAPI_SERVER", "https://localhost:237/zarafa");
// define("MAPI_SERVER", "file:///var/run/zarafa/server.sock";
// For ZCP versions prior to 7.2.0 the socket location is different (http(s) sockets are the same):
// define("MAPI_SERVER", "file:///var/run/zarafa";
define('MAPI_SERVER', 'default:');
...@@ -46,7 +46,10 @@ ...@@ -46,7 +46,10 @@
************************************************/ ************************************************/
define("PHP_MAPI_PATH", "/usr/share/php/mapi/"); define("PHP_MAPI_PATH", "/usr/share/php/mapi/");
if (CheckMapiExtVersion('7.2.0')) { if (CheckMapiExtVersion('8.0.0')) {
define('MAPI_SERVER', 'default:');
}
elseif (CheckMapiExtVersion('7.2.0')) {
define('MAPI_SERVER', 'file:///var/run/zarafad/server.sock'); define('MAPI_SERVER', 'file:///var/run/zarafad/server.sock');
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment