Page 1 of 1

XAMPP does not work on windows

PostPosted: 07. December 2011 01:25
by Kosenko
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"

Re: XAMPP does not work on windows

PostPosted: 07. December 2011 01:48
by Sharley
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.

Re: XAMPP does not work on windows

PostPosted: 07. December 2011 01:50
by Kosenko
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.

Re: XAMPP does not work on windows

PostPosted: 07. December 2011 02:02
by Sharley
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.

Re: XAMPP does not work on windows

PostPosted: 08. December 2011 01:30
by Kosenko
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.

Re: XAMPP does not work on windows

PostPosted: 08. December 2011 01:43
by Altrea
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

Re: XAMPP does not work on windows

PostPosted: 08. December 2011 01:46
by Sharley
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