编程语言
首页 > 编程语言> > Debian10上安装PHP(支技术pdo扩展)

Debian10上安装PHP(支技术pdo扩展)

作者:互联网

安装PHP

apt update && apt upgrade
apt install ca-certificates apt-transport-https 
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ buster main" | tee /etc/apt/sources.list.d/php.list
apt update
apt install php7.3
apt install php7.3-cli php7.3-common php7.3-curl php7.3-gd php7.3-json php7.3-mbstring php7.3-mysql php7.3-xml 
nano /etc/php/7.3/apache2/php.ini
extension=pdo_mysql

安装MariaDB

  1. 安装MariaDB
    apt install mariadb-server -y
  2. 设置开机启动MariaDB
    systemctl enable mariadb.service
    systemctl restart mariadb.service
  3. 设置MariaDB权限与密码等
重启apache服务

systemctl restart apache2.service
```
以上完成相关设置

标签:MariaDB,php7.3,apt,pdo,mysql,Debian10,PHP,php
来源: https://www.cnblogs.com/praybb/p/12155604.html