Serghey Rodin 9 лет назад
Родитель
Сommit
c59b6230a2
100 измененных файлов с 321 добавлено и 78 удалено
  1. 4 4
      bin/v-list-sys-services
  2. 4 1
      install/debian/7/templates/web/apache2/basedir.stpl
  3. 4 1
      install/debian/7/templates/web/apache2/basedir.tpl
  4. 3 0
      install/debian/7/templates/web/apache2/default.stpl
  5. 3 0
      install/debian/7/templates/web/apache2/default.tpl
  6. 3 3
      install/debian/7/templates/web/apache2/hosting.stpl
  7. 3 2
      install/debian/7/templates/web/apache2/hosting.tpl
  8. 3 0
      install/debian/7/templates/web/apache2/phpcgi.stpl
  9. 3 0
      install/debian/7/templates/web/apache2/phpcgi.tpl
  10. 3 0
      install/debian/7/templates/web/apache2/phpfcgid.stpl
  11. 3 0
      install/debian/7/templates/web/apache2/phpfcgid.tpl
  12. 4 1
      install/debian/8/templates/web/apache2/basedir.stpl
  13. 4 1
      install/debian/8/templates/web/apache2/basedir.tpl
  14. 3 0
      install/debian/8/templates/web/apache2/default.stpl
  15. 3 0
      install/debian/8/templates/web/apache2/default.tpl
  16. 3 3
      install/debian/8/templates/web/apache2/hosting.stpl
  17. 3 3
      install/debian/8/templates/web/apache2/hosting.tpl
  18. 3 0
      install/debian/8/templates/web/apache2/phpcgi.stpl
  19. 3 0
      install/debian/8/templates/web/apache2/phpcgi.tpl
  20. 3 0
      install/debian/8/templates/web/apache2/phpfcgid.stpl
  21. 3 0
      install/debian/8/templates/web/apache2/phpfcgid.tpl
  22. 4 1
      install/rhel/5/templates/web/httpd/basedir.stpl
  23. 4 1
      install/rhel/5/templates/web/httpd/basedir.tpl
  24. 3 0
      install/rhel/5/templates/web/httpd/default.stpl
  25. 3 0
      install/rhel/5/templates/web/httpd/default.tpl
  26. 3 3
      install/rhel/5/templates/web/httpd/hosting.stpl
  27. 3 3
      install/rhel/5/templates/web/httpd/hosting.tpl
  28. 3 0
      install/rhel/5/templates/web/httpd/phpcgi.stpl
  29. 3 0
      install/rhel/5/templates/web/httpd/phpcgi.tpl
  30. 3 0
      install/rhel/5/templates/web/httpd/phpfcgid.stpl
  31. 3 0
      install/rhel/5/templates/web/httpd/phpfcgid.tpl
  32. 4 1
      install/rhel/6/templates/web/httpd/basedir.stpl
  33. 4 1
      install/rhel/6/templates/web/httpd/basedir.tpl
  34. 3 0
      install/rhel/6/templates/web/httpd/default.stpl
  35. 3 0
      install/rhel/6/templates/web/httpd/default.tpl
  36. 3 2
      install/rhel/6/templates/web/httpd/hosting.stpl
  37. 3 2
      install/rhel/6/templates/web/httpd/hosting.tpl
  38. 3 0
      install/rhel/6/templates/web/httpd/phpcgi.stpl
  39. 3 0
      install/rhel/6/templates/web/httpd/phpcgi.tpl
  40. 3 0
      install/rhel/6/templates/web/httpd/phpfcgid.stpl
  41. 3 0
      install/rhel/6/templates/web/httpd/phpfcgid.tpl
  42. 4 1
      install/rhel/7/templates/web/httpd/basedir.stpl
  43. 4 1
      install/rhel/7/templates/web/httpd/basedir.tpl
  44. 3 0
      install/rhel/7/templates/web/httpd/default.stpl
  45. 3 0
      install/rhel/7/templates/web/httpd/default.tpl
  46. 3 3
      install/rhel/7/templates/web/httpd/hosting.stpl
  47. 3 2
      install/rhel/7/templates/web/httpd/hosting.tpl
  48. 3 0
      install/rhel/7/templates/web/httpd/phpcgi.stpl
  49. 3 0
      install/rhel/7/templates/web/httpd/phpcgi.tpl
  50. 3 0
      install/rhel/7/templates/web/httpd/phpfcgid.stpl
  51. 3 0
      install/rhel/7/templates/web/httpd/phpfcgid.tpl
  52. 4 1
      install/ubuntu/12.04/templates/web/apache2/basedir.stpl
  53. 4 1
      install/ubuntu/12.04/templates/web/apache2/basedir.tpl
  54. 3 0
      install/ubuntu/12.04/templates/web/apache2/default.stpl
  55. 3 0
      install/ubuntu/12.04/templates/web/apache2/default.tpl
  56. 3 3
      install/ubuntu/12.04/templates/web/apache2/hosting.stpl
  57. 3 3
      install/ubuntu/12.04/templates/web/apache2/hosting.tpl
  58. 3 0
      install/ubuntu/12.04/templates/web/apache2/phpcgi.stpl
  59. 3 0
      install/ubuntu/12.04/templates/web/apache2/phpcgi.tpl
  60. 3 0
      install/ubuntu/12.04/templates/web/apache2/phpfcgid.stpl
  61. 3 0
      install/ubuntu/12.04/templates/web/apache2/phpfcgid.tpl
  62. 4 1
      install/ubuntu/12.10/templates/web/apache2/basedir.stpl
  63. 4 1
      install/ubuntu/12.10/templates/web/apache2/basedir.tpl
  64. 3 0
      install/ubuntu/12.10/templates/web/apache2/default.stpl
  65. 3 0
      install/ubuntu/12.10/templates/web/apache2/default.tpl
  66. 3 3
      install/ubuntu/12.10/templates/web/apache2/hosting.stpl
  67. 3 3
      install/ubuntu/12.10/templates/web/apache2/hosting.tpl
  68. 3 0
      install/ubuntu/12.10/templates/web/apache2/phpcgi.stpl
  69. 3 0
      install/ubuntu/12.10/templates/web/apache2/phpcgi.tpl
  70. 3 0
      install/ubuntu/12.10/templates/web/apache2/phpfcgid.stpl
  71. 3 0
      install/ubuntu/12.10/templates/web/apache2/phpfcgid.tpl
  72. 4 1
      install/ubuntu/13.04/templates/web/apache2/basedir.stpl
  73. 4 1
      install/ubuntu/13.04/templates/web/apache2/basedir.tpl
  74. 3 0
      install/ubuntu/13.04/templates/web/apache2/default.stpl
  75. 3 0
      install/ubuntu/13.04/templates/web/apache2/default.tpl
  76. 3 2
      install/ubuntu/13.04/templates/web/apache2/hosting.stpl
  77. 3 2
      install/ubuntu/13.04/templates/web/apache2/hosting.tpl
  78. 3 0
      install/ubuntu/13.04/templates/web/apache2/phpcgi.stpl
  79. 3 0
      install/ubuntu/13.04/templates/web/apache2/phpcgi.tpl
  80. 3 0
      install/ubuntu/13.04/templates/web/apache2/phpfcgid.stpl
  81. 3 0
      install/ubuntu/13.04/templates/web/apache2/phpfcgid.tpl
  82. 4 1
      install/ubuntu/13.10/templates/web/apache2/basedir.stpl
  83. 4 1
      install/ubuntu/13.10/templates/web/apache2/basedir.tpl
  84. 3 0
      install/ubuntu/13.10/templates/web/apache2/default.stpl
  85. 3 0
      install/ubuntu/13.10/templates/web/apache2/default.tpl
  86. 3 3
      install/ubuntu/13.10/templates/web/apache2/hosting.stpl
  87. 3 3
      install/ubuntu/13.10/templates/web/apache2/hosting.tpl
  88. 3 0
      install/ubuntu/13.10/templates/web/apache2/phpcgi.stpl
  89. 3 0
      install/ubuntu/13.10/templates/web/apache2/phpcgi.tpl
  90. 3 0
      install/ubuntu/13.10/templates/web/apache2/phpfcgid.stpl
  91. 3 0
      install/ubuntu/13.10/templates/web/apache2/phpfcgid.tpl
  92. 4 1
      install/ubuntu/14.04/templates/web/apache2/basedir.stpl
  93. 4 1
      install/ubuntu/14.04/templates/web/apache2/basedir.tpl
  94. 3 0
      install/ubuntu/14.04/templates/web/apache2/default.stpl
  95. 3 0
      install/ubuntu/14.04/templates/web/apache2/default.tpl
  96. 3 3
      install/ubuntu/14.04/templates/web/apache2/hosting.stpl
  97. 3 3
      install/ubuntu/14.04/templates/web/apache2/hosting.tpl
  98. 3 0
      install/ubuntu/14.04/templates/web/apache2/phpcgi.stpl
  99. 3 0
      install/ubuntu/14.04/templates/web/apache2/phpcgi.tpl
  100. 3 0
      install/ubuntu/14.04/templates/web/apache2/phpfcgid.stpl

