Changeset 16190

Show
Ignore:
Timestamp:
04/23/08 11:06:02 (6 months ago)
Author:
piotras
Message:

Keep notes up to date

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/apis/php5/INSTALL

    r9586 r16190  
    11 
    2 1 - To install midgard php4-module, you'll first need to have the version  
    3 4.3 or later of PHP, as well as the matching php-devel package (or install  
     21 - To install midgard-php5 module, you'll first need to have the version  
     35.2 or later of PHP, as well as the matching php-devel package (or install  
    44PHP from source).  
    5 Make sure midgard-config are in your PATH, and that regular PHP pages work. 
    6  
    75 
    862 - Then run: 
     
    108./mkall  
    119 
    12         * midgard-config is not in system's PATH 
    13         Use --with-midgard-config argument , full path including  
    14         midgard-config executable is required in such case 
     10        If pkg-config is not in system's PATH,  use --with-pkg-config argument. 
     11        Full path including pkg-config executable is required in such case. 
    1512 
    16         ./mkall --with-midgard-config=/usr/local/bin/midgard-config 
     13        ./mkall --with-pkg-config=/usr/local/bin/pkg-config 
    1714 
    18         * PHP4 and PHP5 installed 
    19         Use --with-php-config argument, full path including  
    20         php-config executable is required 
     15        If php-config is not in system's PATH, use --with-php-config argument. 
     16        Full path including php-config executable is required in such case. 
    2117 
    22         ./mkall --with-php-config=/usr/bin/php-config4 
    23  
    24 On debian sarge or sid you shouldn't use mkall script if both PHP4 and PHP5 
    25 are installed. To compile against PHP5 you should use phpize and configure scripts. 
    26  
    27         phpize5 
    28         ./configure --wit-php-config=/usr/bin/php-config5 
    29         make 
     18        ./mkall --with-php-config=/opt/bin/php-config 
    3019 
    31203 - Edit your php.ini to add: 
    3221 
    3322extension=midgard.so 
     23midgard.http=On 
    3424 
    35 and make sure that extension_dir at least contains the output of 
    36 'php-config --extension-dir' 
     25and make sure that extension_dir at least contains the output of `php-config --extension-dir` 
    3726 
    38274 - Stop and start httpd. 
     
    4130installed. 
    4231 
    43 It is required for midgard to have php4 installed with native mysql 
    44 and xml support. This is usually done with 
    45 configure --with-mysql=<path-to-mysql> --with-xml=<path-to-expat> 
    4632 
    47 If mysql or expat cannot be found php4 uses built-in support for 
    48 these. This will _not_ work with Midgard, or indeed any extension that 
    49 uses the installed version of these libraries instead of the versions 
    50 bundled with php4. If you want to use mysql and/or expat functionality 
    51 in PHP you _have to_ make sure that php uses the external, not the 
    52 internal, libraries. 
     33######################################################## 
     34########### PHP ini configuration directives ########### 
     35######################################################## 
     36 
     37midgard.configuration 
     38        Name of midgard unified configuration file. Default is ''. 
     39        It's not used if midgard.http is 'Off'. It's set when module is loaded,  
     40        and you can change it later, during runtime. Usable with virtual hosts. 
     41        ( For example: php_admin_value midgard.configuration midgard ) 
     42 
     43midgard.http 
     44        Switch which forces midgard module to initialize all system configurations 
     45        when module is loaded. All connections to all defined databases are made at once.  
     46        It should not be set for cli applications. This configuration should be set  
     47        in main php.ini which is used only by php http server module. 
     48        It can not be changed during runtime. Default is 'Off'. 
     49 
     50midgard.engine 
     51        Disable or enable midgard engine. Default is 'On'. 
     52        You can change it between requests and also use in .htaccess files. 
     53 
     54midgard.quota 
     55        Disable or enable quota check. Default is 'Off'. 
     56        You can change it between requests and also use in .htaccess files. 
     57 
  • trunk/midgard/apis/php5/README

    r14294 r16190  
     1Read INSTALL file for installation and configuration notes.