root/trunk/midgard/apis/php5/INSTALL

Revision 16190, 1.9 kB (checked in by piotras, 7 months ago)

Keep notes up to date

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2 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 PHP from source).
5
6 2 - Then run:
7
8 ./mkall
9
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.
12
13         ./mkall --with-pkg-config=/usr/local/bin/pkg-config
14
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.
17
18         ./mkall --with-php-config=/opt/bin/php-config
19
20 3 - Edit your php.ini to add:
21
22 extension=midgard.so
23 midgard.http=On
24
25 and make sure that extension_dir at least contains the output of `php-config --extension-dir`
26
27 4 - Stop and start httpd.
28
29 You may stop and start httpd server when midgard-data is already configured and
30 installed.
31
32
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
Note: See TracBrowser for help on using the browser.