Changeset 878

Show
Ignore:
Timestamp:
10/17/07 23:39:27 (14 months ago)
Author:
rats
Message:

* Updated fedora
* Fixed #783: added Makefile.gentoo
* Fixed #784: ispcp-setup fails with compilation errors
* Fixed #785: bad test into configs/init.d/Makefile
* Fixed #788: mistakes with the php4-fcgi-starter.tpl
* Updated PMA to 2.11.1.2 (#789)

Location:
trunk
Files:
20 added
3 removed
44 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r877 r878  
    1313 
    14142007-10-17 Benedikt Heintel 
     15        - DISTS: 
     16                * Updated fedora 
    1517        - SETUP: 
    1618                * Fixed #783: added Makefile.gentoo 
    1719                * Fixed #784: ispcp-setup fails with compilation errors 
    1820                * Fixed #785: bad test into configs/init.d/Makefile 
    19                 * Fixed #878: mistakes with the php4-fcgi-starter.tpl 
     21                * Fixed #788: mistakes with the php4-fcgi-starter.tpl 
     22        - TOOLS: 
     23                * Updated PMA to 2.11.1.2 (#789) 
    2024 
    21252007-10-16 Raphael Geissert 
  • trunk/configs/dists/fedora/Makefile

    r830 r878  
    66        if test $(HOST_OS) = fedora ; then \ 
    77                cp ./ispcp.conf $(SYSTEM_CONF) ; \ 
    8                 cd ./apache && $(MAKE) install ; cd .. ; \ 
    9                 cd ./awstats && $(MAKE) install ; cd .. ; \ 
    10                 cd ./bind && $(MAKE) install ; cd .. ; \ 
    11                 cd ./cron.d && $(MAKE) install ; cd .. ; \ 
    12                 cd ./database && $(MAKE) install ; cd .. ;  \ 
    13                 cd ./fcgi && $(MAKE) install ; cd .. ; \ 
    14                 cd ./init.d && $(MAKE) install ; cd .. ; \ 
    15                 cd ./postfix && $(MAKE) install ; cd .. ; \ 
    16                 cd ./courier && $(MAKE) install ; cd .. ; \ 
    17                 cd ./proftpd && $(MAKE) install ; cd .. ; \ 
    18                 cd ./logrotate && $(MAKE) install ; cd .. ; \ 
     8                (cd ./apache && $(MAKE) install &); \ 
     9                (cd ./awstats && $(MAKE) install &); \ 
     10                (cd ./bind && $(MAKE) install &); \ 
     11                (cd ./cron.d && $(MAKE) install &); \ 
     12                (cd ./database && $(MAKE) install &);  \ 
     13                (cd ./fcgi && $(MAKE) install &); \ 
     14                (cd ./init.d && $(MAKE) install &); \ 
     15                (cd ./postfix && $(MAKE) install &); \ 
     16                (cd ./courier && $(MAKE) install &); \ 
     17                (cd ./proftpd && $(MAKE) install &); \ 
     18                (cd ./logrotate && $(MAKE) install);  
    1919        fi 
    2020 
     
    2323        if test $(HOST_OS) = fedora ; then \ 
    2424                rm -rf $(SYSTEM_CONF)/ispcp.conf ;  \ 
    25                 cd ./apache && $(MAKE) uninstall ; cd .. ; \ 
    26                 cd ./awstats && $(MAKE) uninstall ; cd .. ; \ 
    27                 cd ./bind && $(MAKE) uninstall ; cd .. ; \ 
    28                 cd ./cron.d && $(MAKE) uninstall ; cd .. ; \ 
    29                 cd ./database && $(MAKE) uninstall ; cd .. ;  \ 
    30                 cd ./init.d && $(MAKE) uninstall ; cd .. ; \ 
    31                 cd ./postfix && $(MAKE) uninstall ; cd .. ; \ 
    32                 cd ./courier && $(MAKE) uninstall ; cd .. ; \ 
    33                 cd ./proftpd && $(MAKE) uninstall ; cd .. ; \ 
    34                 cd ./logrotate && $(MAKE) uninstall ; cd .. ; \ 
     25                (cd ./apache && $(MAKE) uninstall &); \ 
     26                (cd ./awstats && $(MAKE) uninstall &); \ 
     27                (cd ./bind && $(MAKE) uninstall &); \ 
     28                (cd ./cron.d && $(MAKE) uninstall &); \ 
     29                (cd ./database && $(MAKE) uninstall &); \ 
     30                (cd ./init.d && $(MAKE) uninstall &); \ 
     31                (cd ./postfix && $(MAKE) uninstall &); \ 
     32                (cd ./courier && $(MAKE) uninstall &); \ 
     33                (cd ./proftpd && $(MAKE) uninstall &); \ 
     34                (cd ./logrotate && $(MAKE) uninstall &); \ 
     35 
    3536        fi 
    36  
  • trunk/configs/dists/fedora/apache/00_master.conf

    r773 r878  
    2929    Alias /ftp      {ROOT_DIR}/gui/tools/filemanager/ 
    3030 
    31     SuexecUserGroup vu2000 vu2000 
     31    <IfModule suexec_module> 
     32           SuexecUserGroup vu2000 vu2000 
     33    </IfModule> 
    3234 
    3335    <Directory {ROOT_DIR}/gui> 
  • trunk/configs/dists/fedora/apache/01_awstats.conf

    r837 r878  
    33# AWStats Begin 
    44# 
     5 
     6Alias /awstatsicons "{AWSTATS_WEB_DIR}/icon/" 
     7 
    58 
    69NameVirtualHost 127.0.0.1:80 
     
    1013    <IfModule mod_rewrite.c> 
    1114        RewriteEngine on 
    12         RewriteRule ^/stats/(.+)/$ http://localhost/awstats/?config=$1 [P] 
    13         RewriteRule ^/stats/(.+)/awstats.pl(.*)$ http://localhost/awstats/$2 [P] 
     15        RewriteRule ^/stats/(.+)/$ http://localhost/awstats/?config=$1 [P] 
     16        RewriteRule ^/stats/(.+)/awstats.pl(.*)$ http://localhost/awstats/$2 [P] 
    1417    </IfModule> 
    1518 
    16     ScriptAlias /awstats "/usr/lib/cgi-bin/awstats.pl" 
     19    ScriptAlias /awstats "{AWSTATS_ENGINE_DIR}/awstats.pl" 
    1720 
    18     <Directory /usr/lib/cgi-bin> 
     21    <Directory {AWSTATS_ENGINE_DIR}> 
    1922        AllowOverride none 
    2023        Options +ExecCGI 
  • trunk/configs/dists/fedora/apache/Makefile

    r671 r878  
    1010        $(SYSTEM_MAKE_DIRS) $(ROOT_APACHE_CONF)/conf.d 
    1111 
    12         cp ./httpd.conf ./working/ispcp.conf 
    13         cp ./fastcgi.conf ./working/fastcgi_ispcp.conf 
    1412        cp ./httpd.conf $(SYSTEM_CONF)/apache 
    1513        cp ./00_master.conf $(SYSTEM_CONF)/apache 
     14        cp ./01_awstats.conf $(SYSTEM_CONF)/apache 
    1615        cp -R ./backup $(SYSTEM_CONF)/apache 
    1716        cp -R ./parts $(SYSTEM_CONF)/apache 
    1817        cp -R ./working $(SYSTEM_CONF)/apache 
    1918 
    20         cp -R ./fastcgi.conf ${ROOT_APACHE_CONF}/conf.d/fastcgi_ispcp.conf 
     19        cp ./httpd.conf $(SYSTEM_CONF)/apache/working/ispcp.conf 
     20        cp ./httpd.conf $(SYSTEM_CONF)/apache/parts/ispcp_base.tpl 
    2121 
    2222uninstall: 
  • trunk/configs/dists/fedora/apache/parts/als_entry.tpl

    r773 r878  
    66    # 
    77 
    8     SuexecUserGroup {SUEXEC_USER} {SUEXEC_GROUP} 
     8    <IfModule suexec_module> 
     9           SuexecUserGroup {SUEXEC_USER} {SUEXEC_GROUP} 
     10    </IfModule> 
    911 
    1012    ServerAdmin     webmaster@{ALS_NAME} 
  • trunk/configs/dists/fedora/apache/parts/dmn_awstats_b.tpl

    r837 r878  
    1     # httpd awstats support BEGIN. 
     1   # httpd awstats support BEGIN. 
  • trunk/configs/dists/fedora/apache/parts/dmn_awstats_e.tpl

    r837 r878  
    1     # httpd awstats support END. 
     1   # httpd awstats support END. 
  • trunk/configs/dists/fedora/apache/parts/dmn_entry.tpl

    r835 r878  
    11<VirtualHost {DMN_IP}:80> 
    22 
    3     SuexecUserGroup {SUEXEC_USER} {SUEXEC_GROUP} 
     3    <IfModule suexec_module> 
     4           SuexecUserGroup {SUEXEC_USER} {SUEXEC_GROUP} 
     5    </IfModule> 
    46 
    57    ServerAdmin     webmaster@{DMN_NAME} 
  • trunk/configs/dists/fedora/apache/parts/sub_entry.tpl

    r773 r878  
    66    # 
    77 
    8     SuexecUserGroup {SUEXEC_USER} {SUEXEC_GROUP} 
     8    <IfModule suexec_module> 
     9           SuexecUserGroup {SUEXEC_USER} {SUEXEC_GROUP} 
     10    </IfModule> 
    911 
    1012    ServerAdmin     webmaster@{DMN_NAME} 
  • trunk/configs/dists/fedora/bind/named.conf

    r807 r878  
    1  
    21// bind Data BEGIN. 
    32 
  • trunk/configs/dists/fedora/bind/parts/cfg_entry.tpl

    r807 r878  
    11zone "{DMN_NAME}" { 
    22        type    master; 
    3         file    "/var/named/data/{DMN_NAME}.db"; 
     3        file    "{DB_DIR}/{DMN_NAME}.db"; 
    44        notify  YES; 
    55}; 
  • trunk/configs/dists/fedora/bind/parts/db_master_e.tpl

    r611 r878  
    22@       IN      SOA     ns.{DMN_NAME}. root.{DMN_NAME}. ( 
    33; dmn [{DMN_NAME}] timestamp entry BEGIN. 
    4                         {TIMESTAMP} 
     4                        {TIMESTAMP}     ; Serial 
    55; dmn [{DMN_NAME}] timestamp entry END. 
    6                         8H 
    7                         2H 
    8                         4W 
    9                         1D 
     6                        8H              ; Refresh 
     7                        2H              ; Retry 
     8                        4W              ; Expire 
     9                        1D              ; minimum 
    1010) 
    1111                IN      NS      ns1.{DMN_NAME}. 
     
    2323; sub [{SUB_NAME}] entry BEGIN. 
    2424; sub [{SUB_NAME}] entry END. 
    25  
  • trunk/configs/dists/fedora/bind/parts/db_sub_entry.tpl

    r623 r878  
    33ftp.{SUB_NAME}.                 IN      A       {DMN_IP} 
    44localhost.{SUB_NAME}.   IN      A       127.0.0.1 
    5  
  • trunk/configs/dists/fedora/bind/working/named.conf

    r807 r878  
    1  
    21// bind Data BEGIN. 
    32 
  • trunk/configs/dists/fedora/cron.d/Makefile

    r785 r878  
    44 
    55        $(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)/cron.d 
    6         cp ./ispcp ./working 
    76        cp ./ispcp $(SYSTEM_CONF)/cron.d 
    87        cp -R ./backup $(SYSTEM_CONF)/cron.d 
    98        cp -R ./parts $(SYSTEM_CONF)/cron.d 
    109        cp -R ./working $(SYSTEM_CONF)/cron.d 
     10        cp $(SYSTEM_CONF)/cron.d/ispcp $(SYSTEM_CONF)/cron.d/working 
    1111 
    1212uninstall: 
  • trunk/configs/dists/fedora/cron.d/ispcp

    r785 r878  
    990,30    *       *       *       *  root {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log 
    101015,45   *       *       *       *  root {TRAFF_ROOT_DIR}/ispcp-vrl-traff-correction &>{LOG_DIR}/ispcp-vrl-traff-correction.log 
     11 
     12# customer logs 
    111330         23   *       *       *  root {TOOLS_ROOT_DIR}/ispcp-httpd-logs-mngr &>{LOG_DIR}/ispcp-httpd-logs-mngr.log 
    1214 
    1315# Backup 
    14 0       1       *       *       *  root {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log 
     16@daily root {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log 
     17@daily root {BACKUP_ROOT_DIR}/ispcp-backup-ispcp noreport &>{LOG_DIR}/ispcp-backup-all-mngr.log 
    1518 
    1619# Remove config backups older than seven days 
    17 @daily root find /etc/ispcp/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs /bin/rm 
     20@daily root find {CONF_DIR}/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs /bin/rm 
     21 
     22# Remove Daemon Logs older than 14 days (except .gz files) 
     23@daily root find {LOG_DIR}/* -maxdepth 1 -type f -mtime +14 -print | egrep '.*\.gz$' | xargs /bin/rm 
    1824 
    1925# AWStats 
    20 {AW-ENABLED}15  6       *       *       *       root {AWSTATS_ROOT_DIR}/awstats_updateall.pl now -awstatsprog=$main::cfg{'AWSTATS_ENGINE_DIR'}/awstats.pl 
     26{AW-ENABLED}15  */6     *       *       *       root {AWSTATS_ROOT_DIR}/awstats_updateall.pl now -awstatsprog={AWSTATS_ENGINE_DIR}/awstats.pl 
    2127 
    2228# Rootkit Hunter 
     
    3541# [{DMN_NAME}]:{CRONJOB_ID} custom task END. 
    3642 
     43# [{DMN_NAME}] AWStats static tasks START. 
     44# [{DMN_NAME}] AWStats static tasks END. 
     45 
    3746# delayed tasks END. 
  • trunk/configs/dists/fedora/database/database.sql

    r785 r878  
    2222  `customer_id` varchar(200) default 0, 
    2323  `created_by` int(10) unsigned default 0, 
    24   `fname` varchar(200) default '', 
    25   `lname` varchar(200) default '', 
    26   `gender` varchar(1) default '', 
    27   `firm` varchar(200) default '', 
    28   `zip` varchar(10) default '', 
    29   `city` varchar(200) default '', 
    30   `country` varchar(200) default '', 
     24  `fname` varchar(200) default NULL, 
     25  `lname` varchar(200) default NULL, 
     26  `gender` varchar(1) default NULL, 
     27  `firm` varchar(200) default NULL, 
     28  `zip` varchar(10) default NULL, 
     29  `city` varchar(200) default NULL, 
     30  `country` varchar(200) default NULL, 
    3131  `email` varchar(200) default NULL, 
    32   `phone` varchar(200) default '', 
    33   `fax` varchar(200) default '', 
    34   `street1` varchar(200) default '', 
    35   `street2` varchar(200) default '', 
     32  `phone` varchar(200) default NULL, 
     33  `fax` varchar(200) default NULL, 
     34  `street1` varchar(200) default NULL, 
     35  `street2` varchar(200) default NULL, 
    3636  `uniqkey` varchar(255) default NULL, 
    3737  `uniqkey_time` timestamp NULL default NULL, 
     
    6161  `name` varchar(255) NOT NULL default '', 
    6262  `value` varchar(255) NOT NULL default '', 
    63   PRIMARY KEY  (`name`) 
     63  PRIMARY KEY (`name`) 
    6464) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; 
    6565 
     
    387387  `fname` varchar(200) default NULL, 
    388388  `lname` varchar(200) default NULL, 
     389  `gender` varchar(1) default NULL, 
    389390  `firm` varchar(200) default NULL, 
    390391  `zip` varchar(10) default NULL, 
  • trunk/configs/dists/fedora/database/languages.sql

    r785 r878  
    11-- phpMyAdmin SQL Dump 
    2 -- version 2.10.1 
     2-- version 2.11.1 
    33-- http://www.phpmyadmin.net 
    4 -- 31. Mai 2007 um 22:11 
     4-- 
     5-- Host: localhost:3306 
     6-- Erstellungszeit: 15. Oktober 2007 um 00:34 
     7-- Server Version: 5.0.32 
     8-- PHP-Version: 5.2.0-8+etch5~pu1 
    59 
    610SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; 
     
    1620-- 
    1721 
     22DROP TABLE IF EXISTS `lang_English`; 
    1823CREATE TABLE `lang_English` ( 
    1924  `msgid` text collate utf8_unicode_ci, 
     
    2732 
    2833INSERT INTO `lang_English` (`msgid`, `msgstr`) VALUES 
     34('ispcp_languageSetlocaleValue', 'en_GB'), 
    2935('ispcp_table', 'English'), 
    3036('ispcp_language', 'English'), 
    31 ('ispcp_languageSetlocaleValue', 'en_GB'), 
    32 ('encoding', 'UTF-8'), 
    33 ('D', 'Details'), 
    34 ('Incorrect alias range or syntax!', 'Incorrect <i>domain alias</i> range or syntax!'), 
    35 ('Incorrect city syntax!', 'Incorrect <i>city</i> syntax!'), 
    36 ('Incorrect company range or syntax!', 'Incorrect <i>company</i> range or syntax!'), 
    37 ('Incorrect country syntax!', 'Incorrect <i>country</i> syntax!'), 
    38 ('Incorrect customer ID syntax!', 'Incorrect <i>customer ID</i> syntax!'), 
    39 ('Incorrect disk range or syntax!', 'Incorrect <i>disk range</i> or syntax!'), 
    4037('Incorrect domain name syntax', 'Incorrect <i>domain name</i> syntax'), 
    41 ('Incorrect email range or syntax!', 'Incorrect <i>e-mail</i> range or syntax!'), 
    42 ('Incorrect fax range or syntax!', 'Incorrect <i>fax</i> range or syntax!'), 
    43 ('Incorrect first name range or syntax!', 'Incorrect <i>first name</i> range or syntax!'), 
    4438('Incorrect forward syntax', 'Incorrect <i>forward</i> syntax!'), 
    45 ('Incorrect FTP account range or syntax!', 'Incorrect <i>FTP account</i> range or syntax!'), 
    46 ('Incorrect mail account range or syntax!', 'Incorrect <i>e-mail account</i> range or syntax!'), 
     39('Incorrect max FTP count or syntax!', 'Incorrect <i>max FTP</i> count or syntax!'), 
     40('Incorrect max SQL databases count or syntax!', 'Incorrect <i>max mySQL databases</i> count or syntax!'), 
     41('Incorrect max SQL users count or syntax!', 'Incorrect <i>max mySQL users</i> count or syntax!'), 
    4742('Incorrect max alias count or syntax!', 'Incorrect <i>max alias</i> count or syntax!'), 
    4843('Incorrect max disk amount or syntax!', 'Incorrect <i>max disk</i> amount or syntax!'), 
    4944('Incorrect max domain count or syntax!', 'Incorrect <i>max domain</i> count or syntax!'), 
    50 ('Incorrect max FTP count or syntax!', 'Incorrect <i>max FTP</i> count or syntax!'), 
    5145('Incorrect max mail count or syntax!', 'Incorrect <i>max e-mail</i> count or syntax!'), 
    52 ('Incorrect max SQL databases count or syntax!', 'Incorrect <i>max mySQL databases</i> count or syntax!'), 
    53 ('Incorrect max SQL users count or syntax!', 'Incorrect <i>max mySQL users</i> count or syntax!'), 
    5446('Incorrect max subdomain count or syntax!', 'Incorrect <i>max subdomain</i> count or syntax!'), 
    5547('Incorrect max traffic amount or syntax!', 'Incorrect <i>max traffic</i> amount or syntax!'), 
    5648('Incorrect mount point syntax', 'Incorrect <i>mount point</i> syntax!'), 
    5749('Mail', 'e-mail'), 
    58 ('S', 'Status'), 
    59 ('you are logged now as', 'you are now logged in as'); 
     50('encoding', 'UTF-8'); 
  • trunk/configs/dists/fedora/fcgi/parts/master/php4-fcgi-starter.tpl

    r785 r878  
    1111export PHP_FCGI_MAX_REQUESTS 
    1212 
    13 exec /usr/bin/php4-cgi 
     13exec {PHP4_FASTCGI_BIN} 
  • trunk/configs/dists/fedora/fcgi/parts/master/php4/php.ini

    r785 r878  
    204204; 
    205205 
    206 open_basedir = "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:{PEAR_DIR}/" 
     206open_basedir = "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}" 
    207207 
    208208; This directive allows you to disable certain functions for security reasons. 
  • trunk/configs/dists/fedora/fcgi/parts/master/php5-fcgi-starter.tpl

    r785 r878  
    1111export PHP_FCGI_MAX_REQUESTS 
    1212 
    13 exec /usr/bin/php5-cgi 
     13exec {PHP5_FASTCGI_BIN} 
  • trunk/configs/dists/fedora/fcgi/parts/master/php5/php.ini

    r785 r878  
    215215; 
    216216 
    217 open_basedir = "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:{PEAR_DIR}/" 
     217open_basedir = "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}" 
    218218 
    219219; This directive allows you to disable certain functions for security reasons. 
     
    996996; where MODE is the octal representation of the mode. Note that this 
    997997; does not overwrite the process's umask. 
    998 session.save_path = /{WWW_DIR}/{DMN_NAME}/phptmp 
     998session.save_path = {WWW_DIR}/{DMN_NAME}/phptmp 
    999999 
    10001000; Whether to use cookies. 
  • trunk/configs/dists/fedora/fcgi/parts/php4-fcgi-starter.tpl

    r401 r878  
    11#!/bin/sh 
     2 
     3umask 022 
    24 
    35PHPRC="{PHP_STARTER_DIR}/{DMN_NAME}/php4/" 
     
    68PHP_FCGI_CHILDREN=2 
    79export PHP_FCGI_CHILDREN