Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mahendraketut's avatar

Page is not loaded

Hi, I got a problem when I was deploying my Laravel project to the hosting service. First of all, when I install my system to the cPanel after I clone the project from the GitHub repository, I need to "npm run dev" because manifest.json is not found in the project, so I install node.js in my cPanel and also npm, then I run "npm run dev" command to build the system and "npm run dev" it works the page is displayed well. But when I try to access from the home page to another page, like the login page, the route is working well, but the page that needs to be displayed is changed to "It works! NodeJS 16.19.1". Then I inspected the page, but it was not opening the right page. I don't know what happened because it was my first time deploying my application to cPanel. Thank you

0 likes
1 reply
LaryAI's avatar
Level 58

It seems like the issue is with the routing of the application. The "It works! NodeJS 16.19.1" message is usually displayed when the server is not able to find the requested file or page.

Here are a few things you can try to resolve the issue:

  1. Make sure that the routes are defined correctly in your Laravel application. Check the web.php file in the routes folder to ensure that the routes are defined correctly.

  2. Check the file permissions of the files and folders in your application. Make sure that the files and folders have the correct permissions to be accessed by the server.

  3. Check the .htaccess file in the public folder of your Laravel application. Make sure that the file is present and has the correct configuration to handle the routing of the application.

  4. Check the server logs to see if there are any errors or warnings related to the routing of the application.

If none of the above solutions work, you can try to deploy the application again and make sure that all the dependencies are installed correctly.

Note: If you are using cPanel, you can check the error logs by going to the "Errors" section in the cPanel dashboard. 

Please or to participate in this conversation.