Changeset 1134

Show
Ignore:
Timestamp:
05/03/2008 12:25:41 AM (2 months ago)
Author:
rats
Message:

* Fixed #1222: FreeBSD: Fix some path and config and insert old daemon routine
* Fixed #1195: Gentoo: Somewhat large Gentoo update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BSDmakefile

    r1056 r1134  
    3131# 
    3232 
     33 
    3334.ifdef $(OSTYPE)==FreeBSD 
    3435.include <Makefile.fbsd> 
     
    3839 
    3940install: 
    40  
     41        # 
     42        # Preparing ISPCP System Directory and files     
     43        # 
    4144        cd ./tools && $(MAKE) install 
    4245        $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF) 
     
    5356        cd ./keys && $(MAKE) install 
    5457 
     58        # 
    5559        # Patch some variable 
     60        # 
    5661        /usr/bin/sed s/"\/etc\/ispcp\/ispcp.conf"/"\/usr\/local\/etc\/ispcp\/ispcp.conf"/g ./engine/ispcp_common_code.pl > $(SYSTEM_ROOT)/engine/ispcp_common_code.pl 
    57         /usr/bin/sed s/"\/apache\"\;"/"\/apache22\"\;"/g ./engine/setup/ispcp-setup-methods.pl > $(SYSTEM_ROOT)/engine/setup/ispcp-setup-methods.pl 
     62 
     63.if exists ($(SYSTEM_WEB)/ispcp/engine/ispcp-db-keys.pl) 
     64        # 
     65        # Previous database key detected, assuming being perform Upgrade Procedure 
     66        #        
     67        cp $(SYSTEM_WEB)/ispcp/engine/ispcp-db-keys.pl $(SYSTEM_ROOT)/engine/ 
     68        cp $(SYSTEM_WEB)/ispcp/engine/messager/ispcp-db-keys.pl $(SYSTEM_ROOT)/engine/messager/ 
     69        cp $(SYSTEM_WEB)/ispcp/gui/include/ispcp-db-keys.php $(SYSTEM_ROOT)/gui/include/ 
     70        cp $(SYSTEM_WEB)/ispcp/gui/tools/pma/config.inc.php $(SYSTEM_ROOT)/gui/tools/pma/ 
     71.endif 
    5872 
    5973        cd ${INST_PREF} && cp -R * / 
    6074        rm -rf ${INST_PREF} 
    6175 
     76        # 
     77        # 
     78        # If Some error occured please read FAQ first and search at forum in http://www.isp-control.net 
     79        # Go to $(SYSTEM_WEB)/ispcp/engine/setup and type "ispcp-setup" to configure or "ispcp-upgrade"  
     80        # to complete upgrade process 
    6281 
    6382uninstall: 
     
    81100 
    82101        cd ./tools/daemon && $(MAKE) clean 
     102 
     103 
  • trunk/Makefile.fbsd

    r1103 r1134  
    3838 
    3939ROOT_CONF=$(INST_PREF)/usr/local/etc 
    40 SYSTEM_ROOT=$(INST_PREF)/usr/local/www/ispcp 
     40SYSTEM_WEB=/usr/local/www 
     41SYSTEM_ROOT=$(INST_PREF)$(SYSTEM_WEB)/ispcp 
    4142SYSTEM_CONF=$(INST_PREF)/usr/local/etc/ispcp 
    4243SYSTEM_LOG=$(INST_PREF)/var/log/ispcp 
    43 SYSTEM_APACHE_BACK_LOG=$(INST_PREF)/usr/local/www/logs/backup 
    44 SYSTEM_VIRTUAL=$(INST_PREF)/usr/local/www/data/virtual 
    45 SYSTEM_AWSTATS=$(INST_PREF)/usr/local/www/awstats 
    46 SYSTEM_FCGI=$(INST_PREF)/usr/local/www/data/fcgi 
     44SYSTEM_APACHE_BACK_LOG=$(INST_PREF)$(SYSTEM_WEB)/logs/backup 
     45SYSTEM_VIRTUAL=$(INST_PREF)$(SYSTEM_WEB)/data/virtual 
     46SYSTEM_AWSTATS=$(INST_PREF)$(SYSTEM_WEB)/awstats 
     47SYSTEM_FCGI=$(INST_PREF)$(SYSTEM_WEB)/data/fcgi 
    4748SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/mail/virtual 
    4849SYSTEM_MAKE_DIRS=/bin/mkdir -p 
  • trunk/Makefile.gentoo

    r1101 r1134  
    4141SYSTEM_CONF=$(INST_PREF)/etc/ispcp 
    4242SYSTEM_LOG=$(INST_PREF)/var/log/ispcp 
     43SYSTEM_PROFTPD_LOG=$(INST_PREF)/var/log/proftpd 
    4344SYSTEM_APACHE_BACK_LOG=$(INST_PREF)/var/log/apache2/backup 
     45SYSTEM_APACHE_USERS_LOG=$(INST_PREF)/var/log/apache2/users 
    4446SYSTEM_VIRTUAL=$(INST_PREF)/var/www/virtual 
    4547SYSTEM_AWSTATS=$(INST_PREF)/var/www/awstats 
    4648SYSTEM_FCGI=$(INST_PREF)/var/www/fcgi 
    4749SYSTEM_SCOREBOARDS=$(INST_PREF)/var/www/scoreboards 
    48 SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/mail/virtual 
     50SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/spool/mail/virtual 
    4951SYSTEM_MAKE_DIRS=/bin/mkdir -p 
    5052SYSTEM_MAKE_FILE=/bin/touch 
    5153 
    52 POSTFIX_SASLDB2_DIR=$(INST_PREF)/var/spool/postfix/etc 
     54POSTFIX_SASLDB2_DIR=$(INST_PREF)/etc/sasl2 
    5355 
    5456export 
     
    6870        $(SYSTEM_MAKE_DIRS) $(SYSTEM_AWSTATS) 
    6971        $(SYSTEM_MAKE_DIRS) $(SYSTEM_MAIL_VIRTUAL) 
     72        $(SYSTEM_MAKE_DIRS) $(SYSTEM_PROFTPD_LOG) 
    7073        $(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_BACK_LOG) 
     74        $(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_USERS_LOG) 
    7175        $(SYSTEM_MAKE_DIRS) $(POSTFIX_SASLDB2_DIR) 
    7276 
  • trunk/configs/freebsd/apache/00_master.conf

    r1129 r1134  
    7171    <IfModule mod_php4.c> 
    7272        <Directory {ROOT_DIR}/gui> 
    73             php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}" 
     73            php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/sbin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}" 
    7474            php_admin_value session.save_path "{ROOT_DIR}/gui/phptmp/" 
    7575                        php_admin_value upload_tmp_dir "{ROOT_DIR}/gui/phptmp/" 
     
    7878    <IfModule mod_php5.c> 
    7979        <Directory {ROOT_DIR}/gui> 
    80             php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}" 
     80            php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/sbin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}" 
    8181            php_admin_value session.save_path "{ROOT_DIR}/gui/phptmp/" 
    8282                        php_admin_value upload_tmp_dir "{ROOT_DIR}/gui/phptmp/" 
  • trunk/configs/freebsd/apache/working/ispcp.conf

    r1001 r1134  
     1# httpd Data BEGIN. 
    12 
    23# 
    3 # This file will be replaced by ../httpd.conf when make is executed 
     4# wget-hack prevention 
    45# 
     6 
     7<IfModule mod_rewrite.c> 
     8    RewriteEngine on 
     9    RewriteCond %{HTTP_USER_AGENT} ^LWP::Simple 
     10    RewriteRule ^/.* http://%{REMOTE_ADDR}/ [L,E=nolog:1] 
     11</IfModule> 
     12 
     13# 
     14# Web traffic accounting. 
     15# 
     16 
     17LogFormat "%B" traff 
     18 
     19# 
     20# mod_cband configuration 
     21# 
     22 
     23<IfModule mod_cband.c> 
     24    CBandScoreFlushPeriod 10 
     25    CBandRandomPulse On 
     26</IfModule> 
     27 
     28# 
     29# let the customer decide what charset he likes to use 
     30# 
     31 
     32AddDefaultCharset Off 
     33 
     34# 
     35# Header End 
     36# 
     37 
     38# httpd [{IP}] virtual host entry BEGIN. 
     39# httpd [{IP}] virtual host entry END. 
     40 
     41# httpd Data END. 
  • trunk/configs/freebsd/postfix/main.cf

    r1113 r1134  
    109109#smtpd_use_tls               = yes 
    110110#smtpd_tls_loglevel          = 2 
    111 #smtpd_tls_cert_file         = /etc/postfix/cert.pem 
    112 #smtpd_tls_key_file          = /etc/postfix/privkey.pem 
     111#smtpd_tls_cert_file         = /usr/local/etc/postfix/cert.pem 
     112#smtpd_tls_key_file          = /usr/local/etc/postfix/privkey.pem 
    113113#smtpd_tls_auth_only         = no 
    114114#smtpd_tls_received_header   = yes 
  • trunk/configs/gentoo/apache/00_master.conf

    r1129 r1134  
    4848 
    4949    <IfModule suexec_module> 
    50            SuexecUserGroup vu2000 vu2000 
     50           SuexecUserGroup {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID} {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_GID} 
    5151    </IfModule> 
    5252 
  • trunk/configs/gentoo/apache/Makefile

    r1118 r1134  
    3333ROOT_APACHE_CONF=$(ROOT_CONF)/apache2 
    3434 
    35 RELEASE=`cat /etc/debian_version | awk '{print $1}'` 
    36  
    3735export 
    3836 
     
    4139        $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/apache 
    4240        $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF) 
    43         $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/sites-available 
    44         $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/mods-available 
     41        $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/vhosts.d 
     42        $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/modules.d 
    4543        $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/ispcp 
    4644 
    4745        cp ./httpd.conf $(SYSTEM_CONF)/apache 
     46        cp ./fastcgi_ispcp.conf $(SYSTEM_CONF)/apache 
    4847        cp ./00_master.conf $(SYSTEM_CONF)/apache 
    4948        cp ./01_awstats.conf $(SYSTEM_CONF)/apache 
     
    5251        cp -R ./working $(SYSTEM_CONF)/apache 
    5352 
     53        cp ./fastcgi_ispcp.conf $(SYSTEM_CONF)/apache/working/fastcgi_ispcp.conf 
    5454        cp ./httpd.conf $(SYSTEM_CONF)/apache/working/ispcp.conf 
    5555        cp ./httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 
    5656 
    57         # Debian 4.0 "Etch"? 
    58         if [[ $(RELEASE) = '4.0' ]] || [[ $(RELEASE) = 'lenny/sid' ]]; then \ 
    59                 cp ./fastcgi2.conf $(SYSTEM_CONF)/apache/working/fastcgi_ispcp.conf ; \ 
    60         else \ 
    61                 cp ./fastcgi.conf $(SYSTEM_CONF)/apache/working/fastcgi_ispcp.conf ; \ 
    62         fi 
    63  
    64         cp -R $(SYSTEM_CONF)/apache/working/fastcgi_ispcp.conf $(ROOT_APACHE_CONF)/mods-available/fastcgi_ispcp.conf 
    6557 
    6658uninstall: 
  • trunk/configs/gentoo/apache/fastcgi.conf

    r1082 r1134  
    1 # 
    2 # ispCP ω (OMEGA) a Virtual Hosting Control System 
    3 # 
    4 # @copyright    2006-2008 by ispCP | http://isp-control.net 
    5 # @version              SVN: $ID$ 
    6 # @link                 http://isp-control.net 
    7 # @author               ispCP Team 
    8 # 
    9 # @license 
    10 #   This program is free software; you can redistribute it and/or modify it under 
    11 #   the terms of the MPL General Public License as published by the Free Software 
    12 #   Foundation; either version 1.1 of the License, or (at your option) any later 
    13 #   version. 
    14 #   You should have received a copy of the MPL Mozilla Public License along with 
    15 #   this program; if not, write to the Open Source Initiative (OSI) 
    16 #   http://opensource.org | osi@opensource.org 
    17 # 
    18 ################################################################################ 
    19  
    20 <IfModule mod_fastcgi.c> 
    21         FastCgiWrapper On 
    22         FastCgiIpcDir /var/lib/apache2/fastcgi 
    23  
    24         FastCgiConfig -minProcesses 1 \ 
    25                       -maxProcesses 400 \ 
    26                       -maxClassProcesses 5 \ 
    27                       -multiThreshold 80 \ 
    28                       -killInterval 60 \ 
    29                       -startDelay 5 
    30                       # -singleThreshold 100 \ 
    31                       # -autoUpdate \ 
    32                       # -pass-header HTTP_AUTHORIZATION 
    33  
    34         FastCgiServer {PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter -user {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID} -group {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_GID} -idle-timeout 300 
    35  
    36         # 
    37         # PHP{PHP_VERSION} SUPPORT 
    38         # 
    39  
    40         AddHandler php-fastcgi .php .php{PHP_VERSION} 
    41  
    42         <Location /php{PHP_VERSION}/php{PHP_VERSION}-fcgi-starter> 
    43             SetHandler fastcgi-script 
    44             Options +ExecCGI 
    45         </Location> 
    46  
    47         Action php-fastcgi /php{PHP_VERSION}/php{PHP_VERSION}-fcgi-starter 
    48         AddType application/x-httpd-php .php .php{PHP_VERSION} 
    49 </IfModule> 
  • trunk/configs/gentoo/apache/fastcgi2.conf

    r1082 r1134  
    1 # 
    2 # ispCP ω (OMEGA) a Virtual Hosting Control System 
    3 # 
    4 # @copyright    2006-2008 by ispCP | http://isp-control.net 
    5 # @version              SVN: $ID$ 
    6 # @link                 http://isp-control.net 
    7 # @author               ispCP Team 
    8 # 
    9 # @license 
    10 #   This program is free software; you can redistribute it and/or modify it under 
    11 #   the terms of the MPL General Public License as published by the Free Software 
    12 #   Foundation; either version 1.1 of the License, or (at your option) any later 
    13 #   version. 
    14 #   You should have received a copy of the MPL Mozilla Public License along with 
    15 #   this program; if not, write to the Open Source Initiative (OSI) 
    16 #   http://opensource.org | osi@opensource.org 
    17 # 
    18 ################################################################################ 
    19  
    20 <IfModule mod_fastcgi.c> 
    21         FastCgiWrapper On 
    22         FastCgiIpcDir /var/lib/apache2/fastcgi2 
    23  
    24         FastCgiConfig -minProcesses 1 \ 
    25                       -maxProcesses 400 \ 
    26                       -maxClassProcesses 5 \ 
    27                       -multiThreshold 80 \ 
    28                       -killInterval 60 \ 
    29                       -startDelay 5 
    30                       # -singleThreshold 100 \ 
    31                       # -autoUpdate \ 
    32                       # -pass-header HTTP_AUTHORIZATION 
    33  
    34         FastCgiServer {PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter -user {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID} -group {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_GID} -idle-timeout 300 
    35  
    36         # 
    37         # PHP{PHP_VERSION} SUPPORT 
    38         # 
    39  
    40         AddHandler php-fastcgi .php .php{PHP_VERSION} 
    41  
    42         <Location /php{PHP_VERSION}/php{PHP_VERSION}-fcgi-starter> 
    43             SetHandler fastcgi-script 
    44             Options +ExecCGI 
    45         </Location> 
    46  
    47         Action php-fastcgi /php{PHP_VERSION}/php{PHP_VERSION}-fcgi-starter 
    48         AddType application/x-httpd-php .php .php{PHP_VERSION} 
    49 </IfModule> 
  • trunk/configs/gentoo/apache/parts/als_php2_entry.tpl

    r653 r1134  
    2121        </Directory> 
    2222    </IfModule> 
     23        <IfModule mod_fcgid.c> 
     24        ScriptAlias /php4/ {STARTER_DIR}/{DMN_NAME}/ 
     25        ScriptAlias /php5/ {STARTER_DIR}/{DMN_NAME}/ 
     26                <Directory "/var/www/virtual/{DMN_NAME}/htdocs"> 
     27                        FCGIWrapper {STARTER_DIR}/{DMN_NAME}/php{PHP_VERSION}-fcgi-starter .php 
     28                        AddHandler fcgid-script .php 
     29                        Options +ExecCGI 
     30                </Directory> 
     31        </IfModule> 
  • trunk/configs/gentoo/apache/parts/als_php_entry.tpl

    r642 r1134  
    99                RemoveType .php 
    1010            </IfModule> 
     11            <IfModule mod_fcgid.c> 
     12                RemoveHandler .php 
     13                RemoveType .php 
     14            </IfModule> 
  • trunk/configs/gentoo/apache/parts/dmn_php2_entry.tpl

    r908 r1134  
    2121        </Directory> 
    2222    </IfModule> 
    23          <IfModule mod_fcgid.c> 
    24                         <Directory "/var/www/virtual/{DMN_NAME}/htdocs"> 
    25                                 FCGIWrapper {STARTER_DIR}/{DMN_NAME}/php{PHP_VERSION}-fcgi-starter .php 
    26                                 AddHandler fcgid-script .php 
    27                                 Options +ExecCGI 
    28                         </Directory> 
    29          </IfModule> 
     23        <IfModule mod_fcgid.c> 
     24                <Directory "{STARTER_DIR}/{DMN_NAME}"> 
     25                        AllowOverride None 
     26                        Options +ExecCGI -MultiViews -Indexes 
     27                        Order allow,deny 
     28                        Allow from all 
     29                </Directory> 
     30                <Location /> 
     31                        FCGIWrapper {STARTER_DIR}/{DMN_NAME}/php{PHP_VERSION}-fcgi-starter .php 
     32                        AddHandler fcgid-script .php 
     33                        Options +ExecCGI 
     34                        Order allow,deny 
     35                        Allow from all 
     36                </Location> 
     37        </IfModule> 
  • trunk/configs/gentoo/apache/parts/dmn_php_entry.tpl

    r642 r1134  
    99                RemoveType .php 
    1010            </IfModule> 
     11            <IfModule mod_fcgid.c> 
     12                RemoveHandler .php 
     13                RemoveType .php 
     14            </IfModule> 
  • trunk/configs/gentoo/apache/parts/sub_cgi_entry.tpl

    r1127 r1134  
    22    <Directory {WWW_DIR}/{DMN_NAME}{MOUNT_POINT}/cgi-bin> 
    33        AllowOverride AuthConfig 
    4         #Options ExecCGI 
     4        Options ExecCGI 
    55        Order allow,deny 
    66        Allow from all 
  • trunk/configs/gentoo/apache/parts/sub_php2_entry.tpl

    r653 r1134  
    2121        </Directory> 
    2222    </IfModule> 
     23        <IfModule mod_fcgid.c> 
     24                <Directory "{STARTER_DIR}/{DMN_NAME}"> 
     25                        AllowOverride None 
     26                        Options +ExecCGI -MultiViews -Indexes 
     27                        Order allow,deny 
     28                        Allow from all 
     29                </Directory> 
     30                <Location /> 
     31                        FCGIWrapper {STARTER_DIR}/{DMN_NAME}/php{PHP_VERSION}-fcgi-starter .php 
     32                        AddHandler fcgid-script .php 
     33                        Options +ExecCGI 
     34                        Order allow,deny 
     35                        Allow from all 
     36                </Location> 
     37        </IfModule> 
  • trunk/configs/gentoo/apache/parts/sub_php_entry.tpl

    r642 r1134  
    99                RemoveType .php 
    1010            </IfModule> 
     11            <IfModule mod_fcgid.c> 
     12                RemoveHandler .php 
     13                RemoveType .php 
     14            </IfModule> 
  • trunk/configs/gentoo/apache/working/fastcgi_ispcp.conf

    r1082 r1134  
    1 # ISPCP ω (OMEGA) a Virtual Hosting Control System 
    2 # Copyright (c) 2006-2007 by ispCP | http://isp-control.net 
     1 
    32# 
     3# This file will be replaced by ../ispcp when make is executed 
    44# 
    5 # License: 
    6 #    This program is free software; you can redistribute it and/or 
    7 #    modify it under the terms of the GPL General Public License 
    8 #    as published by the Free Software Foundation; either version 2.0 
    9 #    of the License, or (at your option) any later version. 
    10 # 
    11 #    This program is distributed in the hope that it will be useful, 
    12 #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    14 #    GPL General Public License for more details. 
    15 # 
    16 #    You may have received a copy of the GPL General Public License 
    17 #    along with this program. 
    18 # 
    19 #    An on-line copy of the GPL General Public License can be found 
    20 #    http://www.fsf.org/licensing/licenses/gpl.txt 
    21 # 
    22 ######################################################################## 
    23 # 
    24 # @TODO : 
    25 # - Finish config Fastcgi 
    26  
    27 <IfModule mod_fastcgi.c> 
    28         FastCgiWrapper On 
    29         FastCgiIpcDir /var/lib/apache2/fastcgi 
    30         FastCgiConfig -minProcesses 1 \ 
    31                   -maxProcesses 400 \ 
    32                   -maxClassProcesses 5 \ 
    33                   -multiThreshold 80 \ 
    34                   -killInterval 60 \ 
    35                   -startDelay 5 
    36                   # -singleThreshold 100 \ 
    37                   # -autoUpdate \ 
    38                   # -pass-header HTTP_AUTHORIZATION 
    39  
    40         FastCgiServer {PHP_STARTER_DIR}/master/php{PHP_VERSION}-fcgi-starter -user {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_UID} -group {APACHE_SUEXEC_USER_PREF}{APACHE_SUEXEC_MIN_GID}  -idle-timeout 300 
    41  
    42         # 
    43         # PHP{PHP_VERSION} SUPPORT 
    44         # 
    45  
    46         AddHandler php-fastcgi .php .php{PHP_VERSION} 
    47  
    48         <Location /php{PHP_VERSION}/php{PHP_VERSION}-fcgi-starter> 
    49                 SetHandler fastcgi-script 
    50                 Options +ExecCGI 
    51         </Location> 
    52  
    53         Action php-fastcgi /php{PHP_VERSION}/php{PHP_VERSION}-fcgi-starter 
    54         AddType application/x-httpd-php .php .php{PHP_VERSION} 
    55 </IfModule> 
  • trunk/configs/gentoo/courier/Makefile

    r1118 r1134  
    4242        $(SYSTEM_MAKE_DIRS) $(ROOT_AUTHLIB_CONF) 
    4343        $(SYSTEM_MAKE_DIRS) $(ROOT_COURIER_IMAP_CONF) 
    44         $(SYSTEM_MAKE_DIRS) $(INST_PREF)/var/run/courier 
    4544        $(SYSTEM_MAKE_FILE) $(INST_PREF)/var/log/mail.log 
    4645 
  • trunk/configs/gentoo/cron.d/Makefile

    r1103 r1134  
    4040        cp -R ./parts $(SYSTEM_CONF)/cron.d 
    4141        cp -R ./working $(SYSTEM_CONF)/cron.d 
    42         $(SYSTEM_MAKE_FILE) $(SYSTEM_CONF)/cron.d/backup/ispcp 
    43         $(SYSTEM_MAKE_FILE) $(SYSTEM_CONF)/cron.d/working/ispcp 
    4442        cp $(SYSTEM_CONF)/cron.d/ispcp $(SYSTEM_CONF)/cron.d/working 
    4543 
  • trunk/configs/gentoo/database/database.sql

    r1129 r1134  
    7575('PORT_DNS', '53;tcp;DNS;1;0'), 
    7676('PORT_HTTP', '80;tcp;HTTP;1;0'), 
    77 ('PORT_HTTPS', '443;tcp;HTTPS;0;0'), 
     77('PORT_HTTPS', '443;tcp;HTTPS;1;0'), 
    7878('PORT_POP3', '110;tcp;POP3;1;0'), 
    7979('PORT_POP3-SSL', '995;tcp;POP3-SSL;1;0'), 
    8080('PORT_IMAP', '143;tcp;IMAP;1;0'), 
    81 ('PORT_IMAP-SSL', '993;tcp;IMAP-SSL;0;0'), 
    82 ('PORT_POSTGREY', '60000;tcp;POSTGREY;1;1'), 
     81('PORT_IMAP-SSL', '993;tcp;IMAP-SSL;1;0'), 
     82('PORT_POSTGREY', '10030;tcp;POSTGREY;1;1'), 
    8383('PORT_AMAVIS', '10024;tcp;AMaVis;1;1'), 
    8484('PORT_SPAMASSASSIN', '783;tcp;SPAMASSASSIN;1;1'), 
  • trunk/configs/gentoo/init.d/Makefile

    r1118 r1134  
    3636 
    3737        $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/init.d 
    38         $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/default 
     38        $(SYSTEM_MAKE_DIRS) $(ROOT_CONF)/conf.d 
    3939 
    4040        cp ispcp_daemon $(ROOT_CONF)/init.d 
     
    4444        chmod 0755 $(ROOT_CONF)/init.d/ispcp_network $(ROOT_CONF)/init.d/ispcp_daemon 
    4545 
    46         if [[ -f ispcp_daemon.default ]]; then \ 
    47                 cp -p ispcp_daemon.default $(ROOT_CONF)/default/ispcp_daemon ; \ 
     46        if [[ -f conf.d/ispcp_daemon ]]; then \ 
     47                cp -p ispcp_daemon $(ROOT_CONF)/conf.d/ispcp_daemon ; \ 
    4848        fi 
    49         if [[ -f ispcp_network.default ]]; then \ 
    50                 cp -p ispcp_network.default $(ROOT_CONF)/default/ispcp_network ; \ 
     49        if [[ -f conf.d/ispcp_network ]]; then \ 
     50                cp -p ispcp_network $(ROOT_CONF)/conf.d/ispcp_network ; \ 
    5151        fi 
    5252 
     
    5555        rm -f $(ROOT_CONF)/init.d/ispcp_daemon 
    5656        rm -f $(ROOT_CONF)/init.d/ispcp_network 
    57         rm -f $(ROOT_CONF)/default/ispcp_daemon 
    58         rm -f $(ROOT_CONF)/default/ispcp_network 
     57        rm -f $(ROOT_CONF)/conf.d/ispcp_daemon 
     58        rm -f $(ROOT_CONF)/conf.d/ispcp_network 
  • trunk/configs/gentoo/init.d/ispcp_daemon

    r1005 r1134  
    2929# 
    3030 
    31 NAME="ispCP Deamon" 
    3231DAEMON=/var/www/ispcp/daemon/ispcp_daemon 
    33 PID=/var/run/ispcp-daemon.pid 
    34 DESC="ispCP GUI-Backend communication Daemon" 
     32PID=/var/run/${SVCNAME}.pid 
    3533 
    3634opts="" 
     
    4341 
    4442start() { 
    45     ebegin "Starting $NAME:
     43    ebegin "Starting $SVCNAME
    4644    start-stop-daemon --start --exec $DAEMON \ 
    4745                --pidfile $PID 
     
    5149 
    5250stop() { 
    53     ebegin "Stopping $NAME:
     51    ebegin "Stopping $SVCNAME
    5452    start-stop-daemon --stop --exec $DAEMON \ 
    5553                --pidfile $PID 
  • trunk/configs/gentoo/init.d/ispcp_network

    r1068 r1134  
    1 #!/bin/sh 
     1#!/sbin/runscript 
    22 
    33# ispCP ω (OMEGA) a Virtual Hosting Control System 
     
    2828#    http://www.isp-control.net 
    2929# 
    30 ### BEGIN INIT INFO 
    31 # Provides:             ispcp_network 
    32 # Required-Start:       $network $local_fs $remote_fs 
    33 # Required-Stop: 
    34 # Should-Stop:          $local_fs 
    35 # Default-Start:        2 3 4 5 
    36 # Default-Stop:         0 1 6 
    37 # Short-Description:    ispCP Network Traffic Logger 
    38 ### END INIT INFO 
    39 # Note: do not modify any of these vars here, use /etc/default/$NAME instead 
    4030 
    41 PATH=/sbin:/bin:/usr/sbin:/usr/bin 
    42 DESC="ispCP Network Traffic Logger" 
    43 NAME=ispcp_network 
    44 LFILE=/var/run/$NAME 
    45 IPTABLES=/sbin/iptables 
    46 LOGDIR=/var/log/ispcp 
    47 LOGFILE=${LOGDIR}/${NAME}.log 
    48 DIETIME=3 
     31IPTABLES=${IPTABLES:-$(which iptables)} 
     32LOGDIR=${LOGDIR:-"/var/log/ispcp"} 
     33LOGFILE=${LOGFILE:-"${LOGDIR}/${SVCNAME}.log"} 
    4934 
    50 START=1 
    51  
    52 # Debian LSB extensions (will be used if init-functions doesn't override them): 
    53 log_daemon_msg() { 
    54         if [ ! -z "${2:-}" ]; then 
    55                 log_success_msg "${1:-}: ${2:-}" 
    56         else 
    57                 log_success_msg "${1:-}" 
    58         fi 
     35depend() { 
     36        need net 
     37        use iptables 
    5938} 
    60 log_end_msg() { 
    61         local status="$1" 
    62 } 
    63 log_progress_msg () { 
    64         log_success_msg " $@" 
    65 } 
    66  
    67 # Logging of warn messages 
    68 function log_warning_msg () { 
    69     echo -en "$@" echo -e "${stat}${attn} warning${norm}" 
    70 } 
    71  
    72 # if not present (e.g. *BSD) make sure to provide compatible methods via /etc/default/$NAME 
    73 if [ -f /lib/lsb/init-functions ]; then 
    74         . /lib/lsb/init-functions 
    75 fi 
    76  
    77 # Read config file if present. 
    78 if [ -r /etc/default/$NAME ]; then 
    79         . /etc/default/$NAME 
    80 fi 
    81  
    82 if [ $START -eq 0 ]; then 
    83         log_warning_msg "Not starting $DESC: edit /etc/default/$NAME." 
    84         exit 1 
    85 fi 
    8639 
    8740add_rules() { 
     
    12881        ${IPTABLES} -A ISPCP_INPUT -j RETURN 
    12982        ${IPTABLES} -A ISPCP_OUTPUT -j RETURN 
    130  
    131         # Touch lock file 
    132         touch $LFILE 
    13383} 
    13484 
     
    14090        ${IPTABLES} -X ISPCP_INPUT 2>> "$LOGFILE" 
    14191        ${IPTABLES} -X ISPCP_OUTPUT 2>> "$LOGFILE" 
    142  
    143         # Remove lock file 
    144         rm $LFILE 
    14592} 
    14693 
    147 case "$1" in 
    148   start) 
    149         log_daemon_msg "Starting $DESC" "$NAME" 
     94start() { 
     95        ebegin "Starting $SVCNAME" 
     96        add_rules 
     97        eend $? 
     98
    15099 
    151         if [ -e "$LFILE" ]; then 
    152                 echo "" 
    153                 log_warning_msg "${NAME} is already started" >&2 
    154         else 
    155                 add_rules 
    156         fi 
     100stop() { 
     101        ebegin "Stopping $SVCNAME" 
     102        remove_rules 
     103        eend $? 
     104
    157105 
    158         log_end_msg $? 
    159         ;; 
    160   stop) 
    161         log_daemon_msg "Stopping $DESC" "$NAME" 
    162         if [ ! -e "$LFILE" ]; then 
    163                 echo "" 
    164                 log_warning_msg "${NAME} is already stopped" >&2 
    165         else 
    166                 remove_rules 
    167         fi 
    168  
    169         log_end_msg $? 
    170         ;; 
    171   restart|force-reload) 
    172         log_daemon_msg "Stopping $DESC" "$NAME" 
    173  
    174         if [ ! -e "$LFILE" ]; then 
    175                 echo "" 
    176                 log_warning_msg "${NAME} is already stopped" >&2 
    177         else 
    178                 remove_rules 
    179                 log_end_msg $? 
    180                 [ -n "$DIETIME" ] && sleep "$DIETIME" 
    181         fi 
    182  
    183         log_daemon_msg "Starting $DESC" "$NAME" 
    184  
    185         add_rules 
    186  
    187         log_end_msg $? 
    188  
    189         ;; 
    190   status) 
    191         log_daemon_msg "Checking status of $DESC" "$NAME" 
    192  
    193         if [ ! -e "$LFILE" ]; then 
    194            log_progress_msg "stopped" 
    195         else 
    196            log_progress_msg "started" 
    197         fi 
    198  
    199         echo "" 
    200         ;; 
    201   *) 
    202         echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload|status}" >&2 
    203         exit 1 
    204         ;; 
    205 esac 
    206  
    207 exit 0 
  • trunk/configs/gentoo/ispcp.conf

    r1089 r1134  
    152152FTPD_CONF_FILE = /etc/proftpd/proftpd.conf 
    153153 
     154FTPD_MIN_UID = 10000 
     155FTPD_MIN_GID = 10000 
     156 
    154157# 
    155158# BIND data 
     
    175178AWSTATS_CONFIG_DIR = /etc/awstats 
    176179 
    177 AWSTATS_ENGINE_DIR = /usr/lib/cgi-bin 
    178  
    179 AWSTATS_WEB_DIR = /usr/share/awstats 
     180AWSTATS_ENGINE_DIR = /var/www/localhost/cgi-bin 
     181 
     182AWSTATS_WEB_DIR = /var/www/localhost/htdocs/awstats 
    180183 
    181184AWSTATS_ROOT_DIR = /var/www/ispcp/engine/awstats 
     
    201204APACHE_MODS_DIR = /etc/apache2/modules.d 
    202205 
    203 APACHE_SITES_DIR = /etc/apache2/vhosts.d/ 
     206APACHE_SITES_DIR = /etc/apache2/vhosts.d 
    204207 
    205208APACHE_CUSTOM_SITES_CONFIG_DIR = /etc/apache2/ispcp 
     
    207210APACHE_SUEXEC_USER_PREF = vu 
    208211 
    209 APACHE_SUEXEC_MIN_GID = 2000 
    210  
    211 APACHE_SUEXEC_MIN_UID = 2000 
     212APACHE_SUEXEC_MIN_GID = 10000 
     213 
     214APACHE_SUEXEC_MIN_UID = 10000 
    212215 
    213216APACHE_USER = apache 
     
    223226POSTFIX_MASTER_CONF_FILE = /etc/postfix/master.cf 
    224227 
    225 MTA_LOCAL_MAIL_DIR = /var/mail 
    226  
    227 MTA_VIRTUAL_MAIL_DIR = /var/mail/virtual 
     228MTA_LOCAL_MAIL_DIR = /var/spool/mail 
     229 
     230MTA_VIRTUAL_MAIL_DIR = /var/spool/mail/virtual 
    228231 
    229232MTA_LOCAL_ALIAS_HASH = /etc/mail/aliases 
     
    241244MTA_SENDER_ACCESS_HASH = /etc/postfix/ispcp/sender-access 
    242245 
    243 MTA_MAILBOX_MIN_UID = 1004 
    244  
    245 MTA_MAILBOX_UID = 1004 
     246MTA_MAILBOX_MIN_UID = 10000 
     247 
     248MTA_MAILBOX_UID = 10000 
    246249 
    247250MTA_MAILBOX_UID_NAME = vmail 
     
    251254MTA_MAILBOX_GID_NAME = mail 
    252255 
    253 MTA_SASLDB_FILE = /var/spool/postfix/etc/sasldb2 
     256MTA_SASLDB_FILE = /etc/sasl2/sasldb2 
    254257 
    255258ETC_SASLDB_FILE = /etc/sasl2/sasldb2 
  • trunk/configs/gentoo/postfix/main.cf

    r1123 r1134  
    100100                               reject_unlisted_recipient, 
    101101                               check_policy_service inet:127.0.0.1:12525, 
    102                                check_policy_service inet:127.0.0.1:10030, 
     102                               check_policy_service inet:127.0.0.1:60000, 
    103103<