APACHE failed to install HELP (PROBLEM HAS BEEN RESOLVED)

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

APACHE failed to install HELP (PROBLEM HAS BEEN RESOLVED)

Postby xx_princess_xx » 02. May 2009 08:42

I am running on Windows XP,

I have installed XAMPP from the installer and saved it in D drive

Once the installation is over a message says

Ports 80 or 443 are in use. Appache failed to install.
However when i click xampp-portcheck all the ports are free.

On the control panel i have both apache and mysql running with both boxes ticked. Then when i check the ports it says xampp\apache\bin\httpd.exe is in port 80 and 443.

My SQL is running fine. Just appache wont install.

When i go on http://localhost the page keeps loading and loading

My firewall is turned off, I do not have Skype

I have been having this problem for a couple of days now and cant seem to get it to work, any help will be appreciated i need this to work for my university dissitation project so please help.

Thanks for any help in advance.
Last edited by xx_princess_xx on 07. May 2009 15:18, edited 1 time in total.
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby Sharley » 02. May 2009 09:46

Can you see the XAMPP Welcome Page if you type http:/127.0.0.1 in your browser?
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: APACHE failed to install HELP

Postby xx_princess_xx » 02. May 2009 10:18

thanks for your help

i typed this is
http:/127.0.0.1

and realised is it supposed to be
http://127.0.0.1
so i typed that in and...

..the browser doesnt do anything it just keeps loading, even i leave it for 5 or 10 minutes the page is still loading
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby Sharley » 02. May 2009 10:30

Sorry about that it was a typo.


You are sure that Apache is running?

Try and Stop Apache in the XAMPP Control Panel and then start it using the apache_start.bat file in the xampp folder and see if there is an error message.

Have you tried to uninstall then reinstall XAMPP again several times?
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: APACHE failed to install HELP

Postby xx_princess_xx » 02. May 2009 10:55

apache is running

i stopped apache in the control panel and it stopped

i then used apache_start.bat file nothing happened but the folder closed down

i checked the error message this was the last message

[Sat May 02 10:51:33 2009] [notice] Parent: Child process exited successfully.

and yes i have uninstalled and reinstalled a lot of times

thanks for your help
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby Sharley » 02. May 2009 11:04

Try this:
Stop Apache in the XAMPP Control Panel then run the xampp\apache\apache_uninstallservice.bat file.

Then try and start Apache again in the XAMPP Control Panel.

The try http://localhost again.


If that fails then Stop Apache in the XAMPP Control Panel and then go to:
Start>Run...
Type:
sc delete apache2.2
Click OK

Then Start Apache again then try http://localhost again.


If that fails to work you may have to do another install but I will walk you through it this time so we have a clean start with the fresh install.
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: APACHE failed to install HELP

Postby xx_princess_xx » 02. May 2009 11:11

i did everything you said and still when i try the localhost link the page just keeps loading same as before

the bat files you told me to run, i dont see anything happening is somthing supposed to happen, all that happens is that folder thing shuts down
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby Sharley » 02. May 2009 11:16

What version of XAMPP have you installed?

Is your XP with SP3?
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: APACHE failed to install HELP

Postby xx_princess_xx » 02. May 2009 11:22

http://www.apachefriends.org/en/xampp-windows.html this is the version of xampp i downloaded

i dont know if my xp is with sp3, how can i find out
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby Sharley » 02. May 2009 11:40

i dont know if my xp is with sp3, how can i find out
Go to your Windows Control Panel and click on the System icon which will open the System Properies window - look under the heading System: for the Service Pack (SP) number which will be any of 1, 2 or 3.



OK, we will uninstall and reinstall version 1.7.1 of XAMPP but we will use a different method to the Installer version as this installer has been known to give issues with XP.

You are logged into XP with administrator privileges and not simply a user?

First stop Apache and MySQL in the XAMPP Control Panel.

Next close the Control Panel.

Click on Start in the Task Bar then click on Run...

Type
sc delete apache2.2
Click OK

Then type
sc delete mysql
Click OK.

These will close very quickly but will do the job of removing any registry entries that may be sticking and giving us issues.

There may also be an XAMPP uninstaller that you can run now and before deleting the xampp folder.

Next delete the xampp folder completely.

Open the Task Manager by right clicking on the Task Bar and selecting Task Manager from the context menu.

Next click on the Processes tab and look for httpd.exe or apache.exe and mysqld.exe - if you find any of those files then click on them and then click on the End Process button, click Yes when asked the question.

If non of the files in the list then close the Task Manager.


Now download the EXE (7zip) self extracting version of XAMPP.

Double click on the file and select to extract to the C:\ drive and it will extract to C:\xampp and place all the files in their correct locations.

Next run setup_xampp.bat file in the xampp folder and it will set all the paths correctly for you.

Now open the xampp-control.exe file in the xampp folder and click on start Apache and MySQL.
You can create a shortcut to this file on your Desktop for easier use later.

You should now be able to go to http://localhost and after selecting your language you will be able to test the installation by running the demos.

Please let me know back if you finally have it working.
Thanks.
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: APACHE failed to install HELP

Postby xx_princess_xx » 02. May 2009 12:16

i followed your instructions but still no change, the localhost wont load
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby xx_princess_xx » 02. May 2009 12:17

i will try restarting my pc to see if it might make a difference
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby xx_princess_xx » 02. May 2009 12:29

by the way the SP number is 3
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby xx_princess_xx » 02. May 2009 12:31

I have just restarted my pc and still no luck, thanks for your help is there anything else i can try?
xx_princess_xx
 
Posts: 15
Joined: 02. May 2009 08:31

Re: APACHE failed to install HELP

Postby Sharley » 02. May 2009 12:36

Nearly running out of things to try ;)

Open C:\Windows\system32\drivers\etc\Hosts file in your text editor like notepad.

Look for this line:
127.0.0.1 localhost

If it is not there then add it and it should be the first line after all the commented lines.

Also if you see this line:
::1 localhost

then add a comment so it looks like this:
# ::1 localhost

Now the first 2 lines after all the commented lines should be:
127.0.0.1 localhost
# ::1 localhost

Save the file and try access localhost again.
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

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 62 guests