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

biswajeetetech's avatar

Getting issue after deploy project in cpanel shared hosting

The GET method is not supported for this route. Supported methods: HEAD.

Route::get('/', [AdminController::class, 'callHomePage']);

Already my method is get type, then Why I am getting this issue? Also, I used cache route command to clear cache from the project.

0 likes
16 replies
biswajeetetech's avatar

I used PHP artisan route:list and I checked my route is there.

| | GET|HEAD | / | | App\Http\Controllers\AdminController@callHomePage

neilstee's avatar

@biswajeetetech maybe for some reason you are installing this on a folder with other Laravel App installed? And there is another Laravel App above it that interferes with your specific Laravel App?

biswajeetetech's avatar

yes there is another laravel app in cpanel inside public_html, that laravel app work perfectly fine. I used the same process to deploay another project but it not works for me.

neilstee's avatar

@biswajeetetech so both apps live in the public_html? or you put both public folders of the application in that directory?

neilstee's avatar

Or you have apache configured to map those correctly?

Clearly, there is an issue with your folder structure that you need to fix.

biswajeetetech's avatar

Both laravel project folder are separate like project 1 and project 2 inside public_html

biswajeetetech's avatar

for laravel app 1 (URL) - domain/testingapi

It works perfectly fine

for laravel app 2 (URL) - domain/paracareweb/

for second I am using this

neilstee's avatar

@biswajeetetech I'm pretty sure that one of them is interfering with one another.

If you can, try removing that first app and see if the 2nd app will work fine afterward.

neilstee's avatar
neilstee
Best Answer
Level 34

@biswajeetetech honestly I'm not a fan of deploying Laravel projects on shared hosting, here is an article explaining why: https://www.cloudways.com/blog/stay-away-from-laravel-shared-hosting/

If your 2nd app perfectly works on your local then your shared hosting is to blame given you are uploading multiple projects there.

But if you don't have option to do that, at least follow a good guide on how to correctly install multiple projects on a shared host:

Please or to participate in this conversation.