ubuntu服务器搭建DVWA站点

时间:2021-12-13 19:56:19

把DVWA里面的文件夹拷贝到/var/www/html里面去

1.安装之前先更新系统

 sudo apt update 

2.安装Apache2

 sudo apt install apache2

3.安装PHP

 sudo apt install php
sudo apt-get install libapache2-mod-php

4.安装MySQL

 sudo apt install mysql-server php7.0-mysql
sudo apt-get install mysql-client
mysql_secure_installation

5.安装phpmyadmin

 sudo apt-get install phpmyadmin
sudo apt-get install php-mbstring
sudo apt-get install php-gettext

1.安装之前先更新系统

 sudo apt update 

2.安装Apache2

 sudo apt install apache2

3.安装PHP

 sudo apt install php
sudo apt-get install libapache2-mod-php

4.安装MySQL

 sudo apt install mysql-server php7.0-mysql
sudo apt-get install mysql-client
mysql_secure_installation

5.安装phpmyadmin

 sudo apt-get install phpmyadmin
sudo apt-get install php-mbstring
sudo apt-get install php-gettext