kali系统的libcurl3冲突apahce2,而php5.6-curl又必须依赖libcurl3,apt-get装了libcurl3就会自动删除apache,最终导致无法使用apache2.4.41运行开发环境,最后只能使用nginx运行了
在此记录一下nginx的配置,以备用
server {
listen 80;
listen [::]:80;
server_name my.ho.com;
root /var/www/html/kk;
index index.php index.html;
try_files $uri $uri/ /index.php;
location / {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite / /index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/kk/$fastcgi_script_name;
include fastcgi_params;
}
}