Page 1 of 1

Local LAN login fails

Posted: Wed May 29, 2013 12:55 am
by query
Just discovered phpMyFaq and thought I wanted to give it a try as the demo site looked good and
it seemed to fit what I need, but ...
I cannot log-in from another machine on my LAN.
Logging in as a plain user or as admin, I get a 404 error and the URL becomes: http://localhost/myfaq/index.php?action=password
That obviously won't work since it really should be http://faqMachine/........

On faqMachine I can log in locally as user or as admin without problems.
FWIW, I installed phpMyFaq 2.8.0 under xampp 1.8.1 running under Win 7 32-bit

TIA for any help or pointers
EDIT:
A definite problem seems to be this line in the document header:
<base href="http://localhost/myfaq/admin/" />

Re: Local LAN login fails

Posted: Wed May 29, 2013 6:27 am
by Thorsten
Hi,

please login via localhost and change the URL in the configuration to httP://faqMachine/... Then it will work in the whole LAN.

bye
Thorsten

Re: Local LAN login fails

Posted: Wed May 29, 2013 5:44 pm
by query
Thorsten wrote:Hi,
please login via localhost and change the URL in the configuration to httP://faqMachine/... Then it will work in the whole LAN.
Thank you, Thorsten.
I tried, but seems I botched something, because now I cannot even log-in on 'localhost' and I cannot find out where to fix it.
Guess I'll have to re-install from scratch.
Since it seems I could not change the only existing URL, I tried to add a new one, but seemed unable to change the pre-selected value .
Since I am locked out at present, I cannot even recall exactly where and what I did wrong.

However, since I have had problems with using the <base> tag in other places, I am wondering if this is not something that should be taken care of during install.
Personally, I would expect that few people who install it on a lan, would only want to access the FAQ from the server (localhost) only.
But, then I am very new to this application :-(

Re: Local LAN login fails

Posted: Thu May 30, 2013 7:17 pm
by Thorsten
Hi,

you're really the first one with this issues. If you use the host "localhost" for installation it'll work only on your machine. That's why you always should use the "real" hostname of the server or a "real" domain

bye
Thorsten