File: README

package info (click to toggle)
php4 6%3A4.4.4-8%2Betch6
  • links: PTS
  • area: main
  • in suites: etch
  • size: 35,068 kB
  • ctags: 39,148
  • sloc: ansic: 340,486; php: 34,786; cpp: 10,150; sh: 9,010; lex: 2,180; yacc: 1,712; xml: 1,335; makefile: 559; awk: 466; java: 455; perl: 154
file content (48 lines) | stat: -rw-r--r-- 1,271 bytes parent folder | download | duplicates (3)
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
AOLserver README ($Id: README,v 1.5.14.1 2003/05/02 18:25:39 sas Exp $)

PHP 4 supports AOLserver 3.0+ and AOLserver 4 out-of-the-box.

Note that there might be thread-safety issues with thread-unsafe
libraries/extensions.  Test thoroughly before you put anything
into production.


1.) Installing AOLserver

    For AOLserver 4, ./configure; make; make install seems to be enough.

2.) Install PHP

    $ ./configure \
        --with-aolserver=/path/to/installed/aolserver \
        <other options>
    $ make
    $ make install

3.) Enabling PHP in your config.tcl

    Required steps:

    Locate the modules section:

        ns_section "ns/server/${servername}/modules"

    Under that, add this line:

        ns_param php ${bindir}/libphp4.so

    Add a new section at the end of config.tcl to enable PHP support:

        ns_section "ns/server/${servername}/module/php"
        ns_param map *.php
    
    Now, all *.php files will be handled by PHP.

    You can also configure INI variables. E.g.

        ns_param php_value "session.auto_start 1"
    
=============================================================================
This has been tested with AOLserver release 3.1/4.0.

AOLserver support has been written by Sascha Schumann <sascha@schumann.cx>.