Wampserver 2.4 - lost localhost
Posted by: oldcelt (87.114.15.---)
Date: September 17, 2013 01:20PM

Wampserver 2.4 has been running happily until yesterday. Although it seems to be running OK today (green icon) all browsers report localhost is not available!

Scanned with AVG Pro; Spybot Search & Destroy and TDSS Killer but no threats found.

All suggestions gratefully received; especially if a repair without having to re-install can be achieved as I have a large project in the process of development!

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: johnruby (---.umts.vodacom.co.za)
Date: September 17, 2013 02:25PM

OK i'M FRENCH

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: oldcelt (87.114.15.---)
Date: September 17, 2013 02:30PM

johnruby Wrote:
-------------------------------------------------------
> OK i'M FRENCH

Is that supposed to help?

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: RiggsFolly (---.as13285.net)
Date: September 17, 2013 11:23PM

Ok lets start with the simple possibilities.

Are you running SKYPE or TeamViewer?

if so terminate them and see if localhost works again.

If this is the problem I will post a 'How to configure Skype/TV to not use port 80'


If that does not work do this from a command window

netstat -aon | find ":80"

is anything using port 80? You can tell by looking at the 'Local Address' column for any ip address which includes a :80

Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2496

Post the result of a >netstat -aon if you are not sure what you are looking at

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: oldcelt (87.114.15.---)
Date: September 18, 2013 09:20AM

Thank you for your help. No, I'm not running Skype/TV. Results of netstat -aon | find ":80":-

TCP 192.168.0.5:49178 67.20.101.202:80 CLOSE_WAIT 3168
TCP 192.168.0.5:49220 91.203.99.45:80 ESTABLISHED 5196
TCP 192.168.0.5:49221 91.203.99.45:80 ESTABLISHED 5196
TCP 192.168.0.5:49223 91.203.99.45:80 TIME_WAIT 0
TCP 192.168.0.5:49226 173.194.34.130:80 TIME_WAIT 0
TCP 192.168.0.5:49261 54.230.8.217:80 CLOSE_WAIT 4972
TCP 192.168.0.5:49262 87.237.8.216:80 CLOSE_WAIT 4972
TCP 192.168.0.5:49284 72.3.250.34:80 CLOSE_WAIT 4972
TCP 192.168.0.5:49290 212.96.161.241:80 TIME_WAIT 0
TCP 192.168.0.5:49291 213.248.117.8:80 TIME_WAIT 0
TCP 192.168.0.5:49293 212.96.161.241:80 TIME_WAIT 0
TCP 192.168.0.5:49294 213.248.117.8:80 TIME_WAIT 0
TCP 192.168.0.5:49303 173.194.34.130:80 ESTABLISHED 5196
TCP 192.168.0.5:49322 204.193.144.40:80 TIME_WAIT 0
TCP 192.168.0.5:49323 204.193.144.40:80 TIME_WAIT 0

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: RiggsFolly (---.as13285.net)
Date: September 18, 2013 10:05AM

Well nothing seems to be using port 80, so we move on.

I assume you have checked the 'apache access log', 'apache error log', 'php error log' and 'Windows Event viewer' for anything that may help identify what is wrong?

Does localhost show when you use this address in the browser 'http://127.0.0.1'?

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: oldcelt (87.114.15.---)
Date: September 18, 2013 10:20AM

Thanks for that. No, localhost doesn't show using the numeric address - reports connection closed by remote server.

Will check error logs carefully and report later. Have to go to a meeting now - back this afternoon.

Again, many thanks; much appreciated.



Edited 1 time(s). Last edit at 09/18/2013 10:22AM by oldcelt.

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: oldcelt (87.114.15.---)
Date: September 19, 2013 09:52AM

RiggsFolly Wrote:
-------------------------------------------------------
> Well nothing seems to be using port 80, so we move
> on.
>
> I assume you have checked the 'apache access log',
> 'apache error log', 'php error log' and 'Windows
> Event viewer' for anything that may help identify
> what is wrong?
>
> Does localhost show when you use this address in
> the browser 'http://127.0.0.1'?

As I said yesterday; localhost doesn't show using the numeric address - reports connection closed by remote server.

Apache error.log contains from start on 18th Sep, the following:-
[Wed Sep 18 09:21:17 2013] [warn] pid file C:/wamp/bin/apache/apache2.2.22/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Sep 18 09:21:17 2013] [notice] Apache/2.2.22 (Win32) PHP/5.3.13 configured -- resuming normal operations

[Wed Sep 18 09:21:17 2013] [notice] Parent: Created child process 4488
[Wed Sep 18 09:21:18 2013] [notice] Child 4488: Child process is running
[Wed Sep 18 09:21:18 2013] [notice] Child 4488: Acquired the start mutex.
[Wed Sep 18 09:21:18 2013] [notice] Child 4488: Starting 64 worker threads.
[Wed Sep 18 09:21:18 2013] [notice] Child 4488: Starting thread to listen on port 80.
[Wed Sep 18 09:21:18 2013] [notice] Child 4488: Starting thread to listen on port 80.
[Wed Sep 18 09:21:48 2013] [notice] Parent: child process exited with status 255 -- Restarting.
[Wed Sep 18 09:21:48 2013] [notice] Apache/2.2.22 (Win32) PHP/5.3.13 configured -- resuming normal operations

