File froxlor.sql.patch of Package froxlor
--- install/froxlor.sql.orig 2017-01-25 08:49:59.539319542 +0100
+++ install/froxlor.sql 2017-01-25 08:51:07.595295664 +0100
@@ -1,3 +1,14 @@
+# change path from /var to /srv
+# webspaces: /srv/customers/webs
+# logs: /srv/customers/logs/
+# mails: /srv/customers/mail/
+# tmp: /srv/customers/tmp
+# cgi: /srv/www/cgi-bin/
+# fcgi: /srv/www/php-fcgi-scripts
+# backup: /srv/customers/backups/
+# doc documentroot_prefix /srv/customers/webs/
+
+
DROP TABLE IF EXISTS `ftp_groups`;
CREATE TABLE `ftp_groups` (
`id` int(20) NOT NULL auto_increment,
@@ -396,7 +407,7 @@
('customredirect', 'enabled', '1'),
('customredirect', 'default', '1'),
('perl', 'suexecworkaround', '0'),
- ('perl', 'suexecpath', '/var/www/cgi-bin/'),
+ ('perl', 'suexecpath', '/srv/www/cgi-bin/'),
('login', 'domain_login', '0'),
('login', 'maxloginattempts', '3'),
('login', 'deactivatetime', '900'),
@@ -409,13 +420,13 @@
('phpfpm', 'min_spare_servers', '5'),
('phpfpm', 'max_spare_servers', '35'),
('phpfpm', 'max_requests', '0'),
- ('phpfpm', 'tmpdir', '/var/customers/tmp/'),
+ ('phpfpm', 'tmpdir', '/srv/customers/tmp/'),
('phpfpm', 'peardir', '/usr/share/php/:/usr/share/php5/'),
('phpfpm', 'enabled_ownvhost', '0'),
('phpfpm', 'vhost_httpuser', 'froxlorlocal'),
('phpfpm', 'vhost_httpgroup', 'froxlorlocal'),
('phpfpm', 'idle_timeout', '30'),
- ('phpfpm', 'aliasconfigdir', '/var/www/php-fpm/'),
+ ('phpfpm', 'aliasconfigdir', '/srv/www/php-fpm/'),
('phpfpm', 'defaultini', '1'),
('phpfpm', 'vhost_defaultini', '2'),
('phpfpm', 'fastcgi_ipcdir', '/var/lib/apache2/fastcgi/'),
@@ -423,14 +434,14 @@
('nginx', 'fastcgiparams', '/etc/nginx/fastcgi_params'),
('system', 'lastaccountnumber', '0'),
('system', 'lastguid', '9999'),
- ('system', 'documentroot_prefix', '/var/customers/webs/'),
- ('system', 'logfiles_directory', '/var/customers/logs/'),
+ ('system', 'documentroot_prefix', '/srv/customers/webs/'),
+ ('system', 'logfiles_directory', '/srv/customers/logs/'),
('system', 'ipaddress', 'SERVERIP'),
('system', 'apachereload_command', '/etc/init.d/apache2 reload'),
('system', 'last_traffic_run', '000000'),
('system', 'vmail_uid', '2000'),
('system', 'vmail_gid', '2000'),
- ('system', 'vmail_homedir', '/var/customers/mail/'),
+ ('system', 'vmail_homedir', '/srv/customers/mail/'),
('system', 'vmail_maildirname', 'Maildir'),
('system', 'bind_enable', '1'),
('system', 'bindconf_directory', '/etc/bind/'),
@@ -451,9 +462,9 @@
('system', 'apacheconf_htpasswddir', '/etc/apache2/htpasswd/'),
('system', 'webalizer_quiet', '2'),
('system', 'last_archive_run', '000000'),
- ('system', 'mod_fcgid_configdir', '/var/www/php-fcgi-scripts'),
- ('system', 'mod_fcgid_tmpdir', '/var/customers/tmp'),
- ('system', 'ssl_cert_file', '/etc/apache2/apache2.pem'),
+ ('system', 'mod_fcgid_configdir', '/srv/www/php-fcgi-scripts'),
+ ('system', 'mod_fcgid_tmpdir', '/srv/customers/tmp'),
+ ('system', 'ssl_cert_file', '/etc/apache2/ssl.crt/apache2.pem'),
('system', 'use_ssl', '0'),
('system', 'default_vhostconf', ''),
('system', 'mail_quota_enabled', '0'),
@@ -468,7 +479,7 @@
('system', 'mod_fcgid_peardir', '/usr/share/php/:/usr/share/php5/'),
('system', 'index_file_extension', 'html'),
('system', 'mod_fcgid_maxrequests', '250'),
- ('system', 'ssl_key_file','/etc/apache2/apache2.key'),
+ ('system', 'ssl_key_file','/etc/apache2/ssl.key/apache2.key'),
('system', 'ssl_ca_file', ''),
('system', 'debug_cron', '0'),
('system', 'store_index_file_subs', '1'),
@@ -509,8 +520,8 @@
('system', 'customer_ssl_path', '/etc/ssl/froxlor-custom/'),
('system', 'allow_error_report_admin', '1'),
('system', 'allow_error_report_customer', '0'),
- ('system', 'mdalog', '/var/log/mail.log'),
- ('system', 'mtalog', '/var/log/mail.log'),
+ ('system', 'mdalog', '/var/log/mail'),
+ ('system', 'mtalog', '/var/log/mail'),
('system', 'mdaserver', 'dovecot'),
('system', 'mtaserver', 'postfix'),
('system', 'mailtraffic_enabled', '1'),
@@ -526,7 +537,7 @@
('system', 'letsencryptca', 'production'),
('system', 'letsencryptcountrycode', 'DE'),
('system', 'letsencryptstate', 'Hessen'),
- ('system', 'letsencryptchallengepath', '/var/www/froxlor'),
+ ('system', 'letsencryptchallengepath', '/srv/www/froxlor'),
('system', 'letsencryptkeysize', '4096'),
('system', 'letsencryptreuseold', 0),
('system', 'leenabled', '0'),