Vista & xampp lite 1.70 - can't get started

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

Vista & xampp lite 1.70 - can't get started

Postby java_zz » 15. March 2009 14:32

No matter what I try to do, I can't get this one right. I unzipped the 1.70 version for windows, ran setup_xampp.bat, start_apache.bat. start_apache.bat seems to start with no problems (I've used xampp for a long time and I know how it looks like when things are working). But then when I try opening the front page http://localhost, browsers just can't connect. My OS is Windows Vista Business. I used to be able to run xampp 1.5 earlier with it and there were no problems. I tried to clear everything and re-install the lite version (unzip and exe, tried both) but with no luck. I'm not gonna touch any non-lite-versions since I've had big problems with those in the past. I like the lite-version and I want to run it.

I've checked the following:
- all ports are free (no other software messing with those)
- there are no other php.ini anywhere
- It's not a browser cache issue, any browser just can't connect, the page is not available.
- It's not a firewall issue, I'm running F-Secure but I also tried disabling that - does not help
- I read through other other messages here, tried adding Win32DisableAcceptEx, no luck
- I also tried commenting out everything under the supplemental configuration -> made the error messages go away in the error.log but the problem exists.
- I've tried running under c:\xampplite and c:\somefolder\xampplite, not using "Program Files" at all

The apache error log says:

[Sun Mar 15 15:19:18 2009] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 15 15:19:18 2009] [notice] Digest: done
PHP Warning: PHP Startup: soap: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: sockets: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: mysql: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: pdo_pgsql: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=0\nPHP compiled with module API=20060613, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
[Sun Mar 15 15:19:20 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 configured -- resuming normal operations
[Sun Mar 15 15:19:20 2009] [notice] Server built: Dec 10 2008 00:10:06
[Sun Mar 15 15:19:20 2009] [notice] Parent: Created child process 3544
[Sun Mar 15 15:19:21 2009] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 15 15:19:21 2009] [notice] Digest: done

Trying to figure out the error messages...Is there something wrong with the package you're giving out?

please help me out. I'd really appreciate it.

EDIT: I gave up and tried the normal installer instead of lite one thinking that would fix my problems. No luck. Still getting the same errors. If I try to run PHP by double clicking php.exe, the same components fail to load as mentioned above. Also, I'm getting errors of zlib1.dll not found. Anybody knows anything about this? Could it be some failing environment variables or something like that?
java_zz
 
Posts: 6
Joined: 15. March 2009 14:20

Re: Vista & xampp lite 1.70 - can't get started

Postby Izzy » 15. March 2009 21:48

Look for this entry in the Environment Variables>System variables and delete it if you find it:
SetEnv PHPRC "path" - it will have a path between the quotes.

You will have to be an Administrator and have UAC disabled to run most things like XAMPP and system edits.

Can you open http://localhost/xampp/

Can you open http://localhost/xampp/phpinfo.php - if so look for the line Loaded Configuration File which should show the php.ini file in the xampp\apache\bin folder.

Have you run a disk cleanup utility which may have deleted the lang.tmp file in the xampp\htdocs\xampp folder and running the http://localhost/xampp/ and selecting your language again may help.

If you have used a disk cleanup utility then you will have deleted many .tmp files and many zero length files that may be needed, so have the utility bypass the XAMPP installation folder.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Vista & xampp lite 1.70 - can't get started

Postby java_zz » 16. March 2009 19:36

Izzy wrote:Look for this entry in the Environment Variables>System variables and delete it if you find it:
SetEnv PHPRC "path" - it will have a path between the quotes.]

You will have to be an Administrator and have UAC disabled to run most things like XAMPP and system edits.

Can you open http://localhost/xampp/

Can you open http://localhost/xampp/phpinfo.php - if so look for the line Loaded Configuration File which should show the php.ini file in the xampp\apache\bin folder.

Have you run a disk cleanup utility which may have deleted the lang.tmp file in the xampp\htdocs\xampp folder and running the http://localhost/xampp/ and selecting your language again may help.

If you have used a disk cleanup utility then you will have deleted many .tmp files and many zero length files that may be needed, so have the utility bypass the XAMPP installation folder.



