Page 1 of 1

Connection Problems

PostPosted: 14. March 2009 01:58
by alisalamiii
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

Re: Connection Problems

PostPosted: 14. March 2009 02:08
by Izzy
Try temporarily disabling your Windows firewall and see if it helps.
http://www.apachefriends.org/en/faq-xam ... html#xpsp2

Re: Connection Problems

PostPosted: 14. March 2009 02:10
by alisalamiii
Thanks, but I forgot to mention I've tried that...

Re: Connection Problems

PostPosted: 14. March 2009 02:19
by Izzy
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.

Re: Connection Problems

PostPosted: 14. March 2009 02:26
by alisalamiii
Apologies, I will try not to in future.

I tried adding Win32DisableAcceptEx right at the bottom, but still the same result.

Re: Connection Problems

PostPosted: 14. March 2009 02:34
by Izzy
Try clearing your browser's cache and try again then look in the apache\logs\error.log file for any clues.

Re: Connection Problems

PostPosted: 14. March 2009 02:44
by alisalamiii
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

Re: Connection Problems

PostPosted: 14. March 2009 02:49
by Izzy
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.

Re: Connection Problems

PostPosted: 14. March 2009 02:57
by alisalamiii
Do I delete/rename the one in the xampp\php folder?

Re: Connection Problems

PostPosted: 14. March 2009 03:03
by Izzy
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.

Re: Connection Problems

PostPosted: 14. March 2009 03:05
by alisalamiii
Ok, I've done that,
And still no change.
Dunno if this means anything, but http://localhost/index.html, brings up it works!

Re: Connection Problems

PostPosted: 14. March 2009 03:17
by Izzy
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.

Re: Connection Problems

PostPosted: 14. March 2009 03:22
by alisalamiii
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.

Re: Connection Problems

PostPosted: 14. March 2009 04:20
by Izzy
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.