3rd Chapter Installation
This chapter will guide you through how to install and set up PHP3. and introduce the necessary knowledge and software.
Basic UNIX skills (Learn how to manipulate and "make" a C compiler)
A standard ANSI C compiler
A Web server (obviously required)
Compile and install with UNIX source code
Download the source file
The latest source code can be found at the following URL: http://www.php.net
Quick Installation Instructions (Apache Module version)
1. Gunzip apache_1.3.x.tar.gz
2. Tar xvf Apache_1.3.x.tar
3. Gunzip php-3.0.x.tar.gz
4. Tar xvf Php-3.0.x.tar
5. CD apache_1.3.x
6../configure--prefix=/www
7. cd. /php-3.0.x
8../configure--with-mysql--with-apache=. /apache_1.3.x--enable-track-vars
9. Make
Ten. Make install
One. CD. /apache_1.3.x
/configure--prefix=/www--activate-module=src/modules/php3/libphp3.a
. Make
Make install
Instead of this step, prefer to simply copy the httpd binaryovertop of your of binary. Make sure your shut down YourServer first though.
(You can also use the direct copy httpd binary file to overwrite the existing binaries instead of the previous step, but you must first shut down your server.) )
CD. /php-3.0.x
CP Php3.ini-dist/usr/local/lib/php3.ini
You can edit/usr/local/lib/php3.ini the file to set PHP options. If you prefer the this file with another location, use the--with-config-file=/path in step 8.
(You can edit the/usr/local/lib/php3.ini file directly to set PHP options, if you are storing this file in a different location, then use With-config-file=/path in step 8)
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php3 php3 can choose any extension your wish here. . PHP3 is simply the one we suggest.
(You can choose any extension you want, we think PHP3 is a very simple thing.) )
http://www.bkjia.com/PHPjc/631457.html www.bkjia.com true http://www.bkjia.com/PHPjc/631457.html techarticle 3rd Chapter Installation This chapter will guide you through how to install and set up PHP3. and introduce the necessary knowledge and software. Basic UNIX skills (Learn how to manipulate and "make" a C compiler) a standard ...