+ 4 - 4
bin/v-list-sys-services

@@ -170,8 +170,8 @@ service=$DNS_SYSTEM
 if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
     proc_name='named'
     get_srv_state $service $proc_name
-    str="$str\nNAME='$service' SYSTEM='dns server' STATE='$state' CPU='$cpu'"
-    str="$str MEM='$mem' RTIME='$rtime'"
+    data="$data\nNAME='$service' SYSTEM='dns server' STATE='$state'"
+    data="$data CPU='$cpu' MEM='$mem' RTIME='$rtime'"
 fi
 
 # Checking MAIL system
@@ -265,8 +265,8 @@ if [ ! -z "$FIREWALL_SYSTEM" ] && [ "$FIREWALL_SYSTEM" != 'remote' ]; then
     if [ "$?" -eq 0 ]; then
         state="running"
     fi
-    str="$str\nNAME='$FIREWALL_SYSTEM' SYSTEM='firewall'"
-    str="$str STATE='$state' CPU='0' MEM='0' RTIME='0'"
+    data="$data\nNAME='$FIREWALL_SYSTEM' SYSTEM='firewall'"
+    data="$data STATE='$state' CPU='0' MEM='0' RTIME='0'"
 fi
 
 # Checking FIREWALL Fail2ban extention

+ 4 - 1
install/debian/7/templates/web/apache2/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/debian/7/templates/web/apache2/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/debian/7/templates/web/apache2/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/debian/7/templates/web/apache2/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 3
install/debian/7/templates/web/apache2/hosting.stpl

