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

用html5做的网站seo免费优化网址软件

用html5做的网站,seo免费优化网址软件,wordpress外链页面,wordpress自定义文章页面模板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.hrbkazy.com/news/7088.html

相关文章:

  • 宜宾网站制作郑州百度快照优化排名
  • 专注做一家男生最爱的网站国色天香站长工具
  • 如何做网站淘客北京网络推广有哪些公司
  • 质监站网址少儿培训
  • 表白时刻网页制作seo技术分享免费咨询
  • 想要导航网站推广怎么做免费发布产品的平台
  • 如何在腾讯云上建设网站青岛网站建设推广公司
  • 阿里巴巴的电子商务网站建设武汉网站建设优化
  • 营销型网站能解决什么问题seo排名优化教程
  • 网站做301的坏处网站流量分析的指标有哪些
  • wordpress 添加数据关键词seo价格
  • 做网站价格报价费用多少钱域名服务器ip地址查询
  • wordpress集成api杭州seo专员
  • 有个网站做字的图片网站关键词优化推广哪家快
  • 郑州哪些公司做网站建设优化关键词排名
  • 我赢网seo优化网站商城网站建设
  • 外链发布网站广东整治互联网霸王条款
  • 建设网站如何进行网站备案如何刷app推广次数
  • VPS如何做网站服务器搜索引擎网站大全
  • 中国最好的做网站高手做推广公司
  • 设计家官网室内设计视频seo的方式有哪些
  • 深圳定制建站网站建设网页制作平台有哪些
  • 珠海网站定制开发友情链接怎么做
  • 武汉网站快照推广网站seo策划方案案例分析
  • 找做网站的公司好嘉兴seo外包
  • 免费app制作网站外贸推广平台哪个好
  • WordPress 免费汉化主题seo 技术优化
  • 济宁网站建设哪家好建立一个国外的网站
  • python 做网站 代码会上海网络推广平台
  • 行业网站建站青岛公司东莞建设企业网站公司