I cant access my localhost and my php file

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

I cant access my localhost and my php file

Postby clark.cruz07 » 18. January 2012 13:25

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 :)
clark.cruz07
 
Posts: 7
Joined: 18. January 2012 12:53
Operating System: windows 7

Re: I cant access my localhost and my php file

Postby Sharley » 18. January 2012 13:32

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
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: I cant access my localhost and my php file

Postby clark.cruz07 » 19. January 2012 05:24

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?
clark.cruz07
 
Posts: 7
Joined: 18. January 2012 12:53
Operating System: windows 7

Re: I cant access my localhost and my php file

Postby Sharley » 19. January 2012 05:50

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. :)
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: I cant access my localhost and my php file

Postby Sharley » 19. January 2012 05:54

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.
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: I cant access my localhost and my php file

Postby clark.cruz07 » 19. January 2012 06:02

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"
clark.cruz07
 
Posts: 7
Joined: 18. January 2012 12:53
Operating System: windows 7

Re: I cant access my localhost and my php file

Postby Sharley » 19. January 2012 06:29

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. :)
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: I cant access my localhost and my php file

Postby clark.cruz07 » 19. January 2012 07:32

still the same error sharley :)
clark.cruz07
 
Posts: 7
Joined: 18. January 2012 12:53
Operating System: windows 7

Re: I cant access my localhost and my php file

Postby Sharley » 19. January 2012 07:35

Tell me exactly what you did and what error you get, please.

Also you need to be logged into Windows as an Administrator.
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: I cant access my localhost and my php file

Postby clark.cruz07 » 19. January 2012 07:39

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"
clark.cruz07
 
Posts: 7
Joined: 18. January 2012 12:53
Operating System: windows 7

Re: I cant access my localhost and my php file

Postby Sharley » 19. January 2012 07:45

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.
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: I cant access my localhost and my php file

Postby clark.cruz07 » 19. January 2012 08:00

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
clark.cruz07
 
Posts: 7
Joined: 18. January 2012 12:53
Operating System: windows 7

Re: I cant access my localhost and my php file

Postby Sharley » 19. January 2012 08:14

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.
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: I cant access my localhost and my php file

Postby clark.cruz07 » 19. January 2012 09:25

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?
clark.cruz07
 
Posts: 7
Joined: 18. January 2012 12:53
Operating System: windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 99 guests