summaryrefslogtreecommitdiff
path: root/db/php_db4/INSTALL
blob: 810bd011e78bb5624bff73b14f7f910a17a707fd (plain)
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
*** A note about pthreads ***
The db4 c++ library by default tries to link against libpthread on some
systems (notably Linux).  If your PHP install is not linked against
libpthread, you will need to disable pthread support in db4.  This can
be done by compiling db4 with the flag  --with-mutex=x86/gcc-assembly.
PHP can itself be forced to link against libpthread either by manually
editing
its build files (which some distributions do), or by building it with
--with-experimental-zts.



To install this php module linked against the mod_db4 framework,
execute the following steps:

> phpize
> ./configure --with-db4[=/path/to/db4]
--with-mod_db4=$APACHE_INCLUDEDIR
> make
> su -
# make install

Then in your php.ini file add:

extension=db4.so

This extension will now only run in a SAPI linked into Apache httpd
(mod_php4, 
most likely), and will take advantage of all of it's auto-recovery and
handle-caching facilities.


To install this php module linked against db-4.2 and NOT the mod_db4
framework,
execute the following steps:

> phpize
> ./configure --with-db4[=/path/to/db4]
> make
> su -
# make install

Then in your php.ini file add:

extension=db4.so