企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## Bitrix 支持php7 php8 ![](https://img.kancloud.cn/09/e7/09e749442977f13b5c015be465781e60_1020x187.png) ``` yum install epel-release -y ``` ![](https://img.kancloud.cn/6c/40/6c40502360e585fe3c5d747737f47c76_1732x235.png) ``` yum -y install httpd wget https://rpmfind.net/linux/centos/7.9.2009/os/x86_64/Packages/mod_fcgid-2.3.9-6.el7.x86_64.rpm rpm -Uvh mod_fcgid-2.3.9-6.el7.x86_64.rpm yum -y install gcc libxml2-devel libXpm-devel gmp-devel libicu-devel t1lib-devel aspell-devel openssl-devel bzip2-devel libcurl-devel libjpeg-devel libvpx-devel libpng-devel freetype-devel readline-devel libtidy-devel libxslt-devel libmcrypt-devel pcre-devel curl-devel mysql-devel ncurses-devel gettext-devel net-snmp-devel libevent-devel libtool-ltdl-devel libc-client-devel postgresql-devel bison gcc-c++ make sqlite-devel oniguruma-devel openldap openldap-devel ``` ``` rpm -q libzip rpm -q libzip-devel #卸载旧版本的libzip yum remove libzip #下载安装 wget https://libzip.org/download/libzip-1.2.0.tar.gz tar -zxvf libzip-1.2.0.tar.gz cd libzip-1.2.0 ./configure make && make install export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" ``` ``` wget https://www.php.net/distributions/php-7.4.33.tar.gz tar -zxvf php-7.4.33.tar.gz cd php-7.4.33 ./configure \ --prefix=/usr/local/php8.0.29 \ --with-config-file-path=/usr/local/php8.0.29/etc \ --enable-mbstring \ --enable-ftp \ --enable-gd \ --with-jpeg \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --without-pear \ --disable-phar \ --enable-sockets \ --with-freetype \ --with-zlib \ --with-xmlrpc \ --with-zip \ --enable-fpm \ --enable-xml \ --enable-sockets \ --enable-gd \ --with-zlib \ --with-iconv \ --with-zip \ --enable-soap \ --enable-pcntl \ --enable-cli \ --with-curl \ --with-fpm-user=apache \ --with-fpm-group=apache make && make install ``` ``` vi /var/www/cgi-bin/php74.fcgi #!/bin/bash PHPRC="/usr/local/php8.0.29/lib" PHP_CGI2=/usr/local/php8.0.29/bin/php-cgi PHP_FCGI_CHILDREN=8 PHP_FCGI_MAX_REQUESTS=3000 export PHPRC export PHP_FCGI_CHILDREN export PHP_FCGI_MAX_REQUESTS exec $PHP_CGI2 chown apache:apache /var/www/cgi-bin/php74.fcgi chmod +x /var/www/cgi-bin/php74.fcgi ```