@@ -15,20 +15,20 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     SSLEngine on
     SSLVerifyClient none
     SSLCertificateFile %ssl_crt%

+ 3 - 2
install/debian/7/templates/web/apache2/hosting.tpl

@@ -21,13 +21,14 @@
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     <IfModule mod_ruid2.c>
         RMode config
         RUidGid %user% %group%

+ 3 - 0
install/debian/7/templates/web/apache2/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/debian/7/templates/web/apache2/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/debian/7/templates/web/apache2/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/debian/7/templates/web/apache2/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/debian/8/templates/web/apache2/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/debian/8/templates/web/apache2/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/debian/8/templates/web/apache2/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/debian/8/templates/web/apache2/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 3
install/debian/8/templates/web/apache2/hosting.stpl

@@ -15,20 +15,20 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     SSLEngine on
     SSLVerifyClient none
     SSLCertificateFile %ssl_crt%

+ 3 - 3
install/debian/8/templates/web/apache2/hosting.tpl

@@ -14,20 +14,20 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     <IfModule mod_ruid2.c>
         RMode config
         RUidGid %user% %group%

+ 3 - 0
install/debian/8/templates/web/apache2/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/debian/8/templates/web/apache2/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/debian/8/templates/web/apache2/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/debian/8/templates/web/apache2/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/rhel/5/templates/web/httpd/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/rhel/5/templates/web/httpd/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/rhel/5/templates/web/httpd/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/rhel/5/templates/web/httpd/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 3
install/rhel/5/templates/web/httpd/hosting.stpl

