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

linux平台Nginx整合php后浏览器File not found问题

 Share


Recommended Posts

php测试程序:

echo "<?php echo '<p>Hello World</p>'; ?>" > /data/server/nginx/html/test.php

然后浏览器输入localhost/hest.php,报错file not found.
最终解决途径:关闭selinux
两种关闭方法:
1.临时关闭

setenforce 0

2.从配置里关闭,需要重启

vim /etc/sysconfig/selinux

改写文件内容如下
2310918-20220712205237387-1726921582.png

参考链接:https://blog.csdn.net/weixin_35797963/article/details/116251518

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