Ticket #2053: back_timezone.patch

File back_timezone.patch, 19.9 KB (added by nuxwin, 22 months ago)

back timezone patch (Updated)

  • engine/setup/ispcp-setup

     
    107107                $rs = ask_vhost(); 
    108108        } while ($rs == 1); 
    109109 
    110         # 
    111110        # SQL Questions 
    112         # 
     111        ############### 
    113112 
    114113        $rs = ask_db_host(); 
    115114        return $rs if ($rs != 0); 
     
    124123                $rs = ask_db_password(); 
    125124        } while ($rs == 1); 
    126125 
    127         # 
    128         # ispCP ftp SQL user questions; 
    129         # 
     126        # ispCP ftp SQL user questions 
     127        ############################## 
    130128 
    131129        do { 
    132130                $rs = ask_db_ftp_user(); 
     
    136134                $rs = ask_db_ftp_password(); 
    137135        } while ($rs == 1); 
    138136 
    139         # 
    140137        # PMA user for SQL 
    141         # 
     138        ################## 
    142139 
    143140        do { 
    144141                $rs = ask_db_pma_user(); 
     
    148145                $rs = ask_db_pma_password(); 
    149146        } while ($rs == 1); 
    150147 
    151         # 
    152148        # Admin questions 
    153         # 
     149        ################# 
    154150 
    155151        $rs = ask_admin(); 
    156152        return $rs if ($rs != 0); 
     
    163159                $rs = ask_admin_email(); 
    164160        } while ($rs == 1); 
    165161 
    166         # 
    167162        # Configuration questions 
    168         # 
     163        ######################### 
    169164 
    170165        do { 
    171166                $rs = ask_second_dns(); 
     
    175170                $rs = ask_mysql_prefix(); 
    176171        } while ($rs == 1); 
    177172 
    178         # 
    179173        # FastCGI-Version questions 
    180         # 
     174        ########################### 
    181175 
    182176        do { 
    183177                $rs = ask_fastcgi(); 
    184178        } while ($rs == 1); 
    185          
    186         # 
     179 
     180        # PHP Timzeone question 
     181        ####################### 
     182 
     183        do { 
     184                $rs = ask_timezone(); 
     185        } while ($rs == 1); 
     186 
    187187        # AWStats questions 
    188         # 
     188        ################### 
    189189 
    190190        do { 
    191191                $rs = ask_awstats_on(); 
     
    741741 
    742742        $rs = set_conf_val('PHP_FASTCGI', $main::ua{'php_fastcgi'}); 
    743743        return $rs if ($rs != 0); 
    744  
     744         
     745        $rs = set_conf_val('PHP_TIMEZONE', $main::ua{'php_timezone'}); 
     746        return $rs if ($rs != 0); 
     747 
    745748        $rs = set_conf_val('SECONDARY_DNS', $main::ua{'secondary_dns'}); 
    746749        return $rs if ($rs != 0); 
    747750 
     
    791794                        $main::db_pwd 
    792795                ); 
    793796 
    794                 # TODO Add ask to user confirmation 
     797                # TODO Add ask for user confirmation 
    795798                $sql = "DROP DATABASE IF EXISTS $store_db_name;"; 
    796799 
    797800                ($rs, $rdata) = doSQL($sql); 
  • configs/openbsd/ispcp.conf

     
    190190 
    191191PHP_VERSION = 5 
    192192 
    193 PHP_TIMEZONE = UTC 
     193PHP_TIMEZONE = 
    194194 
    195195# 
    196196# ProFTPd data 
  • configs/redhat/ispcp.conf

     
    184184 
    185185PHP_VERSION = 5 
    186186 
    187 PHP_TIMEZONE = UTC 
     187PHP_TIMEZONE = 
    188188 
    189189# 
    190190# ProFTPd data 
  • engine/setup/ispcp-update

     
    545545 
    546546        push_el(\@main::el, 'check_ispcp_cfg_file()', 'Starting...'); 
    547547 
    548         # Ref to an array of settings names that have a unallowed empty value 
     548        # Reference to an array of settings that have unallowed empty value 
    549549        my $settings = shift; 
    550550 
    551         my ($rs, $msg, $rdata, $warn_msg) = (undef, undef, undef, undef); 
     551        my ($rs, $msg, $rdata, $warn_msg); 
    552552 
    553         # Map each setting to appropriate dialog subroutine and mainua key name 
    554         # TODO: Add a trigger to check database connection if related setting values 
    555         # are changed && add a subroutine for the 'BASE_SERVER_VHOST' to prevent 
    556         # errors  if a dns file doesn't exist for him 
     553        # Map each setting to the appropriate dialog subroutine and the corresponding 
     554        # main::ua key name 
     555        # 
     556        # TODO:  
     557        #  - Add a trigger to check database connection if related settings are  
     558        #    changed  
     559        #  - Add a subroutine for the 'BASE_SERVER_VHOST' to prevent errors if the  
     560        #    DNS file doesn't exist 
    557561        my $recovery_dispatcher = { 
    558562                DEFAULT_ADMIN_ADDRESS => [\&ask_admin_email, 'admin_email'], 
    559563                SERVER_HOSTNAME => [\&ask_hostname, 'hostname'], 
     
    562566                DATABASE_HOST => [\&ask_db_host, 'db_host'], 
    563567                DATABASE_NAME => [\&ask_db_name, 'db_name'], 
    564568                DATABASE_USER => [\&ask_db_user, 'db_user'], 
    565                 PHP_FASTCGI => [\&ask_fastcgi, 'php_fastcgi'] 
     569                PHP_FASTCGI => [\&ask_fastcgi, 'php_fastcgi'], 
     570                PHP_TIMEZONE => [\&ask_timezone, 'php_timezone'] 
    566571        }; 
    567572 
    568         # If several parameters are set to an empty value, we ensure 
    569         # that the user has installed ispCP by asking the question 
    570         if(scalar(@$settings) >= 2) { 
     573        # If several parameters are set to an empty value, we should ensure 
     574        # that the user has installed ispCP by asking this question 
     575        if (scalar(@$settings) >= 2) { 
    571576 
    572577                print colored(['bold yellow'], "\n\n\tWARNING:"). 
    573578                        " Your ispCP configuration file has several settings set\n" . 
    574                         "\tto an empty value !\n"; 
     579                        "\tto an empty value!\n"; 
    575580 
    576581                do { 
    577582                        print STDOUT "\n\tAre you sure you have installed ispCP ? [Y/n]: "; 
     
    579584                } while($rdata !~ /^(|y|n)$/i); 
    580585 
    581586                $msg = colored(['bold blue'], "\n\tNOTICE:") . 
    582                         " The program will end now !\n" . 
    583                         "\tPlease, run '$main::cfg{'ROOT_DIR'}/engine/setup/ispcp-setup' instead !\n"; 
     587                        " The program ends now!\n" . 
     588                        "\tPlease, run '$main::cfg{'ROOT_DIR'}/engine/setup/ispcp-setup' instead!\n"; 
    584589 
    585590                ($rdata !~ /^n$/i) or exit_msg(1, $msg); 
    586591        } 
    587592 
    588593        print STDOUT colored(['bold yellow'], "\n\n\tWARNING:") . 
    589                 " Your ispCP configuration file is not valid!\n" . 
    590                 "\tThe program will switch to recovery mode now...\n"; 
     594                " Your ispCP configuration file has missing parameters!\n" . 
     595                "\tThe update script will switch to recovery/upgrade mode now...\n"; 
    591596 
    592597        do { 
    593598                print STDOUT "\n\tDo you want to continue [Y/n]: "; 
    594599                chomp($rdata = readline \*STDIN); 
    595600        } while($rdata !~ /^(|y|n)$/i); 
    596601 
    597         # Exit with a notice message if the user choose 
    598         # to abort the recovery process 
     602        # Exit with a notice if the user chooses to abort the recovery/update process 
    599603        ($rdata !~ /^n$/i) or exit_msg(1, 
    600604                colored(['bold blue'], "\n\tNOTICE:") . 
    601                 " The recovery process was aborted by user...\n" 
     605                " The recovery/upgrade process was aborted by user...\n" 
    602606        ); 
    603607 
    604         # For each setting, calls the dialog subroutine if it is available, 
    605         # OTHERWISE saves the values already changed and stops the program 
     608        # For each setting, call the subroutine dialouge if available, 
     609        # OTHERWISE saves the value already changed and stops the program 
    606610        # with an specific message. 
    607611        foreach(@$settings) { 
    608612 
     
    643647                } 
    644648        } 
    645649 
    646         # Store new configuration settings values and reload it 
     650        # Store new configuration settings values and reload the ispcp.conf 
    647651        $rs = store_conf(); 
    648652        return $rs if($rs != 0); 
    649653 
     
    654658        } 
    655659 
    656660        print STDOUT colored(['bold blue'], "\n\tNOTICE:") . 
    657                 " The recovery process was end successfully!\n" . 
    658                 "\tThe update process will continue normally now...\n\n"; 
     661                " The recovery/upgrade process ended successfully!\n" . 
     662                "\tThe update process will continue normal...\n\n"; 
    659663 
    660664        push_el(\@main::el, 'check_ispcp_cfg_file()', 'Ending...'); 
    661665 
  • configs/freebsd/fcgi/parts/php5/php.ini

     
    995995[Date] 
    996996; Defines the default timezone used by the date functions 
    997997; http://php.net/date.timezone 
    998 ;date.timezone = 
     998date.timezone = {PHP_TIMEZONE} 
    999999 
    10001000; http://php.net/date.default-latitude 
    10011001;date.default_latitude = 31.7667 
  • configs/fedora/fcgi/parts/php5/php.ini

     
    995995[Date] 
    996996; Defines the default timezone used by the date functions 
    997997; http://php.net/date.timezone 
    998 ;date.timezone = 
     998date.timezone = {PHP_TIMEZONE} 
    999999 
    10001000; http://php.net/date.default-latitude 
    10011001;date.default_latitude = 31.7667 
  • configs/opensuse/ispcp.conf

     
    184184 
    185185PHP_VERSION = 5 
    186186 
    187 PHP_TIMEZONE = UTC 
     187PHP_TIMEZONE = 
    188188 
    189189# 
    190190# ProFTPd data 
  • configs/ubuntu/ispcp.conf

     
    184184 
    185185PHP_VERSION = 5 
    186186 
    187 PHP_TIMEZONE = UTC 
     187PHP_TIMEZONE = 
    188188 
    189189# 
    190190# ProFTPd data 
  • configs/fedora/ispcp.conf

     
    184184 
    185185PHP_VERSION = 5 
    186186 
    187 PHP_TIMEZONE = UTC 
     187PHP_TIMEZONE = 
    188188 
    189189# 
    190190# ProFTPd data 
  • configs/centos/ispcp.conf

     
    184184 
    185185PHP_VERSION = 5 
    186186 
    187 PHP_TIMEZONE = UTC 
     187PHP_TIMEZONE = 
    188188 
    189189# 
    190190# ProFTPd data 
  • configs/freebsd/ispcp.conf

     
    190190 
    191191PHP_VERSION = 5 
    192192 
    193 PHP_TIMEZONE = UTC 
     193PHP_TIMEZONE = 
    194194 
    195195# 
    196196# ProFTPd data 
  • configs/centos/fcgi/parts/php5/php.ini

     
    995995[Date] 
    996996; Defines the default timezone used by the date functions 
    997997; http://php.net/date.timezone 
    998 ;date.timezone = 
     998date.timezone = {PHP_TIMEZONE} 
    999999 
    10001000; http://php.net/date.default-latitude 
    10011001;date.default_latitude = 31.7667 
  • configs/gentoo/fcgi/parts/php5/php.ini

     
    663663 
    664664[Date] 
    665665; Defines the default timezone used by the date functions 
    666 ;date.timezone = 
     666date.timezone = {PHP_TIMEZONE} 
    667667 
    668668;date.default_latitude = 31.7667 
    669669;date.default_longitude = 35.2333 
  • configs/ubuntu/fcgi/parts/php5/php.ini

     
    663663 
    664664[Date] 
    665665; Defines the default timezone used by the date functions 
    666 ;date.timezone = 
     666date.timezone = {PHP_TIMEZONE} 
    667667 
    668668;date.default_latitude = 31.7667 
    669669;date.default_longitude = 35.2333 
  • engine/setup/ispcp-setup-methods.pl

     
    689689} 
    690690 
    691691sub ask_fastcgi { 
    692  
    693692        push_el(\@main::el, 'ask_fastcgi()', 'Starting...'); 
    694693 
    695694        my $rdata = undef; 
    696  
    697695        my $qmsg = "\n\tFastCGI Version: [f]cgid or fast[c]gi. [fcgid]: "; 
    698696 
    699697        print STDOUT $qmsg; 
    700  
    701698        chomp($rdata = readline \*STDIN); 
    702699 
    703700        if (!defined($rdata) || $rdata eq '') { 
    704  
    705701                $main::ua{'php_fastcgi'} = 'fcgid'; 
    706  
    707702        } else { 
    708  
    709703                if ($rdata eq 'fcgid' || $rdata eq 'f') { 
    710  
    711704                        $main::ua{'php_fastcgi'} = 'fcgid'; 
    712  
    713705                } elsif ($rdata eq 'fastcgi' || $rdata eq 'c') { 
    714  
    715706                        $main::ua{'php_fastcgi'} = 'fastcgi'; 
    716  
    717707                } else { 
    718  
    719708                        print STDOUT colored(['bold red'], "\n\tERROR:") . 
    720709                                 " Only '[f]cgid' or 'fast[c]gi' are allowed!"; 
    721  
    722710                        return 1; 
    723711                } 
    724712        } 
     
    728716        0; 
    729717} 
    730718 
    731 sub ask_awstats_on { 
     719sub ask_timezone { 
     720        push_el(\@main::el, 'ask_timezone()', 'Starting...'); 
    732721 
     722        my $rdata; 
     723        my $qmsg = "\n\tServer's Timezone [Europe/London]: "; 
     724 
     725        print STDOUT $qmsg; 
     726        chomp($rdata = readline \*STDIN); 
     727 
     728        if (!defined($rdata) || $rdata eq '') { 
     729                $main::ua{'php_timezone'} = 'Europe/London'; 
     730        } else { 
     731                if ($rdata =~ m/^UTC|([Africa|America|Antarctica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific]\/[A-Z][a-z]+)$/i) { 
     732                        $main::ua{'php_timezone'} = $rdata; 
     733                } else { 
     734                        print STDOUT colored(['bold red'], "\n\tERROR:") . 
     735                                $rdata . " is not a valid Timezone! " . 
     736                                "The city must start with a capital letter, e.g. Europe/London"; 
     737                        return 1; 
     738                } 
     739        } 
     740 
     741        push_el(\@main::el, 'ask_timezone()', 'Ending...'); 
     742 
     743        0; 
     744} 
     745 
     746sub ask_awstats_on { 
    733747        push_el(\@main::el, 'ask_awstats_on()', 'Starting...'); 
    734748 
    735749        my $rdata = undef; 
    736750        my $qmsg = "\n\tActivate AWStats. [no]: "; 
    737751 
    738752        print STDOUT $qmsg; 
    739  
    740753        chomp($rdata = readline \*STDIN); 
    741754 
    742755        if (!defined($rdata) || $rdata eq '') { 
    743  
    744756                $main::ua{'awstats_on'} = 'no'; 
    745  
    746757        } else { 
    747  
    748758                if ($rdata eq 'yes' || $rdata eq 'y') { 
    749  
    750759                        $main::ua{'awstats_on'} = 'yes'; 
    751  
    752760                } elsif ($rdata eq 'no' || $rdata eq 'n') { 
    753  
    754761                        $main::ua{'awstats_on'} = 'no'; 
    755  
    756762                } else { 
    757  
    758763                        print STDOUT colored(['bold red'], "\n\tERROR:") . 
    759764                                " Only '(y)es' and '(n)o' are allowed!"; 
    760765                        return 1; 
     
    767772} 
    768773 
    769774sub ask_awstats_dyn { 
    770  
    771775        push_el(\@main::el, 'ask_awstats_dyn()', 'Starting...'); 
    772776 
    773777        my $rdata = undef; 
    774778        my $qmsg = "\n\tAWStats Mode:\n\tPossible values [d]ynamic and [s]tatic. [dynamic]: "; 
    775779 
    776780        print STDOUT $qmsg; 
    777  
    778781        chomp($rdata = readline \*STDIN); 
    779782 
    780783        if (!defined($rdata) || $rdata eq '') { 
    781  
    782784                $main::ua{'awstats_dyn'} = '0'; 
    783  
    784785        } else { 
    785  
    786786                if ($rdata eq 'dynamic' || $rdata eq 'd') { 
    787  
    788787                        $main::ua{'awstats_dyn'} = '0'; 
    789  
    790788                } elsif ($rdata eq 'static' || $rdata eq 's') { 
    791  
    792789                        $main::ua{'awstats_dyn'} = '1'; 
    793  
    794790                } else { 
    795  
    796791                        print STDOUT colored(['bold red'], "\n\tERROR:") . 
    797792                                 " Only '[d]ynamic' or '[s]tatic' are allowed!"; 
    798  
    799793                        return 1; 
    800794                } 
    801795        } 
     
    816810# IspCP crontab setup / update 
    817811# Built, store and install the ispCP crontab file 
    818812sub setup_crontab { 
    819  
    820813        push_el(\@main::el, 'setup_crontab()', 'Starting...'); 
    821814 
    822         my ($rs, $rdata, $cmd) = (undef, undef, undef); 
    823  
    824         my $cfg_tpl = undef; 
     815        my ($rs, $rdata, $cmd, $cfg_tpl); 
    825816        my $cfg = \$cfg_tpl; 
    826817 
    827818        my ($awstats, $rkhunter, $chkrootkit) = ('', undef, undef); 
     
    834825 
    835826        # Determines the path of production directory 
    836827        if ($main::cfg{'ROOT_GROUP'} eq 'wheel') { 
    837  
    838828                $prod_dir = '/usr/local/etc/ispcp/cron.d'; 
    839  
    840829        } else { 
    841  
    842830                $prod_dir = '/etc/cron.d' 
    843831        } 
    844832 
     
    14151403                # Enable awstats vhost - Begin 
    14161404 
    14171405                if(-e '/usr/sbin/a2ensite') { 
    1418  
    14191406                        sys_command("/usr/sbin/a2ensite 01_awstats.conf $main::rlogfile"); 
    14201407                } 
    14211408 
     
    14231410 
    14241411                # Update Apache logrotate file - Begin 
    14251412 
    1426                 # FIXME: check for openSUSE and other dists... 
    1427                 # Todo create dedicated directory for backup logrotate configuration file 
     1413                # if the distribution provides an apache or apache2 logrotation file, 
     1414                # update it with the awstats information. If not, use the ispcp file. 
     1415                # logrotation should be never executed twice. Therefore it is sane to 
     1416                # define it two times in different scopes. 
    14281417                foreach(qw/apache apache2/) { 
    14291418 
    14301419                        next if(! -e "$bk_dir/$_.system"); 
  • configs/opensuse/fcgi/parts/php5/php.ini

     
    995995[Date] 
    996996; Defines the default timezone used by the date functions 
    997997; http://php.net/date.timezone 
    998 ;date.timezone = 
     998date.timezone = {PHP_TIMEZONE} 
    999999 
    10001000; http://php.net/date.default-latitude 
    10011001;date.default_latitude = 31.7667 
  • configs/redhat/fcgi/parts/php5/php.ini

     
    995995[Date] 
    996996; Defines the default timezone used by the date functions 
    997997; http://php.net/date.timezone 
    998 ;date.timezone = 
     998date.timezone = {PHP_TIMEZONE} 
    999999 
    10001000; http://php.net/date.default-latitude 
    10011001;date.default_latitude = 31.7667 
  • configs/openbsd/fcgi/parts/php5/php.ini

     
    995995[Date] 
    996996; Defines the default timezone used by the date functions 
    997997; http://php.net/date.timezone 
    998 ;date.timezone = 
     998date.timezone = {PHP_TIMEZONE} 
    999999 
    10001000; http://php.net/date.default-latitude 
    10011001;date.default_latitude = 31.7667 
  • configs/gentoo/ispcp.conf

     
    184184 
    185185PHP_VERSION = 5 
    186186 
    187 PHP_TIMEZONE = UTC 
     187PHP_TIMEZONE = 
    188188 
    189189# 
    190190# ProFTPd data 
  • CHANGELOG

     
    11ispCP ω 1.0.8 ChangeLog 
    22~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    33 
     42010-08-11 Benedikt Heintel 
     5        - ENGINE: 
     6                * Fixed #2053: Make ispCP ω PHP 5.3 compatible (part II) 
     7                        - Added Timezone Variable 
     8 
    492010-08-11 Laurent Declercq 
    510        - ENGINE: (ispcp-alssub-mngr) 
    611                * Removed useless sleep statement 
  • engine/ispcp-dmn-mngr

     
    15461546        my $www_dir = $main::cfg{'APACHE_WWW_DIR'}; 
    15471547        my $pear_dir = $main::cfg{'PEAR_DIR'}; 
    15481548        my $starter_dir = $main::cfg{'PHP_STARTER_DIR'}; 
     1549        my $timezone = $main::cfg{'PHP_TIMEZONE'}; 
    15491550        my $conf_dir = $main::cfg{'CONF_DIR'}; 
    15501551        my $httpd_uid = $main::cfg{'APACHE_USER'}; 
    15511552        my $httpd_gid = $main::cfg{'APACHE_GROUP'}; 
     
    17891790                my %tag_hash = ( 
    17901791                        '{PEAR_DIR}' => $pear_dir, 
    17911792                        '{WWW_DIR}'  => $www_dir, 
    1792                         '{DMN_NAME}' => $dmn_name 
     1793                        '{DMN_NAME}' => $dmn_name, 
     1794                        '{PHP_TIMEZONE}' => $timezone 
    17931795                ); 
    17941796 
    17951797                ($rs, $cfg) = prep_tpl(\%tag_hash, $ini_tpl); 
     
    18591861        my $www_dir = $main::cfg{'APACHE_WWW_DIR'}; 
    18601862        my $pear_dir = $main::cfg{'PEAR_DIR'}; 
    18611863        my $starter_dir = $main::cfg{'PHP_STARTER_DIR'}; 
     1864        my $timezone = $main::cfg{'PHP_TIMEZONE'}; 
    18621865        my $conf_dir = $main::cfg{'CONF_DIR'}; 
    18631866        my $httpd_uid = $main::cfg{'APACHE_USER'}; 
    18641867        my $httpd_gid = $main::cfg{'APACHE_GROUP'}; 
     
    20312034 
    20322035        # php.ini for the domain 
    20332036 
    2034         if (! -e "$starter_dir/$dmn_name/php5/php.ini") { 
    2035                 my $ini_tpl = undef; 
    2036                 my $ini_cfg_dir = "$main::cfg{'CONF_DIR'}/fcgi/parts/php5"; 
     2037        # backup current file if one exist 
     2038        if (-e "$starter_dir/$dmn_name/php5/php.ini") { 
     2039                $rs = sys_command_rs( 
     2040                        "$main::cfg{'CMD_CP'} -p $starter_dir/$dmn_name/php5/php.ini " . 
     2041                        "$conf_dir/fcgi/backup/${dmn_name}.php.ini." . time 
     2042                ); 
     2043                return $rs if ($rs != 0); 
    20372044 
    2038                 ($rs, $ini_tpl) = get_tpl($ini_cfg_dir, 'php.ini'); 
    2039                 return $rs if ($rs != 0); 
     2045        } 
     2046 
     2047        ($rs, my $ini_tpl) = get_file("$conf_dir/fcgi/parts/php5/php.ini"); 
     2048        return $rs if ($rs != 0); 
    20402049 
    2041                 my %tag_hash = ( 
     2050        ($rs, $cfg) = prep_tpl( 
     2051                { 
    20422052                        '{PEAR_DIR}' => $pear_dir, 
    20432053                        '{WWW_DIR}'  => $www_dir, 
    2044                         '{DMN_NAME}' => $dmn_name 
    2045                 ); 
    2046  
    2047                 ($rs, $cfg) = prep_tpl(\%tag_hash, $ini_tpl); 
    2048                 return $rs if ($rs != 0); 
     2054                        '{DMN_NAME}' => $dmn_name, 
     2055                        '{PHP_TIMEZONE}' => $timezone 
     2056                }, 
     2057                $ini_tpl 
     2058        ); 
     2059        return $rs if ($rs != 0); 
    20492060 
    2050                 ($rs, $rdata) = store_file( 
    2051                         "$starter_dir/$dmn_name/php5/php.ini", $cfg, $sys_user, $sys_group, 
    2052                         0440 
    2053                 ); 
    2054                 return $rs if ($rs != 0); 
    2055         } 
     2061        ($rs, $rdata) = store_file( 
     2062                "$starter_dir/$dmn_name/php5/php.ini", $cfg, $sys_user, $sys_group, 
     2063                0440 
     2064        ); 
     2065        return $rs if ($rs != 0); 
    20562066 
    20572067        # php5-fcgi-starter for the domain 
    20582068 
  • configs/debian/ispcp.conf

     
    184184 
    185185PHP_VERSION = 5 
    186186 
    187 PHP_TIMEZONE = UTC 
     187PHP_TIMEZONE = 
    188188 
    189189# 
    190190# ProFTPd data 
  • configs/debian/fcgi/parts/php5/php.ini

     
    995995[Date] 
    996996; Defines the default timezone used by the date functions 
    997997; http://php.net/date.timezone 
    998 ;date.timezone = 
     998date.timezone = {PHP_TIMEZONE} 
    999999 
    10001000; http://php.net/date.default-latitude 
    10011001;date.default_latitude = 31.7667