Jump to content
  • Hello visitors, welcome to the Hacker World Forum!

    Red Team 1949  (formerly CHT Attack and Defense Team) In this rapidly changing Internet era, we maintain our original intention and create the best community to jointly exchange network technologies. You can obtain hacker attack and defense skills and knowledge in the forum, or you can join our Telegram communication group to discuss and communicate in real time. All kinds of advertisements are prohibited in the forum. Please register as a registered user to check our usage and privacy policy. Thank you for your cooperation.

    TheHackerWorld Official

Recommended Posts

首先我的server环境是在3A网络租的服务器,他们的延迟很低,用起来比较舒服

1.打开“服务器管理器”-添加角色和功能-

 2933435-20220720104438618-1312843046.png

 

 

 

确保CGI安装,其他的看个人需求

 2933435-20220720104443173-909255940.png

 

 

 

然后就下一步-开始安装

 2933435-20220720104518308-799337901.png

 

 

 

安装好之后,打开浏览器访问127.0.0.1

 2933435-20220720104526241-1137259171.png

 

 

 

 

表示已经成功

2.安装Visual C++ Redistributable for Visual Studio 2012 Update 4(x64)

 2933435-20220720104532599-1455910990.png

 

 

 2933435-20220720104545859-1007255331.png

 

 

 2933435-20220720104552992-215712353.png

 

 

 

 

另一个同理

3. 安装并解压php-5.5.8-nts-Win32-VC11-x86.zip

 2933435-20220720104558637-2013189857.png

 

 

 

解压后移动到c盘根目录

打开C:\php

复制php.ini-production为php.ini

用记事本打开php.ini

做如下修改:

extension_dir = "C:\php\ext"   #设置php模块路径

date.timezone = PRC   #设置时区为中国时区

register_globals = On  #开启GET数据调用

short_open_tag = On  #php支持短标签

cgi.force_redirect = 0  #开启以CGI方式运行php

fastcgi.impersonate = 1;

cgi.rfc2616_headers = 1

以下php扩展模块,根据需要选择开启,取消前面的分号为开始相应扩展模块

extension=php_curl.dll

extension=php_gd2.dll

extension=php_mbstring.dll

extension=php_exif.dll

extension=php_mysql.dll

extension=php_mysqli.dll

extension=php_sockets.dll

extension=php_xmlrpc.dll

extension=php_pdo_mysql.dll

最后,保存退出

4.配置php支持iis

打开管理工具

 2933435-20220720104607813-1022314590.png

 

 

 

 2933435-20220720104613606-1809576644.png

 

 

 

点击“添加模块映射”

 

 

 

 

请求路径:*.php

模块:FastCgiModule

可执行文件(可选):C:\php\php-cgi.exe

名称:FastCGI

最后,确定

2933435-20220720104952170-1667167621.png

 

 

 2933435-20220720104940084-1223892253.png

 

 

 

 

点击“FastCGI设置”

 2933435-20220720105006362-62311020.png

 

 

点击编辑

 2933435-20220720105012651-1272037463.png

 

 

修改路径

 2933435-20220720105021035-1932152033.png

 

 

环境变量,点旁边的"..."

 2933435-20220720105043620-817962528.png

 

 

点击“添加”

Name:PHP_FCGI_MAX_REQUESTS

Value:1000

 2933435-20220720105053951-973984401.png

 

 

然后点击“确定”

选择默认文档

 2933435-20220720105059261-164754134.png

 

 

右击点“添加”

 2933435-20220720105104891-324629098.png

 

 

名称:index.php

 2933435-20220720105110539-1652057911.png

 

 

5、测试php程序是否正常运行

打开:

C:\inetpub\wwwroot

新建一个index.php文件

内容:

<?php

phpinfo();

?>

2933435-20220720105119643-757880497.png

 

 然后使用浏览器登录本地地址

2933435-20220720105210378-570639842.png

 

Link to post
Link to comment
Share on other sites

 Share

discussion group

discussion group

    You don't have permission to chat.
    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...