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.