This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Strange login behavior

Discussion relating to version 1.3.x and 1.4.x

Strange login behavior

by taylorr » Mon Aug 23, 2010 3:54 pm

I have created a SF project and installed the sfDoctrineGuardPlugin to enable the user security.

I have made changes to my settings.yml and security.yml in both frontend and backend.

When I tried to visit localhost/frontend_dev.php, it looks fine and after login, it directs me to my homepage.

When I tried to visit localhost/, the login is not successful saying:

The requested URL /guard/login was not found on this server.


I checked the source code and noticed:

Code: Select all
<form action="/guard/login" method="post">
  <table>
    <tbody>


I have tried doctrine:build --all --and-load and cc already.

The backend seems fine in dev and prod environment.

Any hints? :roll:
Develop with Symfony, PHP, MySQL
User avatar
taylorr
Member
 
Posts: 48
Joined: Fri Jan 16, 2009 10:08 am
Location: Suzhou, China

Re: Strange login behavior

by lucasaba » Mon Aug 23, 2010 4:23 pm

I think this is a web server issue.
If you are using apache check that the url-rewrite module is enabled and loaded.
And check if the .htaccess in the web folder is there.
It is easier to move a problem around (for example, by moving the problem to a different part of the overall network architecture) than it is to solve it.
6th truth - rfc1925
User avatar
lucasaba
Senior Member
 
Posts: 106
Joined: Tue Jun 12, 2007 5:33 pm

Re: Strange login behavior

by taylorr » Tue Aug 24, 2010 1:20 am

lucasaba wrote:I think this is a web server issue.
If you are using apache check that the url-rewrite module is enabled and loaded.
And check if the .htaccess in the web folder is there.


Hi Lucasaba,

You are absolutely right on this! Thanks for the hint.

I did made some changes to the .htaccess generated by SF and now I change to the original one.

Thanks!

TR@SOE
Develop with Symfony, PHP, MySQL
User avatar
taylorr
Member
 
Posts: 48
Joined: Fri Jan 16, 2009 10:08 am
Location: Suzhou, China

Re: Strange login behavior

by lucasaba » Tue Aug 24, 2010 8:22 am

You're wellcome :D~:-D~:grin: :thumbup:
It is easier to move a problem around (for example, by moving the problem to a different part of the overall network architecture) than it is to solve it.
6th truth - rfc1925
User avatar
lucasaba
Senior Member
 
Posts: 106
Joined: Tue Jun 12, 2007 5:33 pm

Re: Strange login behavior

by ginky80 » Wed Oct 15, 2014 12:27 pm

Hello everybody!

i am complete beginner in Symfony and these days i have started collaborating on a project.
I have created a working copy of a website on my laptop and i was about to test it when, after a login form, i was prompted with the error

The requested URL /guard/login was not found on this server


As suggested here, i tried to enable the mod_rewrite module in my Apache, but i only get an error 500 after i submit my credentials.
I haven't found any suggestion on how to edit the .thaccess file, so i can't tell whether it works or not.

Can anybody help me?

thank you!
ginky80
Junior Member
 
Posts: 1
Joined: Wed Oct 15, 2014 12:09 pm