Changeset 165

Show
Ignore:
Timestamp:
10/22/06 02:45:05 (2 years ago)
Author:
quix0r
Message:

STARTER_DIR added to templates and engine fixed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r164 r165  
    11X-Panel 0.1 Changelog 
    22~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     32006-10-22 Roland Haeder 
     4        - ENGINE: 
     5                * Fixes loading of domain's php.ini file and not /etc/php5/cgi/php.ini: 
     6                        + Templates dmn_name, sub_dmn changed to use STARTER_DIR 
     7                        + vhcs2-dmn-mngr and vhcs2-sub-mngr extended to use STARTER_DIR 
     8 
    392006-10-21 Roland Haeder 
    410        - ENGINE: 
  • trunk/configs/apache/parts/dmn_entry.tpl

    r157 r165  
    3232    # httpd dmn entry cgi support END. 
    3333 
    34     ScriptAlias /php/ {WWW_DIR}/{DMN_NAME}/cgi-bin
    35     <Directory "{WWW_DIR}/{DMN_NAME}/cgi-bin">  
    36         AllowOverride None  
    37         Options +ExecCGI -MultiViews -Indexes  
    38         Order allow,deny  
    39         Allow from all  
    40     </Directory>  
     34    ScriptAlias /php/ {STARTER_DIR}/{DMN_NAME}
     35    <Directory "{WWW_DIR}/{DMN_NAME}/cgi-bin"> 
     36        AllowOverride None 
     37        Options +ExecCGI -MultiViews -Indexes 
     38        Order allow,deny 
     39        Allow from all 
     40    </Directory> 
    4141 
    4242    <Directory {GUI_ROOT_DIR}> 
     
    5454        # httpd dmn entry PHP support END. 
    5555        Options -Indexes Includes FollowSymLinks MultiViews 
    56         AllowOverride AuthConfig FileInfo 
     56        AllowOverride All 
    5757        Order allow,deny 
    5858        Allow from all 
  • trunk/configs/apache/parts/sub_entry.tpl

    r157 r165  
    2525 
    2626    <Directory {WWW_DIR}/{DMN_NAME}/errors/> 
    27         php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/errors/" 
     27        <IfModule mod_php.c> 
     28            php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/errors/" 
     29        </IfModule> 
    2830    </Directory> 
    2931 
     
    3638    # httpd sub entry cgi support END. 
    3739 
    38     ScriptAlias /php/ {WWW_DIR}/{DMN_NAME}/cgi-bin
    39     <Directory "{WWW_DIR}/{DMN_NAME}/cgi-bin">  
    40         AllowOverride None  
    41         Options +ExecCGI -MultiViews -Indexes  
    42         Order allow,deny  
    43         Allow from all  
    44     </Directory>  
     40    ScriptAlias /php/ {STARTER_DIR}/{DMN_NAME}
     41    <Directory "{WWW_DIR}/{DMN_NAME}/cgi-bin"> 
     42        AllowOverride None 
     43        Options +ExecCGI -MultiViews -Indexes 
     44        Order allow,deny 
     45        Allow from all 
     46    </Directory> 
    4547 
    4648    <Directory {GUI_ROOT_DIR}> 
     
    5860        # httpd sub entry PHP support END. 
    5961        Options -Indexes Includes FollowSymLinks MultiViews 
    60         AllowOverride AuthConfig FileInfo 
     62        AllowOverride All 
    6163        Order allow,deny 
    6264        Allow from all 
  • trunk/configs/php/parts/php5-fcgi-starter.tpl

    r162 r165  
    11#!/bin/sh 
    22 
    3 PHPRC="{PHP_STARTER_DIR}/{DOMAIN_NAME}/" 
     3PHPRC="{PHP_STARTER_DIR}/{DMN_NAME}/" 
     4 
    45export PHPRC 
    5 #PHP_FCGI_CHILDREN=4 
    6 #export PHP_FCGI_CHILDREN 
     6PHP_FCGI_CHILDREN=2                                                                                                            
     7export PHP_FCGI_CHILDREN                                                                                                       
     8PHP_FCGI_MAX_REQUESTS=5000                                                                                                     
     9export PHP_FCGI_MAX_REQUESTS                                                                                                   
     10 
    711exec /usr/bin/php5-cgi  
  • trunk/engine/vhcs2-dmn-mngr

    r164 r165  
    893893         '{DMN_IP}' => $dmn_ip, 
    894894         '{WWW_DIR}' => $main::cfg{'APACHE_WWW_DIR'}, 
     895         '{STARTER_DIR}' => $main::cfg{'PHP_STARTER_DIR'}, 
    895896         '{APACHE_LOG_DIR}' => $main::cfg{'APACHE_LOG_DIR'}, 
    896897         '{GUI_ROOT_DIR}' => $main::cfg{'GUI_ROOT_DIR'}, 
  • trunk/engine/vhcs2-sub-mngr

    r154 r165  
    696696        ( 
    697697         '{DMN_NAME}' => $dmn_name, 
     698         '{STARTER_DIR}' => $main::cfg{'PHP_STARTER_DIR'}, 
    698699         '{WWW_DIR}' => $main::cfg{'APACHE_WWW_DIR'}, 
    699700         '{APACHE_LOG_DIR}' => $main::cfg{'APACHE_LOG_DIR'}, 
     
    13881389                             "$sub_dir", 
    13891390                             $sys_user, 
    1390                              $httpd_gid
     1391                             $sys_group
    13911392                             0770 
    13921393                            ); 
     
    13971398                             "$sub_dir/htdocs", 
    13981399                             $sys_user, 
    1399                              $httpd_gid
     1400                             $sys_group
    14001401                             0770 
    14011402                            ); 
     
    14151416                             "$sub_dir/phptmp", 
    14161417                             $sys_user, 
    1417                              $httpd_gid
     1418                             $sys_group
    14181419                             0770 
    14191420                            ); 
     
    14381439                               $index_tpl, 
    14391440                               $sys_user, 
    1440                                $httpd_gid
     1441                               $sys_group
    14411442                               0660 
    14421443                              ); 
     
    15031504                                                                        "$sub_dir/phptmp", 
    15041505                                        $sys_user, 
    1505                                         $httpd_gid
     1506                                        $sys_group
    15061507                                        0770 
    15071508                                );