PHP is compiled and installed using the Unix source code

Source: Internet
Author: User

Introduction: This is a detailed page for PHP compilation and installation through the Unix source code. It introduces the related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 326440 'rolling = 'no'>

This chapter describes how to install and set php3. Introduce necessary knowledge and software.

Basic UNIX skills (learn how to operate and "CREATE" a c compiler)

A standard ansi c Compiler

A Web Server (apparently required)

Compiled and installed using UNIX source code

Download source file

LatestSource codeHttp://www.php.net can be found:

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

10. make install

11. CD ../apache_1.3.x

12 ../configure -- prefix =/WWW -- activate-module = src/modules/php3/libphp3.a

13. Make

14. make install

Instead of this step you may prefer to simply copy the httpd binaryovertop of your existing binary. Make sure you shut down yourserver first though.

(You can also replace the preceding steps by directly copying the httpd binary file to overwrite the existing binary file. However, you must first disable your server .)

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 in Step 8.

(You can directly edit the/usr/local/lib/php3.ini file to set PHP options. If you store this file in another location, use with-config-file =/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.

(You can choose any extension you want. We think php3 is very simple .)

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 .)

(You must stop and restart the server, instead of simply using the reload function of the server .)

More articles on "php compilation and installation through UNIX source code"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/326440.html pageno: 13.

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.