Localhost unable to connect in Firefox

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Localhost unable to connect in Firefox

Postby KeswickPaul » 06. May 2014 15:12

Hiya,
I've been using XAMPP for weeks with no problems. Today, halfway through work it stops connecting to Firefox when I run a file through it. Localhost/xampp/ also doesn't load in the browser. After trying many things I uninstalled and reinstalled. After changing the 443 and 80 ports to 4433 and 8080 it worked OK. No problems. I then noticed that a blank command prompt was open. I closed it. From that moment I was then unable to connect to Firefox. So I uninstalled and reinstalled. The command prompt appeared again and as long as I didn't close it it worked fine.

Obviously this isn't a usuable situation. Everytime I start my computer I would need to uninstall and reinstall XAMPP.

I'm using Windows 7 64bit.

Please let me know if you need any more information. I'm working where I can't get an internet connection so if I can't get this to work then I can't work. Any help would be greatly appreciated.

Cheers
Paul
KeswickPaul
 
Posts: 6
Joined: 20. April 2011 09:23

Re: Localhost unable to connect in Firefox

Postby KeswickPaul » 13. May 2014 16:21

Hi all,
Does anyone have any ideas about my problem above?

Today I closed the command prompt without exporting all the tables I'd created. Because the only way I can access PHPMyAdmin is to uninstall and reinstall XAMPP to get the coammand prompt back I've lost all my work. I'm runnning the same XAMPP version on the same operarting system on 2 computers. One has this problem and one doesn't. One needs to have the ports changed and one doesn't.

It's a mystery to me.

Cheers
Paul
KeswickPaul
 
Posts: 6
Joined: 20. April 2011 09:23

Re: Localhost unable to connect in Firefox

Postby JJ_Tagy » 13. May 2014 18:37

The command prompt remaining open during installation is a bug. The installation package should stop apache and exit at the finish of installation. Since it doesn't, it keeps the ports locked if you try to open the control panel immediately after installation. You shouldn't change your ports because of it. I recommend stopping everything (including any apache/MySQL services), revert all the ports back to normal, and start troubleshooting from there.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Localhost unable to connect in Firefox

Postby KeswickPaul » 15. May 2014 15:16

JJ_Tagy,
Thanks very much for the reply.

This morning I tried as you suggested. After XAMPP installed (and the command prompt appeared as usual) I stopped Apache and MySQL, exited the Control Panel and restarted XAMPP. Despite this Apache wouldn't start and told me that port 443 was in use. If I closed the command prompt the same error occured and I couldn't load anything in the browser.

Have you any suggestions as to where I start with your troubleshooting suggestion?

Cheers
Paul
KeswickPaul
 
Posts: 6
Joined: 20. April 2011 09:23

Re: Localhost unable to connect in Firefox

Postby JJ_Tagy » 15. May 2014 15:37

Figure out what is using the ports. There is a button on the control panel or use your command prompt.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Localhost unable to connect in Firefox

Postby KeswickPaul » 17. May 2014 15:04

Hiya,
I checked this morning and port 443 is used by httpd.exe.

I did some Googling and some posts are saying to go to task manager and stop httpd.exe. I'm not sure I want to do that until I understand a bit more about what httpd.exe does. I don't want to irreperably damage my computer by stopping something that I can't start again.

Where should I go next?

Thanks for all your help.
Paul
KeswickPaul
 
Posts: 6
Joined: 20. April 2011 09:23

Re: Localhost unable to connect in Firefox

Postby JJ_Tagy » 17. May 2014 15:59

httpd is Apache. So most likely you installed it as a service from a previous installation or it didn't stop during installation. It is safe to stop and remove the service (if it is installed as a service).
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 142 guests