--- eventum-3.1.10-340-gfc2f2394/globals.php~ 2017-05-16 18:18:37.000000000 +0300 +++ eventum-3.1.10-340-gfc2f2394/globals.php 2017-05-17 19:54:53.436574941 +0300 @@ -25,7 +25,7 @@ // define other paths define('APP_TPL_PATH', APP_PATH . '/templates'); -define('APP_TPL_COMPILE_PATH', APP_VAR_PATH . '/cache'); -define('APP_LOCKS_PATH', APP_VAR_PATH . '/lock'); -define('APP_LOG_PATH', APP_VAR_PATH . '/log'); +define('APP_TPL_COMPILE_PATH', '/var/cache/eventum'); +define('APP_LOCKS_PATH', '/var/run/eventum'); +define('APP_LOG_PATH', '/var/log/eventum'); define('APP_ERROR_LOG', APP_LOG_PATH . '/errors.log'); --- eventum-3.1.10-340-gfc2f2394/src/Controller/Setup/SetupController.php~ 2017-05-04 23:47:50.000000000 +0300 +++ eventum-3.1.10-340-gfc2f2394/src/Controller/Setup/SetupController.php 2017-05-17 19:55:50.362400076 +0300 @@ -201,10 +201,6 @@ = "The 'file_uploads' directive needs to be enabled in your PHP.INI file in order for Eventum to work properly."; } - $error = $this->checkPermissions(APP_CONFIG_PATH, "Directory '" . APP_CONFIG_PATH . "'", true); - if (!empty($error)) { - $errors[] = $error; - } $error = $this->checkPermissions(APP_SETUP_FILE, "File '" . APP_SETUP_FILE . "'"); if (!empty($error)) { $errors[] = $error; --- eventum-3.0.8-100-g3543f89/src/Command/MonitorCommand.php~ 2016-01-31 18:24:19.000000000 +0200 +++ eventum-3.0.8-100-g3543f89/src/Command/MonitorCommand.php 2016-02-01 00:16:28.751423105 +0200 @@ -31,17 +31,17 @@ $required_files = array( APP_CONFIG_PATH . '/config.php' => [ 'check_owner' => true, - 'owner' => 'apache', + 'owner' => 'root', 'check_group' => true, - 'group' => 'apache', + 'group' => 'http', 'check_permission' => true, 'permission' => 640, ], APP_CONFIG_PATH . '/setup.php' => [ 'check_owner' => true, - 'owner' => 'apache', + 'owner' => 'root', 'check_group' => true, - 'group' => 'apache', + 'group' => 'http', 'check_permission' => true, 'permission' => 660, 'check_filesize' => true, --- eventum-3.1.5/config/sphinx.conf.php~ 2016-11-13 12:05:37.000000000 +0200 +++ eventum-3.1.5/config/sphinx.conf.php 2016-11-23 03:10:05.855040510 +0200 @@ -1,7 +1,7 @@ #!/usr/bin/php $this->getPdoAdapter(), 'legacy' => new Filesystem(new EventumLegacyAdapter()), - 'local' => new Filesystem(new Local(APP_PATH . '/var/storage/')), + 'local' => new Filesystem(new Local('/var/lib/eventum/storage')), ]; foreach ($setup['adapters'] as $adapter_name => $adapter_config) { --- eventum-3.3.0/contrib/migrate_storage_adapter.php~ 2017-10-05 04:42:47.000000000 +0300 +++ eventum-3.3.0/contrib/migrate_storage_adapter.php 2017-10-08 15:50:45.151352787 +0300 @@ -124,7 +124,7 @@ if ($this->target_adapter === 'local') { // try to set the timestamp on the filesystem to match what is stored in the database - $fs_path = str_replace('local://', APP_PATH . '/var/storage/', $new_path); + $fs_path = str_replace('local://', '/var/lib/eventum/storage/', $new_path); $created_date = strtotime($file['iat_created_date']); touch($fs_path, $created_date); }