Home  >  Q&A  >  body text

Thinkphp5 needs to be added to the server before it can be opened.

It cannot be opened by directly entering the URL on the Alibaba Cloud server. The URL needs to be public. I would like to ask how to set it up?

追2435 days ago1140

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2018-01-22 13:16:57

    You can first learn about thinkphp5. The entry file of thinkphp5 is placed in the public directory

    reply
    0
  • 追

    You haven't answered yet, so let me find out. . . . It took more than two hours to find it. Put the three files .htaccess, index.php, and favicon.ico at the public level, and change .htaccess to require __DIR__.'/bootstrap/autoload.php';$app = require_once __DIR__.'/bootstrap/start.php ';Enough

    · 2018-01-22 21:26:30
  • Cancelreply