DBMaker Starting Guides

PHP Notes for Slackware Linux

There are some things you should know before building PHP3/PHP4 on your Slackware Linux machine:

  1. Checking your Apache server
    Execute the script apxs under APACHE_HOMEbin/, where APACHE_DIR is where your Apache installed. For example:
    $ /usr/local/etc/httpd/bin/apxs -q INCLUDEDIR
    
    If it shows a path, that's OK. If it shows error messages, and you want to build PHP3/PHP4 as a shared library (like libphp4.so), you have to reinstall your Apache with configure option --enable-module=so:
    $ ./configure --prefix=/usr/local/etc/httpd --enable-module=so
    $ make
    $ make install
    (Modify configuration files.)
    $ /usr/local/etc/httpd/bin/apachectrl start
    
    Then you can build PHP3/PHP4 as a loadable module of Apache. For the detailed information about how to build and install Apache, please reference the INSTALL, README files in your Apacke source package.

  2. Put the php.ini in the right place
    The PHP configuration file php.ini must be put under APACHE_HOME/lib, otherwise the PHP module cannot get the setting you use.

[ Back To Manuals Index ]

Copyright 2002 SYSCOM Computer Engineering Co. All rights reserved.