php通过UNIX源码编译安装
2011-11-17 10:53
357 查看
简介:这是php通过UNIX源码编译安装的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。
class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=326440' scrolling='no'>
本章将引导您如何安装和设置PHP3。并介绍必要的知识和软件。
基本的UNIX技巧(学会如何操作和“制作”一个C编译器)
一个标准的ANSI C的编译器
一个WEB服务器(显然需要)
通过UNIX源码编译安装
下载源文件
最新的源代码可以在以下网址找到:http://www.php.net
快速安装说明书(Apache Module 版本)
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.
(也可以使用直接拷贝httpd的二进制文件覆盖已经存在的二进制文件的方法代替上面的步骤,但是,您必须首先关闭您的服务器。)
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.
(您可以直接编辑/usr/local/lib/php3.ini文件来设置PHP选项,如果您将此文件存放在另一个位置,那么请在步骤8中使用with-config-file=/path)
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.
(您可以选择任何您希望的扩展,我们认为PHP3是一个十分简单的东西。)
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.)
(您必须停止和重新启动服务器,而不能仅仅使用服务器的RELOAD(重新载入)功能。)
“php通过UNIX源码编译安装”的更多相关文章 》
爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具
http://biancheng.dnbcw.info/php/326440.html pageNo:13
class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=326440' scrolling='no'>
本章将引导您如何安装和设置PHP3。并介绍必要的知识和软件。
基本的UNIX技巧(学会如何操作和“制作”一个C编译器)
一个标准的ANSI C的编译器
一个WEB服务器(显然需要)
通过UNIX源码编译安装
下载源文件
最新的源代码可以在以下网址找到:http://www.php.net
快速安装说明书(Apache Module 版本)
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.
(也可以使用直接拷贝httpd的二进制文件覆盖已经存在的二进制文件的方法代替上面的步骤,但是,您必须首先关闭您的服务器。)
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.
(您可以直接编辑/usr/local/lib/php3.ini文件来设置PHP选项,如果您将此文件存放在另一个位置,那么请在步骤8中使用with-config-file=/path)
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.
(您可以选择任何您希望的扩展,我们认为PHP3是一个十分简单的东西。)
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.)
(您必须停止和重新启动服务器,而不能仅仅使用服务器的RELOAD(重新载入)功能。)
“php通过UNIX源码编译安装”的更多相关文章 》
爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具
http://biancheng.dnbcw.info/php/326440.html pageNo:13
相关文章推荐
- 通过源码包php-5.4.9.tar.gz编译安装PHP之后,如何加载动态模块,不需要重新配置PHP
- 源码编译安装PHP和Apache(解决php通过yum安装版本低的问题)
- php 源码编译安装
- Ubuntu 16.04源码编译安装PHP 5.6.29的教程
- CentOS6.8 x64+Nginx1.3.8/Apache-httpd 2.4.3+PHP5.4.8(php-fpm)+MySQL5.5.28+CoreSeek4.1源码编译安装
- 源码编译安装PHP 5.6.29
- centos7 源码编译PHP前的依赖安装
- 通过源码编译安装PostgreSQL步骤及问题总结
- CentOS 下源码编译安装apache+php+mysql
- PHP5.4.36 RHEL6.5 源码编译安装
- lnmp环境安装(4)-php源码编译安装
- CentOS6.8 x64+Nginx1.3.8/Apache-httpd 2.4.3+PHP5.4.8(php-fpm)+MySQL5.5.28+CoreSeek4.1源码编译安装
- 我的LAMP源码编译安装linux+Apache+mysql+php
- linux源码编译安装php,nginx,git需要的依赖安装脚本
- 在Ubuntu中使用源码编译安装Apache+MySQL+PHP+phpMyAdmin
- wdOS系统下源码编译安装LNAMP(linux+nginx+apache+mysql+php)
- php源码编译安装
- CentOS 6源码编译安装 PHP 7.0.5
- 通过编译源码在Linux上安装Python
- PHP源码编译安装管理常用脚本