[PHP] Hướng Dẫn Cài đặt PHP 7.3 Trên Centos 7

Linux 15-03-2021 3,719 0 [PHP] Hướng dẫn cài đặt PHP 7.3 trên Centos 7 Chia sẻ

Bản phát hành PHP 7.3 có nhiều bản sửa lỗi, bao gồm lỗ memory segmentation/corruption faults

Bước 1: Add PHP 7.3 Remi repository

sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm sudo yum -y install epel-release yum-utils

Bước 2: Disable repo PHP 5.4

sudo yum-config-manager --disable remi-php54 sudo yum-config-manager --enable remi-php73

Step 3: Install PHP 7.3 on CentOS 7

sudo yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

Check version php vừa cài đặt

php -v PHP 7.3.1 (cli) (built: Jan 8 2019 13:55:51) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.1, Copyright (c) 1998-2018 Zend Technologies

Bước 4: Cài đặt các PHP 7.3 Extensions khác

Install PHP 7.3 extensions by using the syntax

sudo yum install php-<entension-name>

Ví dụ, cài đặt php mysql module

sudo yum install php-mysql

Nó chỉ hoạt động nếu repository PHP packages là 7.3

sudo yum install php-mysqlnd

Kiểm tra extension

rpm -qi php-mysqlnd Name : php-mysqlnd Version : 7.3.1 Release : 1.el7.remi Architecture: x86_64 Install Date: Thu 10 Jan 2019 06:56:47 PM UTC Group : Development/Languages Size : 856852 License : PHP Signature : DSA/SHA1, Tue 08 Jan 2019 06:44:21 PM UTC, Key ID 004e6f4700f97f56 Source RPM : php-7.3.1-1.el7.remi.src.rpm Build Date : Tue 08 Jan 2019 06:24:34 PM UTC Build Host : builder.remirepo.net Relocations : (not relocatable) Packager : https://blog.remirepo.net/ Vendor : Remi Collet URL : http://www.php.net/ Bug URL : https://forum.remirepo.net/ Summary : A module for PHP applications that use MySQL databases Description : The php-mysqlnd package contains a dynamic shared object that will add MySQL database support to PHP. MySQL is an object-relational database management system. PHP is an HTML-embeddable scripting language. If you need MySQL support for PHP applications, you will need to install this package and the php package. This package use the MySQL Native Driver

Chúc các bạn thành công.

Bình luận Gửi
  • Các tin khác
Linux 10-01-2026140

Cách khắc phục lỗi Failed at step EXEC spawning /usr/sbin/mysqld: No such file or directory status=203/EXEC

Linux 04-01-2026950

Hướng dẫn fix lỗi Your connection has timed out, disable Folder Usage Count on file manager trên directadmin

Linux 15-12-20251400

Hướng Dẫn Chặn Port IN / OUT Bằng UFW Trên Ubuntu Server

Linux 08-12-20251920

Hướng dẫn tạo user root cho quyền remote từ xa trong mysql 5.7

Linux 25-11-20252060

Hướng dẫn update versio curl trên centos 7

Linux 25-11-20252440

Hướng dẫn reset password admin n8n chạy trên docker container

Linux 21-11-20251870

Cách làm đúng để FFmpeg KHÔNG BAO GIỜ BỊ MẤT

Linux 12-07-20242,0590

Hướng dẫn cài đặt PHP-FFMpeg

Linux 04-03-20241,9210

Hướng dẫn cài đặt ZABBIX 6.2 trên Ubuntu 22

Linux 03-01-20241,6250

Memcached installation problem on PHP5.6

Linux 16-12-20231,9370

[CentOS] Khắc phục lỗi failed to start lsb bring up/down networking

Linux 11-12-20231,6010

hàm date trong linux để có thể lấy được ngày tháng năm

Linux 05-12-20231,9640

Lệnh Linux Disk I/O Monitoring

Linux 25-11-20231,4650

[Nginx] Hướng dẫn cấu hình alias đường dẫn

Linux 22-11-20231,4410

[Firewalld] Hướng dẫn redirect port trên linux sử dụng firewalld

ISET EDU

Từ khóa » Cài Php Trên Centos 7