@@ -15,20 +15,20 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     SSLEngine on
     SSLVerifyClient none
     SSLCertificateFile %ssl_crt%

+ 3 - 3
install/rhel/5/templates/web/httpd/hosting.tpl

@@ -14,20 +14,20 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     <IfModule mod_ruid2.c>
         RMode config
         RUidGid %user% %group%

+ 3 - 0
install/rhel/5/templates/web/httpd/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/rhel/5/templates/web/httpd/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/rhel/5/templates/web/httpd/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/rhel/5/templates/web/httpd/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/rhel/6/templates/web/httpd/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/rhel/6/templates/web/httpd/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/rhel/6/templates/web/httpd/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/rhel/6/templates/web/httpd/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 2
install/rhel/6/templates/web/httpd/hosting.stpl

@@ -15,15 +15,16 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 2
install/rhel/6/templates/web/httpd/hosting.tpl

@@ -14,15 +14,16 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/rhel/6/templates/web/httpd/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/rhel/6/templates/web/httpd/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/rhel/6/templates/web/httpd/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/rhel/6/templates/web/httpd/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/rhel/7/templates/web/httpd/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/rhel/7/templates/web/httpd/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/rhel/7/templates/web/httpd/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/rhel/7/templates/web/httpd/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 3
install/rhel/7/templates/web/httpd/hosting.stpl

@@ -15,20 +15,20 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     SSLEngine on
     SSLVerifyClient none
     SSLCertificateFile %ssl_crt%

+ 3 - 2
install/rhel/7/templates/web/httpd/hosting.tpl

@@ -14,15 +14,16 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/rhel/7/templates/web/httpd/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/rhel/7/templates/web/httpd/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/rhel/7/templates/web/httpd/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/rhel/7/templates/web/httpd/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/ubuntu/12.04/templates/web/apache2/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/ubuntu/12.04/templates/web/apache2/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/12.04/templates/web/apache2/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/12.04/templates/web/apache2/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 3
install/ubuntu/12.04/templates/web/apache2/hosting.stpl

@@ -15,20 +15,20 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     SSLEngine on
     SSLVerifyClient none
     SSLCertificateFile %ssl_crt%

+ 3 - 3
install/ubuntu/12.04/templates/web/apache2/hosting.tpl

@@ -14,20 +14,20 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     <IfModule mod_ruid2.c>
         RMode config
         RUidGid %user% %group%

+ 3 - 0
install/ubuntu/12.04/templates/web/apache2/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/12.04/templates/web/apache2/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/12.04/templates/web/apache2/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/ubuntu/12.04/templates/web/apache2/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/ubuntu/12.10/templates/web/apache2/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/ubuntu/12.10/templates/web/apache2/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/12.10/templates/web/apache2/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/12.10/templates/web/apache2/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 3
install/ubuntu/12.10/templates/web/apache2/hosting.stpl

@@ -15,20 +15,20 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     SSLEngine on
     SSLVerifyClient none
     SSLCertificateFile %ssl_crt%

+ 3 - 3
install/ubuntu/12.10/templates/web/apache2/hosting.tpl

@@ -14,20 +14,20 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     <IfModule mod_ruid2.c>
         RMode config
         RUidGid %user% %group%

