Support the ongoing development of Laravel.io →
Installation Configuration

I've used laravel 5 to create an API locally which works alright. I've tested it on my own server using hostgator and at first it didn't work. After adding AddHandler application/x-httpd-php55 .php to my .htaccess file it worked.

Exact same thing happened on my client's server(which I only have ftp access to). After adding the line to the .htaccess file, Im getting the text of the index.php instead of the response.

Thoughts?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

spredemann spredemann Joined 13 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.