Changeset 16190
- Timestamp:
- 04/23/08 11:06:02 (6 months ago)
- Files:
-
- trunk/midgard/apis/php5/INSTALL (modified) (3 diffs)
- trunk/midgard/apis/php5/README (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midgard/apis/php5/INSTALL
r9586 r16190 1 1 2 1 - To install midgard php4-module, you'll first need to have the version3 4.3or later of PHP, as well as the matching php-devel package (or install2 1 - To install midgard-php5 module, you'll first need to have the version 3 5.2 or later of PHP, as well as the matching php-devel package (or install 4 4 PHP from source). 5 Make sure midgard-config are in your PATH, and that regular PHP pages work.6 7 5 8 6 2 - Then run: … … 10 8 ./mkall 11 9 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. 15 12 16 ./mkall --with- midgard-config=/usr/local/bin/midgard-config13 ./mkall --with-pkg-config=/usr/local/bin/pkg-config 17 14 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. 21 17 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 30 19 31 20 3 - Edit your php.ini to add: 32 21 33 22 extension=midgard.so 23 midgard.http=On 34 24 35 and make sure that extension_dir at least contains the output of 36 'php-config --extension-dir' 25 and make sure that extension_dir at least contains the output of `php-config --extension-dir` 37 26 38 27 4 - Stop and start httpd. … … 41 30 installed. 42 31 43 It is required for midgard to have php4 installed with native mysql44 and xml support. This is usually done with45 configure --with-mysql=<path-to-mysql> --with-xml=<path-to-expat>46 32 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 37 midgard.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 43 midgard.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 50 midgard.engine 51 Disable or enable midgard engine. Default is 'On'. 52 You can change it between requests and also use in .htaccess files. 53 54 midgard.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 1 Read INSTALL file for installation and configuration notes.
