静态资源:
动态资源:
1.100-101纯信息提示
2.200-206,“成功”类的信息
3.300-305,“重定向”类的信息
4.400-415,“客户端错误”类的信息
5.500-505,“服务端错误”类的信息
系统平台 | ip | 安装的服务 |
---|---|---|
redhat 8.5 Centos8 |
192.168.232.1/128 | httpd-2.4 mysql-5.7 php php-mysql |
apr网址
apr-util网址
httpd网址
[root@SYL3 ~]# ls
anaconda-ks.cfg
apr-1.7.0.tar.gz
apr-util-1.6.1.tar.gz
httpd-2.4.53.tar.gz
[root@SYL3 ~]# tar -xf apr-1.7.0.tar.gz
[root@SYL3 ~]# tar -xf apr-util-1.6.1.tar.gz
[root@SYL3 ~]# tar -xf httpd-2.4.53.tar.gz
下载MySQL
[root@SYL3 ~]# wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
下载MySQL源
[root@SYL3 ~]# wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-client-5.7.37-1.el7.x86_64.rpm https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-common-5.7.37-1.el7.x86_64.rpm https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-devel-5.7.37-1.el7.x86_64.rpm https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-libs-5.7.37-1.el7.x86_64.rpm https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.37-1.el7.x86_64.rpm
[root@SYL3 ~]# ls
anaconda-ks.cfg
apr-1.7.0.tar.gz
apr-util-1.6.1.tar.gz
httpd-2.4.53.tar.gz
mysql-community-client-5.7.37-1.el7.x86_64.rpm
mysql-community-common-5.7.37-1.el7.x86_64.rpm
mysql-community-devel-5.7.37-1.el7.x86_64.rpm
mysql-community-libs-5.7.37-1.el7.x86_64.rpm
mysql-community-server-5.7.37-1.el7.x86_64.rpm
mysql57-community-release-el7-10.noarch.rpm
[root@SYL3 ~]#
[root@SYL3 ~]# wget https://www.php.net/distributions/php-7.4.29.tar.gz
[root@SYL3 ~]# ls
anaconda-ks.cfg
apr-1.7.0
apr-1.7.0.tar.gz
apr-util-1.6.1
apr-util-1.6.1.tar.gz
httpd-2.4.53
httpd-2.4.53.tar.gz
mysql-community-client-5.7.37-1.el7.x86_64.rpm
mysql-community-common-5.7.37-1.el7.x86_64.rpm
mysql-community-devel-5.7.37-1.el7.x86_64.rpm
mysql-community-libs-5.7.37-1.el7.x86_64.rpm
mysql-community-server-5.7.37-1.el7.x86_64.rpm
php-7.4.29.tar.gz
[root@SYL3 ~]#
[root@SYL3 ~]# yum -y groups mark install 'Development Tools'
[root@SYL3 ~]# useradd -r -M -s /sbin/nologin apache
-r 系统用户
-M 不要家目录
-s 不允许登录
yum -y install openssl-devel pcre-devel expat-devel libtool gcc gcc-c++ make
[root@SYL3 apr-1.7.0]# vim configure
[root@SYL3 apr-1.7.0]# cat configure|grep cfgfile
cfgfile=${ofile}T
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
# $RM "$cfgfile"
[root@SYL3 apr-1.7.0]# ./configure --prefix=/usr/local/apr
[root@SYL3 apr-1.7.0]# make -j 4
[root@SYL3 apr-1.7.0]# make install
[root@SYL3 apr-util-1.6.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
[root@SYL3 apr-util-1.6.1]# make -j 4
[root@SYL3 apr-util-1.6.1]# make install
[root@SYL3 httpd-2.4.53]# ./configure --prefix=/usr/local/apache \
--enable-so \
--enable-ssl \
--enable-cgi \
--enable-rewrite \
--with-zlib \
--with-pcre \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util/ \
--enable-modules=most \
--enable-mpms-shared=all \
--with-mpm=prefork
[root@SYL3 httpd-2.4.53]# make -j 4
[root@SYL3 httpd-2.4.53]# make install
[root@SYL3 httpd-2.4.53]# cd
[root@SYL3 ~]# ls /usr/local/apache/
bin cgi-bin error icons logs manual
build conf htdocs include man modules
[root@SYL3 ~]#
[root@SYL3 ~]# echo 'export PATH=/usr/local/apache/bin:$PATH' > /etc/profile.d/httpd.sh
[root@SYL3 ~]# source /etc/profile.d/httpd.sh
[root@SYL3 ~]# which httpd
/usr/local/apache/bin/httpd
[root@SYL3 ~]#
[root@SYL3 ~]# ln -s /usr/local/apache/include /usr/include/apache
[root@SYL3 ~]# vim /etc/man_db.conf
[root@SYL3 ~]# cat /etc/man_db.conf |grep apache
MANDATORY_MANPATH /usr/local/apache/man
[root@SYL3 ~]#
[root@SYL3 ~]# cd /usr/lib/systemd/system
[root@SYL3 system]# cp sshd.service httpd.service
[root@SYL3 system]# vim httpd.service
[root@SYL3 system]# cat httpd.service
[Unit]
Description=httpd server daemon
After=network.target sshd-keygen.target
[Service]
Type=forking
ExecStart=/usr/local/apache/bin/apachectl start
ExecStop=/usr/local/apache/bin/apachectl stop
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
[root@SYL3 system]# systemctl daemon-reload
[root@SYL3 system]#
[root@SYL3 system]# cd
[root@SYL3 ~]# systemctl status httpd
● httpd.service - httpd server daemon
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabl>
Active: inactive (dead)
Apr 21 19:09:23 SYL3 systemd[1]: /usr/lib/systemd/system/httpd.s>
[root@SYL3 ~]# systemctl enable --now httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[root@SYL3 ~]# systemctl status httpd
● httpd.service - httpd server daemon
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enable>
Active: active (running) since Thu 2022-04-21 19:10:21 CST; 3>
Main PID: 706285 (apachectl)
Tasks: 2 (limit: 11216)
Memory: 1.5M
CGroup: /system.slice/httpd.service
├─706285 /bin/sh /usr/local/apache/bin/apachectl start
└─706301 /usr/local/apache/bin/httpd -k start
Apr 21 19:10:21 SYL3 systemd[1]: Started httpd server daemon.
[root@SYL3 ~]# apachectl stop
httpd (no pid file) not running
[root@SYL3 ~]# systemctl start httpd
[root@SYL3 ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 80 *:3306 *:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 [::]:22 [::]:*
[root@SYL3 ~]#
[root@SYL3 ~]# systemctl disable --now firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@SYL3 ~]# vim /etc/selinux/config
[root@SYL3 ~]# cat /etc/selinux/config|grep SELINUX
# SELINUX= can take one of these three values:
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
SELINUXTYPE=targeted
[root@SYL3 ~]# setenforce 0
[root@SYL3 ~]#
[root@SYL3 ~]# apachectl stop
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::20c:29ff:fe88:169d%ens160. Set the 'ServerName' directive globally to suppress this message
[root@SYL3 ~]# cd /usr/local/apache/conf/
[root@SYL3 conf]# ls
extra httpd.conf magic mime.types original
[root@SYL3 conf]# vim httpd.conf
[root@SYL3 conf]# cat httpd.conf |grep ServerName
# ServerName gives the name and port that the server uses to identify itself.
ServerName www.example.com:80
[root@SYL3 conf]# cd
[root@SYL3 ~]# apachectl start
[root@SYL3 ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 [::]:22 [::]:*
[root@SYL3 ~]#
[root@SYL3 ~]# rpm -ivh mysql57-community-release-el7-10.noarch.rpm
warning: mysql57-community-release-el7-10.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:mysql57-community-release-el7-10 ################################# [100%]
[root@SYL3 ~]#
[root@SYL3 ~]# ls
anaconda-ks.cfg
apr-1.7.0
apr-1.7.0.tar.gz
apr-util-1.6.1
apr-util-1.6.1.tar.gz
httpd-2.4.53
httpd-2.4.53.tar.gz
mysql-community-client-5.7.37-1.el7.x86_64.rpm
mysql-community-common-5.7.37-1.el7.x86_64.rpm
mysql-community-devel-5.7.37-1.el7.x86_64.rpm
mysql-community-libs-5.7.37-1.el7.x86_64.rpm
mysql-community-server-5.7.37-1.el7.x86_64.rpm
[root@SYL3 ~]# yum -y install *.rpm
[root@SYL3 ~]# systemctl enable --now mysqld
[root@SYL3 ~]# systemctl status mysqld
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabl>
Active: active (running) since Thu 2022-04-21 20:03:59 CST; 3>
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 927065 ExecStart=/usr/sbin/mysqld --daemonize --pid-f>
Process: 926461 ExecStartPre=/usr/bin/mysqld_pre_systemd (code>
Main PID: 927067 (mysqld)
Tasks: 27 (limit: 11216)
Memory: 287.3M
CGroup: /system.slice/mysqld.service
└─927067 /usr/sbin/mysqld --daemonize --pid-file=/var>
Apr 21 20:03:45 SYL3 systemd[1]: Starting MySQL Server...
Apr 21 20:03:59 SYL3 systemd[1]: Started MySQL Server.
[root@SYL3 ~]#
[root@SYL3 ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 80 *:3306 *:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 [::]:22 [::]:*
[root@SYL3 ~]#
[root@SYL3 ~]# grep 'password' /var/log/mysqld.log
2022-04-21T12:03:49.424496Z 1 [Note] A temporary password is generated for root@localhost: Jw?eSqkBI8(3
[root@SYL3 ~]#
[root@SYL3 ~]# mysql -uroot -p'Jw?eSqkBI8(3'
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.37
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set password = password('Run123456!');
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> quit
Bye
[root@SYL3 ~]# mysql -uroot -p'Run123456!'
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.37 MySQL Community Server (GPL)
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit
[root@SYL3 ~]# rpm -qa|grep mysql
mysql57-community-release-el7-10.noarch
mysql-community-common-5.7.37-1.el7.x86_64
mysql-community-client-5.7.37-1.el7.x86_64
mysql-community-devel-5.7.37-1.el7.x86_64
mysql-community-libs-5.7.37-1.el7.x86_64
mysql-community-server-5.7.37-1.el7.x86_64
[root@SYL3 ~]# rpm -e mysql57-community-release
[root@SYL3 ~]#
mysql> grant all on *.* to 'root'@'192.168.232.1' identified by 'Run123456!';
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql>
[root@SYL3 ~]# cd /usr/local/apache/conf/
[root@SYL3 conf]# ls
extra httpd.conf magic mime.types original
[root@SYL3 conf]# vim httpd.conf
[root@SYL3 conf]# cat httpd.conf |grep mod_proxy
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
[root@SYL3 ~]# cd /usr/local/apache/htdocs/
[root@SYL3 htdocs]# mkdir mushuang.com
[root@SYL3 htdocs]# chown -R apache.apache /usr/local/apache/
[root@SYL3 htdocs]# cd mushuang.com
[root@SYL3 mushuang.com]# vim index.php
[root@SYL3 mushuang.com]# cat index.php
<?php
phpinfo();
?>
[root@SYL3 mushuang.com]#
[root@SYL3 htdocs]# ll
total 4
-rw-r--r--. 1 apache apache 45 Jun 12 2007 index.html
drwxr-xr-x. 2 apache apache 23 Apr 22 13:22 mushuang.com
[root@SYL3 htdocs]#
[root@SYL3 apache]# ls
bin cgi-bin error icons logs manual
build conf htdocs include man modules
[root@SYL3 apache]# vim conf/httpd.conf
[root@SYL3 apache]#
[root@SYL3 conf]# cat httpd.conf
<VirtualHost *:80>
DocumentRoot "/usr/local/apache/htdocs/mushuang.com"//网站存放的位置
ServerName mushuang.example.com//域名,网站的名字
ProxyRequests Off
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/usr/local/apache/htdocs/mushuang.com/$1
<Directory "/usr/local/apache/htdocs/mushuang.com">//允许写入
Options none
AllowOverride none
Require all granted
</Directory>
</VirtualHost>
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php #添加此行
AddType application/x-httpd-php-source .phps #添加此行
[root@SYL3 ~]# cd /usr/local/apache/conf/
[root@SYL3 conf]# vim httpd.conf
[root@SYL3 conf]# vim httpd.conf
[root@SYL3 conf]# cat httpd.conf |grep index.php
DirectoryIndex index.php index.html
[root@SYL3 conf]# cat httpd.conf |grep 'AddType application/x-httpd'
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
[root@SYL3 conf]#
[root@SYL3 apache]# vim conf/httpd.conf
[root@SYL3 apache]# cat conf/httpd.conf |grep index.php
DirectoryIndex index.php index.html
[root@SYL3 apache]#
[root@SYL3 ~]# ls
anaconda-ks.cfg
apr-1.7.0
apr-1.7.0.tar.gz
apr-util-1.6.1
apr-util-1.6.1.tar.gz
httpd-2.4.53
httpd-2.4.53.tar.gz
mysql-community-client-5.7.37-1.el7.x86_64.rpm
mysql-community-common-5.7.37-1.el7.x86_64.rpm
mysql-community-devel-5.7.37-1.el7.x86_64.rpm
mysql-community-libs-5.7.37-1.el7.x86_64.rpm
mysql-community-server-5.7.37-1.el7.x86_64.rpm
php-7.4.29.tar.gz
[root@SYL3 ~]# tar xf php-7.4.29.tar.gz
[root@SYL3 ~]# yum -y install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel libcurl libcurl-devel libicu-devel libjpeg libjpeg-devel libpng libpng-devel openldap-devel pcre-devel freetype freetype-devel gmp gmp-devel libmcrypt libmcrypt-devel readline readline-devel libxslt libxslt-devel mhash mhash-devel php-mysqlnd sqlite-devel libzip-devel
[root@SYL3 ~]# yum -y install yum -y install https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/oniguruma-devel-6.8.2-2.el8.x86_64.rpm
[root@SYL3 php-7.4.29]# ./configure --prefix=/usr/local/php7 \
--with-config-file-path=/etc \
--enable-fpm \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--enable-soap \
--with-openssl \
--enable-bcmath \
--with-iconv \
--with-bz2 \
--enable-calendar \
--with-curl \
--enable-exif \
--enable-ftp \
--enable-gd \
--with-jpeg \
--with-zlib-dir \
--with-freetype \
--with-gettext \
--enable-json \
--enable-mbstring \
--enable-pdo \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-readline \
--enable-shmop \
--enable-simplexml \
--enable-sockets \
--with-zip \
--enable-mysqlnd-compression-support \
--with-pear \
--enable-pcntl \
--enable-posix
[root@SYL3 php-7.4.29]# make -j 4
[root@SYL3 php-7.4.29]# make install
[root@SYL3 ~]# echo 'export PATH=/usr/local/php7/bin:/usr/local/php7/:sbin:$PATH' > /etc/profile.d/php7.sh //设置环境变量
[root@SYL3 ~]# source /etc/profile.d/php7.sh//读取
[root@SYL3 ~]# which php
/usr/local/php7/bin/php
[root@SYL3 php7]# ln -s /usr/local/php7/include /usr/include/php
[root@SYL3 php7]# vim /etc/ld.so.conf.d/php.conf
[root@SYL3 php7]# cat /etc/ld.so.conf.d/php.conf
/usr/local/php7/lib
[root@SYL3 php7]# ldconfig
[root@SYL3 ~]# cd php-7.4.29
[root@SYL3 php-7.4.29]# \cp php.ini-production /etc/php.ini //将PHP目录下的生产环境覆盖到/etc/ini
[root@SYL3 php-7.4.29]# cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
cp: overwrite '/etc/init.d/php-fpm'? y
[root@SYL3 php-7.4.29]# chmod +x /etc/rc.d/init.d/php-fpm //设置执行权限
[root@SYL3 php-7.4.29]# ll /etc/rc.d/init.d/php-fpm
-rwxr-xr-x. 1 root root 54696280 Apr 22 13:52 /etc/rc.d/init.d/php-fpm
[root@SYL3 php-7.4.29]#
[root@SYL3 php-7.4.29]# cd /usr/local/php7/etc/
[root@SYL3 etc]# ls
pear.conf php-fpm.conf.default php-fpm.d
[root@SYL3 etc]# cp php-fpm.conf.default php-fpm.conf//复制一份名为php-fpm.conf
[root@SYL3 etc]# ls
pear.conf php-fpm.conf php-fpm.conf.default php-fpm.d
[root@SYL3 etc]# cd php-fpm.d
[root@SYL3 php-fpm.d]# ls
www.conf.default
[root@SYL3 php-fpm.d]# cp www.conf.default www.conf//复制一份www.conf
[root@SYL3 php-fpm.d]# ls
www.conf www.conf.default
[root@SYL3 php-fpm.d]#
[root@SYL3 php-fpm.d]# vim www.conf
[root@SYL3 php-fpm.d]# cat www.conf|grep 9000
listen = 127.0.0.1:9000
[root@SYL3 php-fpm.d]#
[root@SYL3 ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 80 *:3306 *:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 [::]:22 [::]:*
[root@SYL3 ~]# /etc/init.d/php-fpm
[root@SYL3 ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 127.0.0.1:9000 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 80 *:3306 *:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 [::]:22 [::]:*
[root@SYL3 ~]# systemctl restart httpd
[root@SYL3 ~]# ss -antl
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 128 127.0.0.1:9000 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 80 *:3306 *:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 [::]:22 [::]:*
[root@SYL3 ~]#
[root@SYL3 php-7.4.29]# ./configure --prefix=/usr/local/php7 \
> --with-config-file-path=/etc \
> --enable-fpm \
> --enable-inline-optimization \
> --disable-debug \
> --disable-rpath \
> --enable-shared \
> --enable-soap \
> --with-openssl \
> --enable-bcmath \
> --with-iconv \
> --with-bz2 \
> --enable-calendar \
> --with-curl \
> --enable-exif \
> --enable-ftp \
> --with-gd \
> --with-jpeg-dir \
> --with-png-dir \
> --with-zlib-dir \
> --with-freetype-dir \
> --with-gettext \
> --enable-json \
> --enable-mbstring \
> --enable-pdo \
> --with-mysqli=mysqlnd \
> --with-pdo-mysql=mysqlnd \
> --with-readline \
> --enable-shmop \
> --enable-simplexml \
> --enable-sockets \
> --enable-zip \
> --enable-mysqlnd-compression-support \
> --with-pear \
> --enable-pcntl \
> --enable-posix
Package 'sqlite3', required by 'virtual:world', not found
'sqlite3'包,'virtual:world'需要,未找到
[root@SYL3 php-7.4.29]# yum list all|grep sqlite
[root@SYL3 php-7.4.29]# yum -y install sqlite-devel
Package 'oniguruma', required by 'virtual:world', not found
包'oniguruma',需要'virtual:world',未找到
[root@SYL3 php-7.4.29]# yum list all|grep oniguruma
找到后安装进行预编译失败后在
[root@SYL3 php-7.4.29]# yum -y install https://vault.centos.org/centos/8/PowerTools/x86_64/os/Packages/oniguruma-devel-6.8.2-2.el8.x86_64.rpm
configure: WARNING: unrecognized options: --with-gd, --with-jpeg-dir, --with-png-dir, --with-freetype-dir, --enable-zip
[root@SYL3 php-7.4.29]# ./configure --help|grep gd
--with-gdbm[=DIR] DBA: GDBM support
--enable-gd Include GD support
--with-external-gd Use external libgd
--with-webp GD: Enable WEBP support (only for bundled libgd)
--with-jpeg GD: Enable JPEG support (only for bundled libgd)
--with-xpm GD: Enable XPM support (only for bundled libgd)
libgd)
--enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support (only
for bundled libgd)
[root@SYL3 php-7.4.29]# ./configure --help|grep jpeg
--with-jpeg GD: Enable JPEG support (only for bundled libgd)
[root@SYL3 php-7.4.29]# ./configure --help|grep png
[root@SYL3 php-7.4.29]# ./configure --help|grep freetype
--with-freetype GD: Enable FreeType 2 support (only for bundled
[root@SYL3 php-7.4.29]# ./configure --help|grep zip
--with-zip Include Zip read/write support
[root@SYL3 php-7.4.29]#
Package 'libzip', required by 'virtual:world', not found
'libzip'包,需要'virtual:world',未找到
[root@SYL3 ~]# yum list all|grep libzip
Failed to set locale, defaulting to C.UTF-8
libzip.x86_64 1.5.1-2.module_el8.2.0+313+b04d0a66 AppStream
libzip-devel.x86_64 1.5.1-2.module_el8.2.0+313+b04d0a66 AppStream
libzip-tools.x86_64 1.5.1-2.module_el8.2.0+313+b04d0a66 AppStream
[root@SYL3 ~]#
[root@SYL3 php-7.4.29]# yum -y install libzip-devel
FreeType 2 support (only for bundled
[root@SYL3 php-7.4.29]# ./configure --help|grep zip
–with-zip Include Zip read/write support
[root@SYL3 php-7.4.29]#
#### 4. 问题4 缺少'libzip'包
```basic
Package 'libzip', required by 'virtual:world', not found
'libzip'包,需要'virtual:world',未找到
[root@SYL3 ~]# yum list all|grep libzip
Failed to set locale, defaulting to C.UTF-8
libzip.x86_64 1.5.1-2.module_el8.2.0+313+b04d0a66 AppStream
libzip-devel.x86_64 1.5.1-2.module_el8.2.0+313+b04d0a66 AppStream
libzip-tools.x86_64 1.5.1-2.module_el8.2.0+313+b04d0a66 AppStream
[root@SYL3 ~]#
[root@SYL3 php-7.4.29]# yum -y install libzip-devel