Support the ongoing development of Laravel.io →
posted 10 years ago
Authentication

Hi!

I've just recently deployed my first laravel based app to my shared host, and everything seems to run smothly except the auth part (Basic auth).

In my local environment I can log in, but when I try on the host, it just returns the login prompt as if I wrote a wrong password.

I have copied the laravel database manually, and I can see the encrypted pw is the same in both local and on the host. I have also updated the database.php file in the config folder.

Can anyone point me in a direction about whats wrong here?

Thanks a lot in advance!

/Kris

Last updated 3 years ago.
0

Can you provide me below details :-

  1. . What is PHP version installed in your shared host ? 2). In What OS and Architecture you have worked in development version and what OS and architecture is in Shared Host. [ E.g, Linux x86 or WIndows 32bit ??
Last updated 3 years ago.
0

Hi Getio,

The environment on the host is PHP 5.5.11, Linux x86_64

On my local environment I'm running an ubuntu linux x86_64 with php 5.5.19

/Kris

Last updated 3 years ago.
0

Hi, I am experiencing exactly the same problem.

Regards, Esteve

Last updated 3 years ago.
0
Solution

Found the solution - finally!

This tells about the issue: http://codetheory.in/fixing-laravel-basic-auth-failure/

and this contains the actual code that did the trick for me: http://laravel.com/docs/4.2/security#http-basic-authentication

Hope this might help others.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

scifo scifo Joined 23 Nov 2014

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.