centos7下安裝php8.0
下載地址:https://www.php.net/downloads.php
下載 tar.gz 包。
上傳到伺服器
解壓
tar -xzvf php-8.0.0.tar.gz
之前沒安裝過php的先安裝依賴
yum install openssl-devel gcc gcc-++ gcc-c++ wget make libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel bison autoconf sqlite-devel oniguruma-devel
安裝php8.0(選擇你們自己的安裝位置)
cd php-8.0.0
#選擇安裝位置等配置
./configure --prefix=/www/server/php/80/ --with-config-file-path=/www/server/php/80/etc --enable-fpm --enable-mysqlnd --enable-opcache --enable-pcntl --enable-mbstring --enable-soap --enable-zip --enable-calendar --enable-bcmath --enable-exif --enable-ftp --enable-intl --with-mysqli --with-pdo-mysql --with-openssl --with-curl --with-gd --with-gettext --with-mhash --with-openssl --with-mcrypt --with-tidy --enable-wddx --with-xmlrpc --with-zlib
#安裝
make && make install
這樣就安裝好了
安裝後建立php.ini檔案(在解壓後的檔案裡複製)
cp /www/server/php/php-8.0.0/php.ini-production /www/server/php/80/etc/php.ini
執行
/www/server/php/80/bin/php -v
安裝成功
相關文章
- ubuntu 安裝php8.0UbuntuPHP
- 一鍵安裝PHP8.0PHP
- CentOS7 下安裝 ElasticsearchCentOSElasticsearch
- centos7下安裝ffmpegCentOS
- centos7下安裝phpCentOSPHP
- centos7下docker安裝CentOSDocker
- centos7下安裝 dockerCentOSDocker
- Centos7下安裝DockerCentOSDocker
- ubuntu 20.04 apt 安裝 PHP8.0UbuntuAPTPHP
- centos7下cobbler安裝配置CentOS
- centos7 下安裝 nodejsCentOSNodeJS
- centos7下安裝tensorflowCentOS
- Centos7下安裝配置RedsocksCentOS
- Centos7下解除安裝dockerCentOSDocker
- centos7 下安裝redis-4.0.2CentOSRedis
- 騰訊雲centos7下mysql安裝CentOSMySql
- CentOS7下yum安裝MySQL 5.7CentOSMySql
- Centos7下安裝配置elasticsearch 6.3.1CentOSElasticsearch
- CentOS7下安裝mysql8CentOSMySql
- Centos7環境下安裝curlCentOS
- CentOS7下PostgreSQL安裝過程CentOSSQL
- Centos7下dnscrypt-proxy安裝CentOSDNS
- centos7 下安裝zabbix3.0CentOS
- centos7下編譯安裝lnmpCentOS編譯LNMP
- CentOS7下安裝Mysql8.4CentOSMySql
- laravel docker sail php8.0 安裝 php-imagickLaravelDockerAIPHP
- CentOS7 下 Nginx 的安裝和配置CentOSNginx
- centos7下安裝Python的pipCentOSPython
- (Linux)CentOS7下安裝JDK 1.8LinuxCentOSJDK
- CentOS7下RabbitMQ服務安裝配置CentOSMQ
- CentOS7下安裝Docker-ComposeCentOSDocker
- centos7下rpm方式安裝mysqlCentOSMySql
- Centos7下安裝配置MySQL5.7CentOSMySql
- centos7下安裝中文字型CentOS
- centos7下安裝Python3.7CentOSPython
- PHP8.0新版再創奇蹟,效能提升10%,URLOS為您提供PHP8.0一鍵安裝方法PHP
- Nginx1.19 php8.0 原始碼編譯安裝NginxPHP原始碼編譯
- centos7 下安裝laravel 執行環境CentOSLaravel