PHP3 Chinese Document (cont. 1) _php Tutorial

Source: Internet
Author: User
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 ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.