Connection Problems

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

Connection Problems

Postby alisalamiii » 14. March 2009 01:58

Hello,
I am running XAMPP 1.7 on Windows Home edition SP2.

I am at a loss as to why I can't get connected to XAMPP. I have tried many of the solutions in this forum (tried installing all 3 ways, installing to various folders, etc...) and still can't get it to work.

Everytime I come across the same problem, it seems to connecting to both localhost and 127.0.0.1, but nothing appears in the browser window, just a plain white screen. I've tried Firefox, IE, Chrome, even tried an IE renderer in Firefox. The reason I think it's connecting is the little Favicon always appears? So surely something is happening?

Here is a screenshot of what I mean: http://www.mypicx.com/uploadimg/9846310 ... 2009_1.jpg

Any help is greatly appreciated!
Thanks,
Ali
alisalamiii
 
Posts: 7
Joined: 14. March 2009 01:46

Re: Connection Problems

Postby Izzy » 14. March 2009 02:08

Try temporarily disabling your Windows firewall and see if it helps.
http://www.apachefriends.org/en/faq-xam ... html#xpsp2
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Connection Problems

Postby alisalamiii » 14. March 2009 02:10

Thanks, but I forgot to mention I've tried that...
alisalamiii
 
Posts: 7
Joined: 14. March 2009 01:46

Re: Connection Problems

Postby Izzy » 14. March 2009 02:19

alisalamiii wrote:Thanks, but I forgot to mention I've tried that...
Please try and include all details in future to help prevent time wasting - it is important.


Open apache\conf\httpd.conf file in your text editor and add this line at the end then save and restart apache.
Win32DisableAcceptEx

Please post back and tell us if that helps.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Connection Problems

Postby alisalamiii » 14. March 2009 02:26

Apologies, I will try not to in future.

I tried adding Win32DisableAcceptEx right at the bottom, but still the same result.
alisalamiii
 
Posts: 7
Joined: 14. March 2009 01:46

Re: Connection Problems

Postby Izzy » 14. March 2009 02:34

Try clearing your browser's cache and try again then look in the apache\logs\error.log file for any clues.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Connection Problems

Postby alisalamiii » 14. March 2009 02:44

Thanks again,
Clearing Cache, didn't work.

Although there is something in the error file.
Everytime I try to connect this appears in the log file:

[Sat Mar 14 01:39:31 2009] [error] [client 127.0.0.1] PHP Warning: require_once(SAM/php_sam.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in sam_factory on line 1
[Sat Mar 14 01:39:31 2009] [error] [client 127.0.0.1] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'SAM/php_sam.php' (include_path='.;C:\\php5\\pear') in sam_factory on line 1

There are quite a few things in there though, but that one appears on every connection attempt.
Here is the whole thing though:
http://uploading.com/files/EJSYC58V/error.log.html
alisalamiii
 
Posts: 7
Joined: 14. March 2009 01:46

Re: Connection Problems

Postby Izzy » 14. March 2009 02:49

Search your PC for any php.ini files and rename or delete any you find except for the one in the xampp\apache\bin folder and try again after restarting Apache.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Connection Problems

Postby alisalamiii » 14. March 2009 02:57

Do I delete/rename the one in the xampp\php folder?
alisalamiii
 
Posts: 7
Joined: 14. March 2009 01:46

Re: Connection Problems

Postby Izzy » 14. March 2009 03:03

alisalamiii wrote:Do I delete/rename the one in the xampp\php folder?
Best not to rename or delete any in the your XAMPP installation folder.
Last edited by Izzy on 14. March 2009 03:06, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Connection Problems

Postby alisalamiii » 14. March 2009 03:05

Ok, I've done that,
And still no change.
Dunno if this means anything, but http://localhost/index.html, brings up it works!
alisalamiii
 
Posts: 7
Joined: 14. March 2009 01:46

Re: Connection Problems

Postby Izzy » 14. March 2009 03:17

alisalamiii wrote:Ok, I've done that,
And still no change.
Dunno if this means anything, but http://localhost/index.html, brings up it works!
That what it is supposed to do.

What happens when you go to http://localhost/xampp/index.php

Look in your Environment Variable for this entry:
SetEnv PHPRC "path"
and delete this line.
Control Panel>System>Advanced>Environment Variables>System variables

Sometimes, as a last resort, it has been known that to reinstall XAMPP, by first making sure all components are stopped including the XCP and all components running as a service are uninstalled as a service, has fixed these strange issues.

Try a different method by downloading and then extract the EXE (7zip) version to C:\ which will put the files in the C:\xampp folder.

Then simply run setup_xampp.bat file to set the paths then run xampp-control.exe and start Apache and MySQL but do not click on any of the Admin... buttons.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Connection Problems

Postby alisalamiii » 14. March 2009 03:22

For some reason, before making any further changes, when I tried that link you sent (http://localhost/xampp/index.php), I clicked English, and now it works even from just http://localhost.

Many Many thanks! Been struggling for hours with this, really genuinely appreciated.
alisalamiii
 
Posts: 7
Joined: 14. March 2009 01:46

Re: Connection Problems

Postby Izzy » 14. March 2009 04:20

Your welcome.

May be you ran a disk clean-up utility which may have deleted the lang.tmp file in the C:\xampp\htdocs\xampp folder which was created again when you selected English from the Welcome page.

If so, then have your disk clean-up utility bypass the C:\xampp folder as it will do untold damage by deleting .tmp, .temp and zero length files that are very much needed by Apache and MySQL.

Good luck and now enjoy your XAMPP experience.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests