当前位置:网站首页>源码构建LAMP环境-3
源码构建LAMP环境-3
2022-08-02 20:51:00 【小猴子_xiao】
写作目标:
使用源码方式基于 LAMP 架构搭建 BBS 论坛或者博客
思考:
基础班使用 yum 工具搭建了 LAMP 的环境,为什么还要用源码包再搭建一次呢?
rpm 版本
安装方便,升级、卸载都灵活,很难或者无法定制主要组件的功能,适合批量部署
源码包编译 根据业务需求 定制 ,前提是需要对平台的功能需要非常了解;卸载、升级、安装并不是很方便灵
活
生产环境如何做?
上线前,在测试环境中编译安装并且调试完毕后,把编译后的源码同步到其余软硬环境一样的机器,直
接 make install 即可。
部署环境:linux centos 7.9
五、编译安装PHP
版本:php-5.6.11.tar.xz
1. 下载软件
2. 解压
3. 进入到解压的目录里
1) 配置
[[email protected] php-5.6.11]# vim php.sh
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/mysql25/base_dir/ \
--with-mysqli=/mysql25/base_dir/bin/mysql_config \
--with-pdo-mysql=/mysql25/base_dir \
--with-zlib \
--with-zlib-dir=/mysql25/base_dir/zlib \
配置错误:
checking for cURL support... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
解决:
yum -y install libcurl-devel
2)编译
make //make成功后,会显示让你make test,不用做
3)安装
make install
//确认php成功安装:
[[email protected] php-5.6.11]# ls /usr/local/apache2/modules/libphp5.so
注意:确认有这个libphp5.so模块文件,就表示编译php成功
PHP常见参数介绍:
--with-config-file-path 和 --with-config-file-scan-dir //在指定 php 配置文件的路径
--with-mysql 和 --with-mysqli //在指定你的 mysql 的位置和它的相关工具
--with-iconv-dir
--with-freetype-dir
--with-jpeg-dir
--with-png-dir
--with-gd
--with-zlib
--with-libxml-dir //这些都是在启用对某种文件的支持
--with-curl 和 --with-curlwrappers //用于支持 curl 函数,此函数允许你用不同的协议连接和沟通
不同的服务器
--with-openssl,--with-mhash,--with-mcrypt //这都是和加密有关的参数,启用它们是为了让php可以
更好的支持各种加密
边栏推荐
- .NET performance optimization - you should set initial size for collection types
- 【3D视觉】深度摄像头与3D重建
- go——内存分配机制
- 你所不知道的C#中的细节
- php 单引号 双引号 -> => return echo
- [C题目]力扣141. 环形链表
- 快速构建电脑软件系统 、超好用经典的网页推荐汇总
- Tencent YunMeng every jie: I experienced by cloud native authors efficiency best practices case
- 【3D视觉】realsense D435三维重建
- golang刷leetcode:拼接数组的最大分数
猜你喜欢

The software testing process specification is what?Specific what to do?

WPF development through practical 】 【 automatic production management platform

go——内存分配机制

Packages and packages, access modifiers

ECCV 2022 | ByteTrack: 简单高效的数据关联方法

奥特学园ROS笔记--7(289-325节)

Flink Yarn Per Job - 启动AM

Bee 事务注解 @Tran 使用实例
![[C题目]力扣142. 环形链表 II](/img/b0/1e92f0f178089fc12cf88072d28912.png)
[C题目]力扣142. 环形链表 II

你是几星测试/开发程序员?技术型选手王大拿......
随机推荐
golang 刷leetcode:Morris 遍历
软件测试的流程规范有哪些?具体要怎么做?
浅议.NET遗留应用改造
Details in C# you don't know
信息系统项目管理师必背核心考点(五十八)变更管理的主要角色
C# Monitor class
Adobe官方清理工具Adobe Creative Cloud Cleaner Tool使用教程
你是几星测试/开发程序员?技术型选手王大拿......
golang刷leetcode:使数组按非递减顺序排列
C# Barrier class
How the sensor works
【SLAM】DM-VIO(ros版)安装和论文解读
【3D视觉】realsense D435三维重建
信息学奥赛一本通(1258:【例9.2】数字金字塔)
Helm基础知识
Xcode13.1 run engineering error fatal error: 'IFlyMSC/IFly h' file not found
Common tools and test methods for interface testing (Introduction)
The software testing process specification is what?Specific what to do?
golang刷leetcode:拼接数组的最大分数
Li Mu hands-on learning deep learning V2-bert and code implementation