当前位置:网站首页>源码构建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可以
更好的支持各种加密
边栏推荐
- golang刷leetcode: 在每个树行中找最大值
- 广东省数字经济发展指引 1.0之建成数据安全保障体系
- 如何成为一名正义黑客?你应该学习什么?
- Bena的生命周期
- golang 刷leetcode:从栈中取出 K 个硬币的最大面值和
- YOLOv5+BiSeNet——同时进行目标检测和语义分割
- Informatics Olympiad All-in-One (1259: [Example 9.3] Find the longest non-descending sequence)
- [21 Days Learning Challenge] Bubble Sort and Insertion Sort
- golang刷leetcode:统计区间中的整数数目
- js how to get the browser zoom ratio
猜你喜欢

.NET performance optimization - you should set initial size for collection types

ICLR 2022最佳论文:基于对比消歧的偏标签学习

Informatics orsay a tong (1258: 【 9.2 】 digital pyramid)

Electrical diagram of power supply system

「每周译Go」这次我们来点不一样的!--《How to Code in Go》系列上线

.NET如何快速比较两个byte数组是否相等

HCIP--BGP基础实验

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

主成分分析(PCA)

信息学奥赛一本通(1258:【例9.2】数字金字塔)
随机推荐
Use the TCP protocol, we won't lost package?
Day35 LeetCode
VisualStudio 制作Dynamic Link Library动态链接库文件
Packages and packages, access modifiers
【模型压缩】实例分析量化原理
.NET性能优化-你应该为集合类型设置初始大小
快速构建电脑软件系统 、超好用经典的网页推荐汇总
golang刷leetcode:到达角落需要移除障碍物的最小数目
YARN资源调度系统介绍
golang刷letcode:公平分发饼干
包管理工具Chocolate - Win10如何安装Chocolate工具、快速上手、进阶用法
56.【全局变量和局部变量专题】
WPF development through practical 】 【 automatic production management platform
SublimeText3 安装、配置项、包管理、常用必备插件、常用快捷键以及修改
Adobe官方清理工具Adobe Creative Cloud Cleaner Tool使用教程
golang刷leetcode:巫师的总力量和
How to quickly compare two byte arrays for equality in .NET
10 种最佳 IDE 软件 ,你更忠爱哪一个?
你是几星测试/开发程序员?技术型选手王大拿......
树形结构构造示例代码