XAMPP does not work on windows

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

XAMPP does not work on windows

Postby Kosenko » 07. December 2011 01:25

The following actually has NO effect whatsoever on my machine, Windows XP.

After coming back to the XAMPP installation after a while doing other things, i tried configuring it, but the instructions that I found for configuring an XAMPP side-by-side with Internet Information Server do not work.

In order to access XAMPP, I have to use localhost:8000. Changing settings in http.config have NO EFFECT.

After that I am unable to install any PHP programs in the HTDOCS folder. I was looking to install Drupal. But XAMPP will allow no access to the subdirectory.

From the behavior that I am getting, I have to conclude that it is worthless to try installing Apache/Xampp on windows.

**********
Instructions

"If you have IIS or another program using the default http port (80), you can change the default port for Apache by opening the config file (C:\xampp\apache\conf\httpd.conf) in a text editor and replacing the following entries:
•“Listen 80″ by “Listen 81″
•“ServerName localhost:80″ by “ServerName localhost:81"
Kosenko
 
Posts: 3
Joined: 07. December 2011 01:15
Operating System: Windows XP

Re: XAMPP does not work on windows

Postby Sharley » 07. December 2011 01:48

Can you start Apache and MySQL from the Control panel so they both are showing green running?

What clues if Apache can't start are in the \xampp\apache\logs\error.log file?

The port 80 showing in the control panel is hard coded and can be ignored.

BTW did you save the conf file and then try and restart Apache after editing?

Down near the end of the httpd.conf file you will find this section, add the comment character so it looks like this
Code: Select all
# Secure (SSL/TLS) connections
# Include "conf/extra/httpd-ssl.conf"
Save and try and restart Apache.

IIS also hogs port 443 the https port that will also prevent Apache from starting.
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: XAMPP does not work on windows

Postby Kosenko » 07. December 2011 01:50

And yes, I stopped and restarted the Apache service. It isn't that. It is that the settings are not "taking." But I'll look at the log.
Kosenko
 
Posts: 3
Joined: 07. December 2011 01:15
Operating System: Windows XP

Re: XAMPP does not work on windows

Postby Sharley » 07. December 2011 02:02

BTW you will always have to add the port number in a URL after changing the default port 80 setting - no way round that unless you change the ports in IIS.

For example:
http://localhost:8000
http://localhost:8000/drupal/index.php
Etc.

You will have to also configure Drupal to use the port 8000 for access.
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: XAMPP does not work on windows

Postby Kosenko » 08. December 2011 01:30

The issue here was that I had to set Apache to listen on port 8000 in order to get it to work with Windows Firewall. That is where the localhost:8000 is coming from. Whatever is set in the httpd.conf file has no effect whatsoever in enabling localhost.

The next issue is that I cannot get Apache to recognize ANY subdirectories except /XAMPP. In other words, the installation turns out to be completely useless for testing other PHP applications like Drupal, since it keeps giving an "object" or "URL" not found error.

C:/xampp/htdocs/xampp installation always defaults to this

C:/xampp/htdocs/drupal7 (apache will not recognize)

C:/xamp/htdocs/xamp/drupal7 (moved to test . . . apache will not recognize).

XAMPP on Windows appears to be useless.
Kosenko
 
Posts: 3
Joined: 07. December 2011 01:15
Operating System: Windows XP

Re: XAMPP does not work on windows

Postby Altrea » 08. December 2011 01:43

Kosenko wrote:C:/xampp/htdocs/drupal7 (apache will not recognize)

Are you sure, you request the correct URL?
All HTTP errors will be logged in your \xampp\apache\logs\error.log file. Please check that file for your "404 - file not found" errors
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8294
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: XAMPP does not work on windows

Postby Sharley » 08. December 2011 01:46

Kosenko wrote:The issue here was that I had to set Apache to listen on port 8000 in order to get it to work with Windows Firewall. That is where the localhost:8000 is coming from. Whatever is set in the httpd.conf file has no effect whatsoever in enabling localhost.
If you changed the Listen directive to Listen 8000 then http://localhost:8000/xampp/index.php will give you the XAMPP Welcome page provided that Apache and MySQL are running after clicking on Start in the control panel.

C:\xampp\apache\logs\error.log file will give clues if this is not the case.

Kosenko wrote:The next issue is that I cannot get Apache to recognize ANY subdirectories except /XAMPP. In other words, the installation turns out to be completely useless for testing other PHP applications like Drupal, since it keeps giving an "object" or "URL" not found error.
And again the error.log file is where you will find the clue for these types of errors.
http://localhost:8000/drupal7/subdirectory will find the index file in the subdirectory if the folder structure resembles C:\xampp\htdocs\drupal7\subdirectory
Try renaming or deleting the index.php and index.html found in the htdocs folder.

You have to use an http:\\ URI to see php files not typing a path.

It would help if you told us what you are typing in the browser to access these folders.
Kosenko wrote:C:/xampp/htdocs/xampp installation always defaults to this

C:/xampp/htdocs/drupal7 (apache will not recognize)

C:/xamp/htdocs/xamp/drupal7 (moved to test . . . apache will not recognize).
BTW you can't put Drupal or any other file or folder in the XAMPP system folder C:\xampp\htdocs\xampp as this is protected and will give a 403 error.

Kosenko wrote:XAMPP on Windows appears to be useless.
Only for you and not for the millions of other successful XAMPP users who had it working right 'out of the box'. :shock:


New users can find self help by reading these first:
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


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 65 guests