-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
52 lines (35 loc) · 1.66 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
1 - To install midgard php4-module, you'll first need to have the version
4.3 or later of PHP, as well as the matching php-devel package (or install
PHP from source).
Make sure midgard-config are in your PATH, and that regular PHP pages work.
2 - Then run:
./mkall
* midgard-config is not in system's PATH
Use --with-midgard-config argument , full path including
midgard-config executable is required in such case
./mkall --with-midgard-config=/usr/local/bin/midgard-config
* PHP4 and PHP5 installed
Use --with-php-config argument, full path including
php-config executable is required
./mkall --with-php-config=/usr/bin/php-config4
On debian sarge or sid you shouldn't use mkall script if both PHP4 and PHP5
are installed. To compile against PHP5 you should use phpize and configure scripts.
phpize5
./configure --wit-php-config=/usr/bin/php-config5
make
3 - Edit your php.ini to add:
extension=midgard.so
and make sure that extension_dir at least contains the output of
'php-config --extension-dir'
4 - Stop and start httpd.
You may stop and start httpd server when midgard-data is already configured and
installed.
It is required for midgard to have php4 installed with native mysql
and xml support. This is usually done with
configure --with-mysql=<path-to-mysql> --with-xml=<path-to-expat>
If mysql or expat cannot be found php4 uses built-in support for
these. This will _not_ work with Midgard, or indeed any extension that
uses the installed version of these libraries instead of the versions
bundled with php4. If you want to use mysql and/or expat functionality
in PHP you _have to_ make sure that php uses the external, not the
internal, libraries.