Page 1 of 2

APACHE failed to install HELP (PROBLEM HAS BEEN RESOLVED)

PostPosted: 02. May 2009 08:42
by xx_princess_xx
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.

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 09:46
by Sharley
Can you see the XAMPP Welcome Page if you type http:/127.0.0.1 in your browser?

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 10:18
by xx_princess_xx
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

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 10:30
by Sharley
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?

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 10:55
by xx_princess_xx
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

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 11:04
by Sharley
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.

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 11:11
by xx_princess_xx
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

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 11:16
by Sharley
What version of XAMPP have you installed?

Is your XP with SP3?

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 11:22
by xx_princess_xx
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

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 11:40
by Sharley
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.

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 12:16
by xx_princess_xx
i followed your instructions but still no change, the localhost wont load

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 12:17
by xx_princess_xx
i will try restarting my pc to see if it might make a difference

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 12:29
by xx_princess_xx
by the way the SP number is 3

Re: APACHE failed to install HELP

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

Re: APACHE failed to install HELP

PostPosted: 02. May 2009 12:36
by Sharley
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.