Appache & MySql are running, but unable to connect

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

Appache & MySql are running, but unable to connect

Postby anthropos » 26. June 2011 09:50

Hello everybody!

I just installed the XAMPP on Windows 7. I started it, Apache and MySql are running, but I'm not able to connect to localhost. Skype is not using the 80 port.
Any suggestions?

Thank you in advance:-)
anthropos
 
Posts: 7
Joined: 26. June 2011 09:44

Re: Appache & MySql are running, but unable to connect

Postby Sharley » 26. June 2011 10:43

What does the \xampp\apache\logs\error.log file have to say about it?

Have you allowed access through your firewall or any other monitor you are using like ZoneAlarm?

More details may help with diagnosing your issues - remember we can't see your screen, you have to tell us what you see.


In the Control Panel Stop all components and remove the ticks in the Svc boxes and then Exit the Control Panel and reboot the PC then run the Control Panel and Start Apache and MySQL, don't tick any boxes, then try and go to http://localhost again.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Appache & MySql are running, but unable to connect

Postby anthropos » 26. June 2011 15:13

The error log says:
[Sun Jun 26 11:15:53 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 26 11:15:53 2011] [notice] Digest: done
[Sun Jun 26 11:15:54 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Jun 26 11:15:54 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Jun 26 11:15:54 2011] [notice] Parent: Created child process 5560
[Sun Jun 26 11:15:55 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 26 11:15:55 2011] [notice] Digest: done
[Sun Jun 26 11:15:56 2011] [notice] Child 5560: Child process is running
[Sun Jun 26 11:15:56 2011] [notice] Child 5560: Acquired the start mutex.
[Sun Jun 26 11:15:56 2011] [notice] Child 5560: Starting 150 worker threads.
[Sun Jun 26 11:15:56 2011] [notice] Child 5560: Starting thread to listen on port 443.
[Sun Jun 26 11:15:56 2011] [notice] Child 5560: Starting thread to listen on port 80.
[Sun Jun 26 17:09:15 2011] [warn] pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jun 26 17:09:15 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 26 17:09:15 2011] [notice] Digest: done
[Sun Jun 26 17:09:16 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Jun 26 17:09:16 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Jun 26 17:09:16 2011] [notice] Parent: Created child process 2380
[Sun Jun 26 17:09:17 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 26 17:09:17 2011] [notice] Digest: done
[Sun Jun 26 17:09:18 2011] [notice] Child 2380: Child process is running
[Sun Jun 26 17:09:18 2011] [notice] Child 2380: Acquired the start mutex.
[Sun Jun 26 17:09:18 2011] [notice] Child 2380: Starting 150 worker threads.
[Sun Jun 26 17:09:18 2011] [notice] Child 2380: Starting thread to listen on port 443.
[Sun Jun 26 17:09:18 2011] [notice] Child 2380: Starting thread to listen on port 80.

I'm using AVG Free Edition, stoped it - didn't help.
Switched off the Windows Firewall - didn't help.
Removed the ticks in the Svc boxes - didn't help.
anthropos
 
Posts: 7
Joined: 26. June 2011 09:44

Re: Appache & MySql are running, but unable to connect

Postby JonB » 26. June 2011 16:25

What is the error code you get in your broswer when you type in http://localhost???

If it doesn't return an error, what does happen?

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Appache & MySql are running, but unable to connect

Postby anthropos » 26. June 2011 18:55

In Google Crome: Oops! Google Chrome could not find localhost.

In Mozilla Fireforx: The connection was reset.
The connection to the server was reset while the page was loading.

In IE9: Internet Explorer cannot display the webpage.
anthropos
 
Posts: 7
Joined: 26. June 2011 09:44

Re: Appache & MySql are running, but unable to connect

Postby JonB » 26. June 2011 23:34

OK - that's good actually.

IF the case is that when you open the XAMPP Control Panel, Apache shows as 'running', then the problem is probably the localhost redirector. In Vista and Windows 7, the localhost redirector was moved into the actual code for the MSDNS engine. And it only uses the IPv6 address.

