当前位置: 首页 > news >正文

ps酒店网站模板网站里图片的作用

ps酒店网站模板,网站里图片的作用,网站排名怎么做,安徽网站建设方案服务CentOS7使用源码安装PHP8教程整理 下载安装包解压下载的php tar源码包安装所需的一些依赖扩展库安装前的配置修改配置文件1、进入php8的安装包 配置环境变量开机自启启动服务创建软连接常见问题1、checking for icu-uc > 50.1 icu-io icu-i18n... no2、configure: error: Pa…

CentOS7使用源码安装PHP8教程整理

    • 下载安装包
    • 解压下载的php tar源码包
    • 安装所需的一些依赖扩展库
    • 安装前的配置
    • 修改配置文件
      • 1、进入php8的安装包
    • 配置环境变量
    • 开机自启
    • 启动服务
    • 创建软连接
    • 常见问题
      • 1、checking for icu-uc >= 50.1 icu-io icu-i18n... no
      • 2、configure: error: Package requirements (oniguruma) were not met:
      • 3、configure: error: Cannot find libtidy
      • 4、configure: error: Package requirements (libxslt >= 1.1.0) were not met:
      • 5、error: Package requirements (sqlite3 > 3.7.4) were not met:

下载安装包

有多个安装版本,根据自己的需求可以下载php8的各个版本

https://www.php.net/downloads.php

wget https://www.php.net/distributions/php-8.3.16.tar.gz 

解压下载的php tar源码包

tar -zxvf php-8.3.16.tar.gz

安装所需的一些依赖扩展库

yum -y install   libxml2*   openssl*  libcurl* libjpeg*      libpng*      freetype*      libmcrypt*

安装前的配置

cd php-8.3.16

进入目录,执行以下命令

./configure --prefix=/usr/local/php8 --with-config-file-path=/usr/local/php8/etc --enable-fpm --enable-mysqlnd --with-fpm-user=nginx --with-fpm-group=nginx --with-curl --enable-gd --with-tidy --with-gettext --enable-intl --with-kerberos --with-libdir=lib64 --with-mysqli --enable-ftp --with-openssl --with-pdo-mysql --with-pdo-sqlite --with-pear --disable-fileinfo --with-xsl --with-zlib --with-bz2 --with-mhash --enable-bcmath --enable-mbregex --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-sysvshm --enable-xml --enable-calendar --enable-exif

看到这张图,表示执行成功,如果没有,就解决error

在这里插入图片描述继续执行以下命令

make && make install

在这里插入图片描述执行到这里,表示执行成功了
在这里插入图片描述

修改配置文件

1、进入php8的安装包

cd php-8.3.16/
cp -a php.ini-production /usr/local/php8/etc/php.ini

在这里插入图片描述
进入安装目录

cd /usr/local/php8/etccp -a php-fpm.conf.default php-fpm.conf  cd /usr/local/php8/etc/php-fpm.dcp www.conf.default www.conf

修改www.conf文件

修改端口号,9000 为9001,因为我有两个php版本,还有一个php7

listen = 127.0.0.1:9001
listen.owner = nginx
listen.group = nginx
listen.mode = 0666

在这里插入图片描述

配置环境变量

我这里是两个php版本,所以就又增加了一个php8

PATH=$PATH:/usr/local/php7/bin:/usr/local/php7/sbin/:/usr/local/php8/bin:/usr/local/php8/sbin/

保存环境变量,并执行以下命令,让其生效

source /etc/profile

开机自启

# 源码包 php-8.0.24/sapi/fpmcd ./php-8.3.16/sapi/fpmcp php-fpm.service /usr/lib/systemd/system/php-fpm-8.3.16.service
cp init.d.php-fpm /etc/init.d/php8-fpmchmod +x /etc/init.d/php8-fpm 

启动服务

service php8-fpm start
service php8-fpm stop
service php8-fpm restart

创建软连接

ln -s /usr/local/php8/bin/php /usr/local/bin/php8

在这里插入图片描述

常见问题

1、checking for icu-uc >= 50.1 icu-io icu-i18n… no

在这里插入图片描述

checking for icu-uc >= 50.1 icu-io icu-i18n... no
configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:No package 'icu-uc' found
No package 'icu-io' found
No package 'icu-i18n' found

解决方案:

yum  -y install libicu-devel

2、configure: error: Package requirements (oniguruma) were not met:

在这里插入图片描述

checking whether to enable multibyte regex support (requires oniguruma)... yes
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met:No package 'oniguruma' found

解决方案:

yum -y install oniguruma oniguruma-devel

3、configure: error: Cannot find libtidy

yum -y install libtidy-devel

4、configure: error: Package requirements (libxslt >= 1.1.0) were not met:

yum -y install libxslt-devel

5、error: Package requirements (sqlite3 > 3.7.4) were not met:

yum install sqlite-devel
http://www.yayakq.cn/news/851520/

相关文章:

  • 建设网站怎么做wordpress 导出主题
  • 长沙自助模板建站什么是网站平台开发工具
  • 长沙市做网站物联网平台介绍
  • 网站营销案例哪里有学习做网站的
  • 有哪些做ppt用图片的网站网络文化经营许可证有什么用
  • 网页策划方案模板范文seo常用工具网站
  • 外贸那些网站好用吗购物网站开发的描述
  • 中国最受欢迎的网站动漫设计学院
  • 如何做网站制作物流网站html5模板
  • 做网站窗体属性栏设置文字居中网站设计和制作费用
  • 网站建设 维护域名有关的网站
  • 做公众号必备的网站赣州酒店网站建设
  • 淘宝客网站开发上架可以做招商的网站
  • 让别人做网站需要注意什么京创影视app
  • 销售型企业网站建设应遵守的原则网站信息化建设报送
  • 太原网站如何制作请人做网站要注意什么
  • 公司网站制作费用百度竞价托管公司
  • 网站flsh怎么做商城网站合作协议
  • 浙江省住房建设局网站首页个人养老金制度
  • 泉州网站建设制作怀化 网站建设
  • 做钻石资讯网站网址导航浏览器最新的2021年
  • 北京丰台区网站建设创新的广州做网站
  • 班组建设展板哪个网站有网站公司建设网站价格
  • 网站建设公司哪家好 都来磐石网络淮安市工程造价信息网
  • php网站开发步骤空中花园做网站的公司
  • 如何进行公司网站的建设wordpress 柚子皮
  • 欣赏别人做的网站个人网站设计与制作源代码
  • 邯郸公司做网站免费公众号排版编辑器
  • 怎样做网站的seo温州市微网站制作电话
  • 盘锦做网站公司Linux主机设置网站首页