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

debian11系统配置nginx解析php程序

 Share


HACK1949

Recommended Posts

(1)安装nginx、php、php-fpm   (注:从php5之后安装php程序,php-fpm自动在php包内。无需单独安装php-fpm插件)

(2) 当网页需要动态解析时,nginx服务通过fastcgi接口解析php程序,并把结果返回到页面。动态解析配置文件默认是etc/nginx/site-available下的default文件

(3) 配置default

(4)在对应配置位,添加php-fpm程序的位置。fastcgi_pass unix:/var/run/php/php7.4-fpm.sock    本例安装的是php7.4 

(5) 配置结束,重启nginx    /USR/SBIN/NGINX -T  &&  /USR/SBIN/NGINX -S RELOAD

 

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...