search

Home  >  Q&A  >  body text

linux - After Centos7 Lnmp is installed, I can access phpinfo with no problem, but I get 404 when accessing the project. I tried many methods but failed to solve it.

1. As mentioned, the environment has been installed and configured successfully. It is no problem to create a new file and output phpinfo(). The project is also placed in the statistics directory. Please see:


There is nothing wrong with accessing phpinfo, please read on:

There is a problem accessing the project! The debugging mode is turned on (display_error in php.ini is turned on, and the paragraph [error_reporting(E_ALL | E_STRICT);
ini_set("display_errors", "On");] is also added to index.php), then Come down and see ngin

...]

The error log of php is indeed turned on, but there is no content. All files in the project belong to root, and the permissions are 777:

Next, please see the configuration information of nginx:

No, I have roughly described my needs. Do you have any solutions?

淡淡烟草味淡淡烟草味2705 days ago1211

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-07-01 09:13:49

    {Domain name}/index.php/ Changed to {Domain name}/index.php

    reply
    0
  • Cancelreply