1、首先安装完成lnmp。(前面文章有教程)
2、把xss平台的代码解压到nginx的发布目录里根据项目里的readme.txt安装(lnmp nginx的默认目录/home/wwwroot/default/)
3、创建数据库xss_platform
4、把项目里的sql文件导入到xss_platform库中
5、修改nginx.conf
cd /usr/local/nginx/conf/
vi nginx.conf
修改内容如下
新加入一个server
端口为8080,
root目录/home/wwwroot/default/www;
默认文件 xss.php
包含/home/wwwroot/default/www/nginx.htaccess;静态文件
server
{
listen 8080;
server_name localhost;
index xss.php;
root /home/wwwroot/default/www;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include /home/wwwroot/default/www/nginx.htaccess;
include enable-php.conf;
location /nginx_status
{
stub_stat