PHP(PHP: Hypertext Preprocessor)即“超文本预处理器”,是在服务器端执行的脚本语言,尤其适用于Web开发并可嵌入HTML中。
安装PHP是configure——make ——make install 三步骤
除了提示需要的库和模块以外,我们还需要安装依赖包
oniguruma-6.8.2-1.el7.x86_64.rpm
oniguruma-devel-6.8.2-1.el7.x86_64.rpm
[root@server1 ~]# yum install bzip2 -y
[root@server1 ~]# tar jxf php-7.4.12.tar.bz2
[root@server1 php-7.4.12]# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-curl --with-iconv --with-mhash --with-zlib --with-openssl --enable-mysqlnd --with-mysqli --with-pdo-mysql --disable-debug --enable-sockets --enable-soap --enable-inline-optimization --enable-xml --enable-ftp --enable-gd --enable-exif --enable-mbstring --enable-bcmath --with-fpm-systemd
[root@server1 php-7.4.12]# yum install systemd-devel.x86_64 -y
[root@server1 php-7.4.12]# yum install -y libxml2-devel