ubuntu16.04怎么配置apache2 中php7的解析器

2024-11-15 21:48:11
推荐回答(1个)
回答1:

1.安装之前先更新系统
1 sudo apt update

2.安装Apache2
1 sudo apt install apache2

3.安装PHP
1 sudo apt install php
2 sudo apt-get install libapache2-mod-php

4.安装MySQL
1 sudo apt install mysql-server php7.0-mysql
2 sudo apt-get install mysql-client
3 mysql_secure_installation

5.安装phpmyadmin
1 sudo apt-get install phpmyadmin
2 sudo apt-get install php-mbstring
3 sudo apt-get install php-gettext
4 sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

配置phpmyadmin
1 nano /etc/php/7.0/apache2/php.ini
display_errors = On(显示错误日志,出现两次,都要改,不然无效)
extension=php_mbstring.dll (开启mbstring)