there was actually phprc variable pointing to a non-existing folder. I think removing that and installing the full install made me get rid of error messages in the log. Now it says on startup:

[Mon Mar 16 20:32:42 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 16 20:32:42 2009] [notice] Digest: done
[Mon Mar 16 20:32:43 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 configured -- resuming normal operations
[Mon Mar 16 20:32:43 2009] [notice] Server built: Dec 10 2008 00:10:06
[Mon Mar 16 20:32:43 2009] [notice] Parent: Created child process 6448
[Mon Mar 16 20:32:44 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 16 20:32:44 2009] [notice] Digest: done
[Mon Mar 16 20:32:45 2009] [notice] Child 6448: Child process is running
[Mon Mar 16 20:32:45 2009] [notice] Child 6448: Acquired the start mutex.
[Mon Mar 16 20:32:45 2009] [notice] Child 6448: Starting 250 worker threads.
[Mon Mar 16 20:32:45 2009] [notice] Child 6448: Starting thread to listen on port 443.
[Mon Mar 16 20:32:45 2009] [notice] Child 6448: Starting thread to listen on port 80.

But...still nothing. I can't connect to anything under localhost. Nothing on http://localhost, http://localhost/xampp or http://localhost/xampp/phpinfo.php

UAC is disabled and I have administrator rights. I've run no cleanup stuff whatsoever.

Which php.ini XAMPP should use? the one under apache/bin or the one under php? I think that might be the problem. Even if i rename both php.ini files the service still starts normally... I guess it should fail to start if there's no php.ini file? Or is it using php5.ini then? Perhaps my computer thinks the php.ini file is somewhere where it isn't, then tries to load the page and fails. I'm thinking the Zend Studio + core + debugger left a mess on my computer. Does that make any sense? I checked the apache error.log but there's nothing different when starting the services without php.ini. Strange.
java_zz
 
Posts: 6
Joined: 15. March 2009 14:20

Re: Vista & xampp lite 1.70 - can't get started

Postby Izzy » 16. March 2009 23:48

Your error.log file is now normal.

Don't rename or delete any php.ini files in the XAMPP installation folder.

The php.ini file Apache uses is in the apache\bin folder and again should not be renamed or deleted.

Try
http://127.0.0.1/
http://127.0.0.1/xampp/
http://127.0.0.1/phpmyadmin
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Vista & xampp lite 1.70 - can't get started

Postby java_zz » 17. March 2009 07:22

I only renamed it to try out if that has any effect on the startup project. Just to see that it didn't. Of course I won't leave files "foo"-named. 127.0.0.1 is same as localhost, but I tried those locations with no luck. Any other suggestions?
java_zz
 
Posts: 6
Joined: 15. March 2009 14:20

Re: Vista & xampp lite 1.70 - can't get started

Postby Izzy » 17. March 2009 07:49

See this topic which is similar to yours and see what the OP had to do to fix it:
viewtopic.php?f=16&t=34049
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Vista & xampp lite 1.70 - can't get started

Postby java_zz » 17. March 2009 07:59

Izzy wrote:See this topic which is similar to yours and see what the OP had to do to fix it:
viewtopic.php?f=16&t=34049


I read it, unfortunately there wasn't any helpful information for me. I'm running the full install already. Anything more? The ultimate solutions would be to reinstall windows or buy a new computer but I'm not willing to go there.
java_zz
 
Posts: 6
Joined: 15. March 2009 14:20

Re: Vista & xampp lite 1.70 - can't get started

Postby Izzy » 17. March 2009 08:15

Have you tried disabling the Windows firewall temporarily, or ZoneAlarm if you use, then try again - I know you said you disable your f-secure thing but Windows firewall unless disabled could give problems perhaps - other than that, if as you say, you have tried all the fixes that have been posted on the forums for Vista then I have no more suggestions left.

Normally if your PC and system is running as it should then XAMPP will install and run out of the box and only a very few people have issues out of the many thousands who download and install per week.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Vista & xampp lite 1.70 - can't get started

Postby java_zz » 17. March 2009 09:17

Izzy wrote:Have you tried disabling the Windows firewall temporarily, or ZoneAlarm if you use, then try again - I know you said you disable your f-secure thing but Windows firewall unless disabled could give problems perhaps - other than that, if as you say, you have tried all the fixes that have been posted on the forums for Vista then I have no more suggestions left.

Normally if your PC and system is running as it should then XAMPP will install and run out of the box and only a very few people have issues out of the many thousands who download and install per week.


I don't have windows firewall enabled at all because f-secure has its own firewall. Too bad. : (
java_zz
 
Posts: 6
Joined: 15. March 2009 14:20

Re: Vista & xampp lite 1.70 - can't get started

Postby TwistedFate » 17. March 2009 20:07

Hey all, I'm having a similar problem. I had XAMPP 1.7 set up on this computer before, but had to do a reformat recently and now it won't load localhost. I'm using Vista Home Premium.

http://127.0.0.1/
http://127.0.0.1/xampp/
http://127.0.0.1/phpmyadmin

I can use http://127.0.0.1/ and get to to it but not when I try to use 'localhost' itself. I'm not terribly upset since I can access my stuff, but it's a puzzle I can't solve and I don't like not knowing the answers to questions.

Any ideas?
TwistedFate
 
Posts: 2
Joined: 17. March 2009 20:00

Re: Vista & xampp lite 1.70 - can't get started

Postby Izzy » 17. March 2009 23:02

TwistedFate wrote:...now it won't load localhost.

I can use http://127.0.0.1/ and get to to it but not when I try to use 'localhost' itself...
Your problem is slightly different to the OP as he can't even access using the 127.0.0.1 local loop back address.



To fix your issue, drag this file into your text editor (Notepad for example which should be opened by right clicking on it and selecting run as administrator):
C:\Windows\system32\drivers\etc\Hosts

Then look for this entry:
::1 localhost

Comment it out (or delete it) so it looks like this:
# ::1 localhost

Save the file and try and go once again to http://localhost which, for you, should now work.

Remember to always clear your browser's cache often when developing at localhost level or you may be served a cached page instead of a fresh page from the server.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Vista & xampp lite 1.70 - can't get started

Postby TwistedFate » 18. March 2009 05:31

Izzy wrote:To fix your issue, drag this file into your text editor


That did it. Thanks.
TwistedFate
 
Posts: 2
Joined: 17. March 2009 20:00

Re: Vista & xampp lite 1.70 - can't get started

Postby java_zz » 18. March 2009 22:44

Hey,

Know what? I finally fixed it. I ran a registry cleaner program. I found some keys pointing to Zend apache/bin somewhere else, even though I had removed all the Zend stuff using their own uninstaller. I think that was the problem. In total, 185 keys were deleted so I'm not actually sure but I'd definitely recommend anybody with similar problems just to run a registry cleanup. Especially if they ever had any webserver stuff installed before. If it messes up with xampp, you can always reinstall xampp. But if xampp isn't working in the first place, just go for it. Would have saved me a good ten hours if I'd have done it the in the beginning. The program I used is called "Free registry cleaner for Vista". And it was freeware. How imaginative :D

After I ran that, I got the same problem than the other guy posting here, could connect to 127.0.0.1 but not to localhost. Then I saw your fix and that worked for me too. So this is great. I had to go through a lot of trouble but finally things are working as they should! Thanks for the help, Izzy!
java_zz
 
Posts: 6
Joined: 15. March 2009 14:20

Re: Vista & xampp lite 1.70 - can't get started

Postby Izzy » 18. March 2009 23:03

Your welcome and I am pleased that you found what was giving you this issue and thanks for posting back to the forum with it.

Good luck.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Vista & xampp lite 1.70 - can't get started

Postby SpencerDub » 31. March 2009 21:12

Izzy wrote:Comment it out (or delete it) so it looks like this:
# ::1 localhost

I've been having the same problem, all of a sudden-- I can't access localhost, but http://127.0.0.1 works fine for me. I'm willing to give this fix a shot, but I'm curious-- in layman's terms, what does it do, and what sort of side effects might come about due to that change?
SpencerDub
 
Posts: 5
Joined: 25. February 2009 21:43

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 130 guests