Skip to content

Commit 30aa089

Browse files
committed
- Enhanced the installation guides
- added a daily cronjob for stats creation in the installer. - Fixed a bug in the spamfilter white / blacklist forms (thanks to satommy for reporting this) - fixed ssl cert path in vhost templates/web_domain_ssl.htm - fixed a bug in the apache plugin which prevented the copying of the standard error and index files.
1 parent ba66cdb commit 30aa089

File tree

9 files changed

+23
-10
lines changed

9 files changed

+23
-10
lines changed

INSTALL_DEBIAN.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Then run the following to enable the Apache modules:
2929

3030
a2enmod suexec
3131
a2enmod rewrite
32+
a2enmod ssl
3233

3334
4) Install pure-ftpd and quota
3435

INSTALL_UBUNTU.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Then run the following to enable the Apache modules:
4141

4242
a2enmod suexec
4343
a2enmod rewrite
44+
a2enmod ssl
4445

4546
4) Install pure-ftpd and quota
4647

install/lib/installer_base.lib.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,10 @@ public function install_crontab()
648648
exec('crontab -u root -l > crontab.txt');
649649
$existing_root_cron_jobs = file('crontab.txt');
650650

651-
$root_cron_jobs = array('* * * * * /usr/local/ispconfig/server/server.sh &> /dev/null');
651+
$root_cron_jobs = array(
652+
'* * * * * /usr/local/ispconfig/server/server.sh &> /dev/null',
653+
'30 00 * * * /usr/local/ispconfig/server/cron_daily.sh &> /dev/null'
654+
);
652655
foreach($root_cron_jobs as $cron_job) {
653656
if(!in_array($cron_job."\n", $existing_root_cron_jobs)) {
654657
$existing_root_cron_jobs[] = $cron_job."\n";

interface/web/mail/spamfilter_blacklist_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function onShowNew() {
6363
$client = $app->db->queryOneRecord("SELECT limit_spamfilter_wblist FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
6464

6565
// Check if the user may add another mailbox.
66-
if($client["limit_limit_spamfilter_wblist"] >= 0) {
66+
if($client["limit_spamfilter_wblist"] >= 0) {
6767
$tmp = $app->db->queryOneRecord("SELECT count(wblist_id) as number FROM spamfilter_wblist WHERE sys_groupid = $client_group_id");
6868
if($tmp["number"] >= $client["limit_spamfilter_wblist"]) {
6969
$app->error($app->tform->wordbook["limit_spamfilter_wblist_txt"]);

interface/web/mail/spamfilter_whitelist_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function onShowNew() {
6363
$client = $app->db->queryOneRecord("SELECT limit_spamfilter_wblist FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = $client_group_id");
6464

6565
// Check if the user may add another mailbox.
66-
if($client["limit_limit_spamfilter_wblist"] >= 0) {
66+
if($client["limit_spamfilter_wblist"] >= 0) {
6767
$tmp = $app->db->queryOneRecord("SELECT count(wblist_id) as number FROM spamfilter_wblist WHERE sys_groupid = $client_group_id");
6868
if($tmp["number"] >= $client["limit_spamfilter_wblist"]) {
6969
$app->error($app->tform->wordbook["limit_spamfilter_wblist_txt"]);

interface/web/sites/templates/web_domain_ssl.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
</tr>
2222
<tr>
2323
<td class="frmText11">{tmpl_var name='ssl_request_txt'}:</td>
24-
<td class="frmText11"><textarea name='ssl_request' cols='30' rows='10'>{tmpl_var name='ssl_request'}</textarea></td>
24+
<td class="frmText11"><textarea name='ssl_request' cols='50' rows='10'>{tmpl_var name='ssl_request'}</textarea></td>
2525
</tr>
2626
<tr>
2727
<td class="frmText11">{tmpl_var name='ssl_cert_txt'}:</td>
28-
<td class="frmText11"><textarea name='ssl_cert' cols='30' rows='10'>{tmpl_var name='ssl_cert'}</textarea></td>
28+
<td class="frmText11"><textarea name='ssl_cert' cols='50' rows='10'>{tmpl_var name='ssl_cert'}</textarea></td>
2929
</tr>
3030
<tr>
3131
<td class="frmText11">{tmpl_var name='ssl_bundle_txt'}:</td>
32-
<td class="frmText11"><textarea name='ssl_bundle' cols='30' rows='10'>{tmpl_var name='ssl_bundle'}</textarea></td>
32+
<td class="frmText11"><textarea name='ssl_bundle' cols='50' rows='10'>{tmpl_var name='ssl_bundle'}</textarea></td>
3333
</tr>
3434
<tr>
3535
<td class="frmText11">{tmpl_var name='ssl_action_txt'}:</td>

server/conf/vhost.conf.master

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
ErrorDocument 503 /error/overloaded.html
8282

8383
SSLEngine on
84-
SSLCertificateFile <tmpl_var name='document_root'>/<tmpl_var name='domain'>.crt
85-
SSLCertificateKeyFile <tmpl_var name='document_root'>/<tmpl_var name='domain'>.key
84+
SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.crt
85+
SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.key
8686
<tmpl_if name='has_bundle_cert'>
87-
SSLCACertificateFile <tmpl_var name='document_root'>/<tmpl_var name='domain'>.bundle
87+
SSLCACertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.bundle
8888
</tmpl_if>
8989

9090
<tmpl_if name='alias'>

server/cron_daily.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
4+
5+
/usr/bin/php -q /usr/local/ispconfig/server/cron_daily.php

server/plugins-enabled/apache2_plugin.inc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,12 @@ function update($event_name,$data) {
235235
}
236236

237237
// Copy the error pages
238-
$error_page_path = escapeshellcmd($data["new"]["web_document_root"])."/web/error/";
238+
$error_page_path = escapeshellcmd($data["new"]["document_root"])."/web/error/";
239239
exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path);
240240

241+
// copy the standard index page
242+
exec("cp /usr/local/ispconfig/server/conf/index/standard_index.html_".substr(escapeshellcmd($conf["language"]),0,2)." ".escapeshellcmd($data["new"]["document_root"])."/web/");
243+
241244
// Create group and user, if not exist
242245
$app->uses("system");
243246

0 commit comments

Comments
 (0)