after installing Laravel is showing index.php page in search ip on webpage

Posted August 11, 2021 502 views
NginxUbuntuPHPPHP FrameworksLEMPLaravelUbuntu 20.04

after installing Laravel and enter my ip on browser is showing the information (‘Hello World’)in index.php page. I’ve tried to change index.php to index.html but still not show Laravel on webpage. How can I know whether Laravel has installed or is running?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


You need to make sure that you’ve specified the correct document root in your Nginx server block.

For example, if you’ve installed Laravel at /var/www/travellist, in your Nginx server block you should have the following specified:

    root /var/www/travellist/public;

Alternatively, you could use this tool here to do your server configuration and Laravel installation automatically: