Tripod5G > instalations
3pod PHP Learning
instalations 15. cd ../php-3.0.x


16. cp php3.ini-dist /usr/local/lib/php3.ini
You can edit /usr/local/lib/php3.ini file to set PHP options. If
you prefer this file in another location, use
-with-config-file-path=/path in step 8.
17. Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php3 .php3
You can choose any extension you wish here. .php3 is simply the one
we suggest.
18. Use your normal procedure for starting the Apache server. (You must
stop and restart the server, not just cause the server to reload by
use a HUP or USR1 signal.)
Configuration
There are two ways of configuring PHP.
• Using the "setup" script that comes with PHP. This script asks you a series of questions (almost like
the "install" script of PHP/FI 2.0) and runs "configure" in the end. To run this script, type ./setup.
This script will also create a file called "do-conf", this file will contain the options passed to configure.
You can edit this file to change just a few options without having to re-run setup. Then type ./do-conf
to run configure with the new options.
• Running configure by hand. To see what options you have, type ./configure –help.
Details about some of the different configuration options are listed below.
Apache module
To build PHP as an Apache module, answer "yes" to "Build as an Apache module?" (the
-with-apache= DIRoption to configure) and specify the Apache distribution base directory. If you
have unpacked your Apache distribution in /usr/local/www/apache_1.2.4, this is your Apache
distribution base directory. The default directory is /usr/local/etc/httpd.

Next >>
bluedot bluedots greydots pinkdots

Tripod >> 3pod Tips & Learning and manuals for educations