当前位置:网站首页>宝塔面板安装php7.2安装phalcon3.3.2
宝塔面板安装php7.2安装phalcon3.3.2
2022-06-24 06:52:00 【channel_海峡】
php7.2安装phalcon3.3.2版本
- 环境
virtualbox+vagrant
centos7
安装宝塔面板【具体操作可以自行百度】 - 安装lnmp环境 注意php为7.2版本
- 下载phalcon3.3.x版本
git clone -b 3.3.x git://github.com/phalcon/cphalcon.git
如果网络不好,就直接找到对应的版本下载zip即可
3.3.xzip版本下载
下载之后上传到服务器,比如我就是放在/www/wwwroot下面,解压之后如下
4. 执行命令
sudo yum install php-devel pcre-devel gcc make
- 开始编译
# 第一步
cd cphalcon-3.3.x/build
# 第二步
./install #[我这里本来就是root,所以不要sudo | 这里会报错 php 5.4 is no longer supported]
# 第三步 编辑install文件 删除以下代码
if [ "${PHP_FULL_VERSION:0:3}" == "5.4" ]; then
echo "php 5.4 is no longer supported"
exit 1
fi
# 第四步 因为我们要编译到php7.2版本下面,所以要指定对应的文件
sudo ./install --phpize /www/server/php/72/bin/phpize --php-config /www/server/php/72/bin/php-co
nfig

这样就是成功
- 配置ini文件,文件最后加上如下代码
extension=/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/phalcon.so
- 重载php配置,查看phpinfo()

大功告成
边栏推荐
猜你喜欢

【资料上新】迅为基于3568开发板的NPU开发资料全面升级

Practice of opengauss database on CentOS, configuration

Live wire, neutral wire and ground wire. Do you know the function of these three wires?

Basics of reptile B1 - scrapy (learning notes of station B)

Resolution error: LNK2019 unresolved external symbol

研究生英语期末考试复习

Introduction of model compression tool based on distiller

Vulnhub target: boredhackerblog_ CLOUD AV

热赛道上的冷思考:乘数效应才是东数西算的根本要求

How to cancel the display of the return button at the uniapp uni app H5 end the autobackbutton does not take effect
随机推荐
鸿蒙os开发三
线程的阻塞问题
uniapp uni-app H5 端如何取消 返回按钮的显示 autoBackButton不生效
使用 kubeconfig 文件组织集群访问
Free ICP domain name filing interface
Exploration on Optimization of elastic expansion engineering
GPU is not used when the code is running
Los Angeles p1051 who won the most Scholarships
Vulnhub靶机:BOREDHACKERBLOG: SOCIAL NETWORK
Do you still have the opportunity to become a machine learning engineer without professional background?
auto使用示例
How to cancel the display of the return button at the uniapp uni app H5 end the autobackbutton does not take effect
How does dating software cut your leeks
The describeregion interface of CVM is special and has two versions
On the H5 page, the Apple phone blocks the content when using fixed to locate the bottom of the tabbar
Pair class notes
Common array encapsulation
关于h5页面苹果手机使用fixed定位tabbar最底部时遮挡内容问题
Ke Yi fallible point
Leetcode exercise - jumping game, combination summation