# CD/USR/SRC
# tar Xvzf apache_1.3.6.tar.gz (Generate apache_1.3.6 directory)
# tar Xvzf php-3.0.8.tar.gz (Generate php-3.0.8 directory)
# CD apache_1.3.6
#./configure--prefix=/usr/local/apache (Set the Apache installation directory to/usr/local/apache)
# CD php-3.0.8
#./configure--with-mysql=/usr/local/mysql \
--with-apache=. /apache_1.3.6 \
--enable-track-vars (configuration support MySQL, as Apache function module, tracking variable valid)
# make; Make install
In the Configure parameter above, specify that PHP support MySQL and give MySQL the installation path.
Then, edit the Apache configuration file:
# cd/usr/local/apache/conf
# VI httpd.conf
Locate the "AddType application/x-httpd-php3. PhP3" and remove the # comment tag that precedes the line.
Of course, you can add a line AddType application/x-httpd-php3. asp this is a little easier to edit with FrontPage.
Then copy the php.ini file to the/usr/local/lib/directory:
# CD: /php-3.0.8
# CP Php3.ini-dist/usr/local/lib/php3.ini
You can modify the configuration file to customize the work details of the PHP3, for example:
Upload_max_filesize = 2097152; 2 Meg default limit on file uploads
The maximum value to limit the amount of uploaded file data is 2 megabytes.
The above describes how UNIX file system installs PhP3 under UNIX system, including UNIX file system content, hope to be interested in PHP tutorial friends helpful.