Page 1 of 1

I cant access my localhost and my php file

PostPosted: 18. January 2012 13:25
by clark.cruz07
Hi to everyone who is concern with the page :) I just want to consult my problem regarding my XAMPP version 1.7.7.

Everytime I'm typing http://localhost or localhost or 127.0.0.1 or http://127.0.0.1... It is not working... it is just loading but nothing is happening with the page.

On my php file... everytime I run my php file... It is just showing the written php code but not the output...


Please Help me... Thank you :)

Re: I cant access my localhost and my php file

PostPosted: 18. January 2012 13:32
by Sharley
Moved from the German language only forum.


Did you Start Apache and MySQL using the xampp-control-3-beta.exe file control panel found in the xampp installation folder and do the names show in green which indicates they are running.

There is also a log window that may give some clues if Apache can't start.

Also more clues may be found by reading the xampp\apache\logs\error.log file.


New users may find self help by reading these pages:
readme_en.txt file in the xampp folder.
http://www.apachefriends.org/en/xampp-windows.html
http://www.apachefriends.org/en/faq-xampp-windows.html

Some useful reading that may help you help us to find suitable solutions:
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 05:24
by clark.cruz07
This Shows the error Mister Sharley...

And my APache always stops after I click start thanks sharley!! :)


--This is the error--
[Wed Jan 18 19:10:52 2012] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 05:50
by Sharley
I prefer to just be called simply Sharley, no need for anything else - I am female.

To get rid of this error:
Code: Select all
(OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?
by following these instruction to reset winsock:

You need a command prompt (console) window.
Click on start>run>
Type:
cmd.exe
Type exactly:
netsh winsock RESET
Click OK

Restart your PC and again try and start Apache.

Good luck. :)

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 05:54
by Sharley
Also, another possible fix for the error:
Open this file: C:\Windows\Sytem32\Drivers\etc\HOSTS

Then find the following line and remove the leading '#' character.
Code: Select all
#   127.0.0.1       localhost
If it is not there then add that line without the hash as the first line after all the comments.

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 06:02
by clark.cruz07
after doing in command prompt... it shows an error again...

here's the error sharley...
"The following helper DLL cannot be loaded: WSHELPER.DLL"
alsor this sharley:
"The following command was not found: winsock RESET"

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 06:29
by Sharley
At the command prompt you opened in my last post type only:
netsh
Click Enter.

Then you will see the prompt change to
netsh>

At this prompt type:
winsock RESET /add helper wshelper.dll
Click Enter

Exit the command console.

If successful restart your PC as instructed.

After a reboot try and start Apache.

Good luck again. :)

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 07:32
by clark.cruz07
still the same error sharley :)

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 07:35
by Sharley
Tell me exactly what you did and what error you get, please.

Also you need to be logged into Windows as an Administrator.

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 07:39
by clark.cruz07
yeah i'm an administrator on my computer... I typed netsh in cmd after i entered netsh's folder... i type winsock RESET and the add helper wshelper.dll... here's the error... "The following helper DLL cannot be loaded: WSHELPER.DLL"

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 07:45
by Sharley
Sharley wrote:At the command prompt you opened in my last post type only:
netsh
Click Enter.

Then you will see the prompt change to
netsh>

At this prompt type:
winsock RESET /add helper wshelper.dll
Click Enter

Exit the command console.

If successful restart your PC as instructed.

After a reboot try and start Apache
That is what you should have done.

Anyhow, try this:
Go to a command prompt and type this line followed by hitting return:
netsh winsock RESET /add helper wshelper.dll

Please let me know if you don't understand what I am typing here.

These Google Results you may be able to open in your language

And these Google Results for your original Apache error message.

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 08:00
by clark.cruz07
still the same error :) I already runned apache sharley.. the problem is.. I cant access my localhost.. I'm planning to do a mysql database inside xampp then attach it to my php file

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 08:14
by Sharley
clark.cruz07 wrote:This Shows the error.
And my APache always stops after I click start.
--This is the error--
[Wed Jan 18 19:10:52 2012] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?
You can't access localhost or 127.0.0.1 because Apache is not running and is showing the above error message to prove it.
clark.cruz07 wrote:the problem is.. I cant access my localhost
Follow my instruction correctly and read the Google Results and you may be able to move on.

Re: I cant access my localhost and my php file

PostPosted: 19. January 2012 09:25
by clark.cruz07
last question I opened my network center sharley... but it shows that ipv6 doesnt have a connectivity... ipv4 has its connection with the internet... what should i do?