#!/bin/bash
# Specific version number
PHP_V=7.4.2
TMP_DIR=/tmp
INSTALL_DIR=/usr/local
function install_php() {
cd $TMP_DIR
yum -y install gcc gcc-c++ make zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
wget -c http://mirrors.sohu.com/php/php-${PHP_V}.tar.bz2 &&
tar -jxvf php-${PHP_V}.tar.bz2 && cd php-${PHP_V} &&
mv php-${PHP_V} $INSTALL_DIR/php
cd $INSTALL_DIR/php;
./configure --prefix=$INSTALL_DIR/php --with-config-file-path=$INSTALL_DIR/php/etc
sleep 1s;
if [ $? -eq 0 ];then
make ZEND_EXTRA_LIBS="-liconv" &&make install
echo -e " 33[32m PHP Service installed successfully ! 33[0m"
else
echo -e " 33[32m PHP Service installation failed , Please check the configuration file ! 33[0m"
exit
fi
}
install_php
当前位置:网站首页>Centos7 one click compilation and installation of PHP script
Centos7 one click compilation and installation of PHP script
2022-07-02 10:03:00 【KentBryce】
边栏推荐
- Read 30 minutes before going to bed every day_ day4_ Files
- 2837xd Code Generation - Supplement (1)
- Error reporting on the first day of work (error reporting when Nessus installs WinPcap)
- How does {} prevent SQL injection? What is its underlying principle?
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
- 虚幻——动画蓝图、状态机制作人物走跑跳动作
- Skywalking theory and Practice
- Web security and defense
- ZK configuration center -- configuration and use of config Toolkit
- Personal experience & blog status
猜你喜欢
随机推荐
UE4 night lighting notes
It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something
Error reporting on the first day of work (incomplete awvs unloading)
图像识别-数据采集
BugkuCTF-web21(详细解题思路及步骤)
Attack and defense world web advanced area unserialize3
XA Transaction SQL Statements
YOLO物体识别,生成数据用到的工具
道阻且长,行则将至
Mysql索引
Alibaba cloud Prometheus monitoring service
【虚幻】过场动画笔记
Large neural networks may be beginning to realize: the chief scientist of openai leads to controversy, and everyone quarrels
逆变器simulink模型——处理器在环测试(PIL)
Mixed development of uni app -- Taking wechat applet as an example
This monitoring system makes workers tremble: turnover intention and fishing can be monitored. After the dispute, the product page has 404
2837xd code generation - Summary
[unreal] animation notes of the scene
2837xd代码生成模块学习(2)——ADC、ePWM模块、Timer0
渗透测试的介绍和防范