read this
http://bravo.newnetenterprises.com/word ... ot-connect
&
http://serverfault.com/questions/4689/w ... itself-why

add this line to your 'hosts' file if it is not present, and make sure IPv4 is enabled.

127.0.0.1 localhost

Reboot and give it a whirl. If that does not fix it AND Apache shows as running, then the address localhost has been quarantined by a firewall or security policy IMO

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Appache & MySql are running, but unable to connect

Postby sdifiore » 28. June 2011 18:01

Whenever you start xampp services you must have skype closed, and sometimes would be better all browser as well.

Skype will definitelly disrupt the initialization of the connections!
User avatar
sdifiore
 
Posts: 4
Joined: 28. June 2011 17:57
Location: Brazil

Re: Appache & MySql are running, but unable to connect

Postby anthropos » 28. June 2011 19:54

1. There is such line (127.0.0.1 localhost) in my hosts file and IPv4 is enabled.

2. And yes - I closed all browsers and Skype before start the XAMPP - no result...

But thank you, guys, anyway! :)
anthropos
 
Posts: 7
Joined: 26. June 2011 09:44

Re: Appache & MySql are running, but unable to connect

Postby sdifiore » 28. June 2011 20:29

I run into it once, and to be with you, I deleted the instalation, all diretocries, all windows registry keys (sure I'm talking of a windows instalation), turned of all firewall, including windows and re-installed everything... A little to radical, but worked.... here are to many things to trobbleshoott...

Are you in position to do so?
User avatar
sdifiore
 
Posts: 4
Joined: 28. June 2011 17:57
Location: Brazil

Re: Appache & MySql are running, but unable to connect

Postby Sharley » 29. June 2011 02:59

@sdifiore
You have selected a misleading and incorrect Avatar.
You are an ApacheFriends User not an ApacheFriends Administrator so kindly reselect the correct User Avatar or be adventurous and create or use an alternative that reflects more about your own character- thanks.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Appache & MySql are running, but unable to connect

Postby anthropos » 29. June 2011 19:42

Problem solved - instead of writing localhost, I just wrote http://127.0.0.1.

But now another problem came out - when I click on "phpMyAdmin" it shows an error: MySQL said:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured).

Any suggestions?
anthropos
 
Posts: 7
Joined: 26. June 2011 09:44

Re: Appache & MySql are running, but unable to connect

Postby Sharley » 30. June 2011 02:09

If you have this IPv6 line in your Windows Hosts file
Code: Select all
::1 localhost

Then comment it out so it looks like this:
Code: Select all
# ::1 localhost
This entry is not supported in XAMPP 1.7.4 AFAIK and if commented out will not affect any other IPv6 issue on your PC as it only applies to localhost.

You may reboot and try again to access http://localhost
If localhost is not available then phpMyAdmin and MySQL may not start either as they are configured to use localhost not 127.0.0.1 - so try both of those after you edit the Hosts file.

Clear your browser's cache first so you are served a fresh page not a cached page.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Appache & MySql are running, but unable to connect

Postby anthropos » 30. June 2011 21:56

Yes, my Windows Hosts File says: # ::1 localhost.

Still unable to connect to phpMyAdmin...
anthropos
 
Posts: 7
Joined: 26. June 2011 09:44

Re: Appache & MySql are running, but unable to connect

Postby Sharley » 01. July 2011 02:12

anthropos wrote:But now another problem came out - when I click on "phpMyAdmin" it shows an error: MySQL said:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured).

Any suggestions?
See if any of the recommendations in this Topic hold the solution:
viewtopic.php?f=16&t=47332
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Appache & MySql are running, but unable to connect

Postby anthropos » 01. July 2011 18:12

Thank you, Sharley! I'll check it:-)
anthropos
 
Posts: 7
Joined: 26. June 2011 09:44


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 71 guests