+ 3 - 0
install/ubuntu/12.10/templates/web/apache2/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/12.10/templates/web/apache2/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/12.10/templates/web/apache2/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/ubuntu/12.10/templates/web/apache2/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/ubuntu/13.04/templates/web/apache2/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/ubuntu/13.04/templates/web/apache2/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/13.04/templates/web/apache2/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/13.04/templates/web/apache2/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 2
install/ubuntu/13.04/templates/web/apache2/hosting.stpl

@@ -15,15 +15,16 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 2
install/ubuntu/13.04/templates/web/apache2/hosting.tpl

@@ -14,15 +14,16 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/13.04/templates/web/apache2/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/13.04/templates/web/apache2/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/13.04/templates/web/apache2/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/ubuntu/13.04/templates/web/apache2/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/ubuntu/13.10/templates/web/apache2/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/ubuntu/13.10/templates/web/apache2/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/13.10/templates/web/apache2/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/13.10/templates/web/apache2/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 3
install/ubuntu/13.10/templates/web/apache2/hosting.stpl

@@ -15,20 +15,20 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     SSLEngine on
     SSLVerifyClient none
     SSLCertificateFile %ssl_crt%

+ 3 - 3
install/ubuntu/13.10/templates/web/apache2/hosting.tpl

@@ -14,20 +14,20 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     <IfModule mod_ruid2.c>
         RMode config
         RUidGid %user% %group%

+ 3 - 0
install/ubuntu/13.10/templates/web/apache2/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/13.10/templates/web/apache2/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/13.10/templates/web/apache2/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 3 - 0
install/ubuntu/13.10/templates/web/apache2/phpfcgid.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

+ 4 - 1
install/ubuntu/14.04/templates/web/apache2/basedir.stpl

@@ -15,7 +15,10 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 4 - 1
install/ubuntu/14.04/templates/web/apache2/basedir.tpl

@@ -14,7 +14,10 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value open_basedir %docroot%
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/14.04/templates/web/apache2/default.stpl

@@ -15,6 +15,9 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 0
install/ubuntu/14.04/templates/web/apache2/default.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All

+ 3 - 3
install/ubuntu/14.04/templates/web/apache2/hosting.stpl

@@ -15,20 +15,20 @@
         AllowOverride All
         SSLRequireSSL
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     SSLEngine on
     SSLVerifyClient none
     SSLCertificateFile %ssl_crt%

+ 3 - 3
install/ubuntu/14.04/templates/web/apache2/hosting.tpl

@@ -14,20 +14,20 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
-        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value upload_max_filesize 10M
         php_admin_value max_execution_time 20
         php_admin_value post_max_size  8M
         php_admin_value memory_limit 32M
         php_admin_flag mysql.allow_persistent  off
         php_admin_flag safe_mode off
+        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
         php_admin_value session.save_path %home%/%user%/tmp
-        php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
     </Directory>
     <Directory %home%/%user%/web/%domain%/stats>
         AllowOverride All
     </Directory>
-    php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp:/usr/share:/etc/phpMyAdmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/roundcubemail:/etc/roundcube:/var/lib/roundcube
     <IfModule mod_ruid2.c>
         RMode config
         RUidGid %user% %group%

+ 3 - 0
install/ubuntu/14.04/templates/web/apache2/phpcgi.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/14.04/templates/web/apache2/phpcgi.tpl

@@ -14,6 +14,9 @@
     <Directory %docroot%>
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         Action phpcgi-script /cgi-bin/php
         <Files *.php>
             SetHandler phpcgi-script

+ 3 - 0
install/ubuntu/14.04/templates/web/apache2/phpfcgid.stpl

@@ -15,6 +15,9 @@
         SSLRequireSSL
         AllowOverride All
         Options +Includes -Indexes +ExecCGI
+        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
+        php_admin_value upload_tmp_dir %home%/%user%/tmp
+        php_admin_value session.save_path %home%/%user%/tmp
         <Files *.php>
           SetHandler fcgid-script
         </Files>

Некоторые файлы не были показаны из-за большого количества измененных файлов