Repeated 6 times in 1 second with child process numbers 4488 as above, follwed by 4232, 3274, 5800, 6020 and 3876.

Exit status 3221225725 appears twice in place of 255.

access.log shows nothing for 18th.

MySQL - mysql.log shows nothing for 18th.

PHP - can't find a php error.log.

Hope this may give a clue to the problem?

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: RiggsFolly (---.as13285.net)
Date: September 19, 2013 10:31AM

I dont think I can guess this remotely so, if you like..


Install TeamViewer and I will troubleshoot for you.

Install TV, then run it.

Do this before attempting a connection.

How to Configure Team Viewer so it does not require port 80 or 443

Run TV
Extras -> Options -> Advanced -> Press the Advanced Button -> Advanced Network Connections

Check the checkbox saying [ Dont use incomming port 80 (recommended for web servers only ) ]
Stop and restart TV.

Then
Send me a Private Message containing the TV ID and PASSWORD so I can connect.
Leave TV running as it will change the password each time you restart it.

I am on UK time (GMT+1) and am normally available 09:00 - 16:00 and sometimes later into the evening.

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: oldcelt (87.114.15.---)
Date: September 19, 2013 12:01PM

RiggsFolly Wrote:
-------------------------------------------------------
> I dont think I can guess this remotely so, if you
> like..
>
>
> Install TeamViewer and I will troubleshoot for
> you.
>
> Install TV, then run it.
>
> Do this before attempting a connection.
>
> How to Configure Team Viewer so it does not
> require port 80 or 443

>
> Run TV
> Extras -> Options -> Advanced -> Press the
> Advanced Button -> Advanced Network Connections
>
> Check the checkbox saying [ Dont use incomming
> port 80 (recommended for web servers only ) ]
> Stop and restart TV.
>
> Then
> Send me a Private Message containing the TV
> ID and PASSWORD so I can connect.
> Leave TV running as it will change the password
> each time you restart it.
>
> I am on UK time (GMT+1) and am normally available
> 09:00 - 16:00 and sometimes later into the
> evening.

Very kind - I'll install TV then PM you. I'm on UK time too.

sorry for delay - client on phone.



Edited 1 time(s). Last edit at 09/19/2013 12:23PM by oldcelt.

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: RiggsFolly (---.as13285.net)
Date: September 21, 2013 06:59PM

Ok,

The problem was related to the installation of PhpEd.

That tries to install its own debugger called DBG, but it does not disable the already existing XDEBUG.


All you need to do is edit the php.ini and find the line
zend_extension = "d:/wamp/bin/php/php5.x.y/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"

or similiar

and comment it out with a ; in column 1 to uninstall XDEBUG and remove the contention.

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: oldcelt (87.114.15.---)
Date: September 21, 2013 07:46PM

Thanks a million RiggsFolly - solved problem after a long analysis of my setuup. Can't speak too highly of this Wampserver guru. Deserves a medal! :-)

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: Jacobroy (121.54.44.---)
Date: March 25, 2014 04:11AM

hi, please pleas help.. i have download the wampserver 2.4 everything seem to be ok. the wamp tray tune green. but when i try to open the localhost, it show the google page instead. what's go wrong? i try to figure out so many way but can't solve this problem. i try to check the port 80 is use by a apache. i don't have skype on. i try to reset the connection of the localhost phpmyadmin by going to my c:driv/window/system32/drivers/etc/host. and try to save but i can't still open the localhost at my menu tray. what was go very wrong with my wampserver. please big help.. thanks

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: RiggsFolly (---.as13285.net)
Date: March 25, 2014 10:10AM

HOW TO EDIT THE HOSTS FILE
The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate the Command Window icon ( Seach -> cmd )

Shift + right click over the icon - will show a menu.

select "Run As Administrator" from the menu.

CD \windows\system\drivers\etc\

notepad hosts

When you have made changes you will now be allowed to save them.

Exit notepad

Now to refresh the DNS cache do the following from with the same command window, as these commands need admin privileges also.

net stop "DNS Client"
net start "DNS Client"

The double quotes are required as the service name has a space in it.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: Jacobroy (121.54.54.---)
Date: March 26, 2014 11:32AM

thank you so much for your advice. i did try to change at CD \windows\system\drivers\etc\

notepad hosts but can't be save and it show message like this

[Window Title]
Save As

[Content]
C:\Windows\System32\drivers\etc\hosts.txt
You don’t have permission to save in this location.
Contact the administrator to obtain permission.

Would you like to save in the My Documents folder instead?

[Yes] [No]


so i click no. by the way am using
-Windows 7 Home Premium
-System Type x64-based PC
i even search from youtube and follow them step by step as well but it can't still.
am going crazy will the issue.

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: RiggsFolly (---.as13285.net)
Date: March 26, 2014 11:44AM

HOW TO EDIT THE HOSTS FILE
The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate your editors icon on the desktop or from the Start menus ( notepad will do if you have nothing else )
right click + shift over your chosen editor icon - will show a menu.
select "Run As Administrator" from the menu.
Navigate your editor to the c:\windows\system32\drivers\etc\hosts file.

When you have made changes you will now be allowed to save them.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Wampserver 2.4 - lost localhost
Posted by: Jacobroy (121.54.54.---)
Date: March 26, 2014 12:25PM

thank you so much for your help.

Options: ReplyQuote


Sorry, only registered users may post in this forum.