Local LAN login fails

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
query
Posts: 4
Joined: Wed May 29, 2013 12:34 am

Local LAN login fails

Post 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/" />
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Local LAN login fails

Post 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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
query
Posts: 4
Joined: Wed May 29, 2013 12:34 am

Re: Local LAN login fails

Post 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 :-(
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Local LAN login fails

Post 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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply