Page 1 of 2

Installing Apache 2.2 service failed. (Win7) 1.7.7 [SOLVED]

PostPosted: 29. November 2011 12:01
by Halas
Someone from the community please help me!
When i instal XAMPP v.1.7.7 it showing me this error Image

When i try to go to the localhost it showing 403 Forbidden

Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 Server at localhost Port 80


Help me please, what is wrong?

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 12:16
by Sharley
Go to the xampp folder and double click on xampp-control-3-beta.exe and when the new version 3 control panel opens click on the Netstat button and see what is using port 80 and 443.

If it is Skype then open Skype configuration connection options and remove the tick next to use port 80 and 443 ...

It may be the default Windows web server IIS or World Wide Publishing Service that would need to be disabled using the Windows Control Panel.

If it is something else then you will need to disable what ever is using those ports as Apache needs them to be able to Start.

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 12:31
by Halas
Ports 80 and 443 are used by httpd.exe
What is that?

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 12:36
by Sharley
Do you have another web server running, perhaps a failed reinstall of XAMPP?

Did you try and install XAMPP more than once?

In the control panel is Apache and MySQL showing running?

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 12:39
by Halas
I removed xampp and instaled it again in xampp2 folder, but when i try to delete some files from first xampp folter it wont let me do it so i instaled it in xampp2 folder.

Also, control panel is not showing them.

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 12:45
by Sharley
You will have to get rid of your first failed installation from the xampp folder.

You may have to reboot to be able to delete the xampp folder as you did not uninstall the Apache Windows service before trying to delete the folder.

First in your xampp2 installation using the control panel try and remove the ticks in the Services column by clicking on them and then agreeing to uninstall the service.

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 12:49
by Halas
Is there any chance to do it without reeboting?
Thanks.

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 12:53
by Sharley
Open the Task Manager and in the Processes tab find httpd.exe (there should be 2) and highlight and Kill those processes - you may have to right click on the Task Manager and run as an admin.

Also find mysqld.exe and Kill it also.

Close the Task Manager and try and delete the xampp folder.

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 12:59
by Halas
I am using windows 7 and there is noxttpd.exe and mysqld.exe running.
I will do system reboot if there is no other options.
Thanks Sharley.

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 13:06
by Sharley
Open a command prompt, again as an administrator and type:
sc delete apache2.2
click OK

Then the same for MySQL
sc delete mysql
Click Ok

This should remove the reference to the installed services in the registry and allow you to delete the xampp folder.

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 13:17
by Halas
Access denied

Image

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 13:20
by Sharley
You need to be an admin or use an elevated command prompt - this is Microsoft's nanny at it's best. :)

http://downloadsquad.switched.com/2009/ ... -anywhere/

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 13:26
by Halas

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 29. November 2011 13:33
by Sharley
Please try and keep your image size no wider than 800 and 600 high, thanks.

Did you try typing those commands in the elevated console window?

I don't have win7 so you will have to try and adapt using your skills. ;)

It is important with anything XAMPP that your run stuff as an administrator not as an ordinary user or you will always have access denied issues.

Re: Installing Apache 2.2 service failed. HELP!

PostPosted: 09. December 2011 10:33
by JamieEff
I am having a similar problem.

Am trying to reinstall XAMPP but getting 'ports 80 or 442 (SSL) already in use!' on installation.

Have tried to delete and this has been successful for the mysql but not apache 2.2 - when I try to delete apache 2.2 I get the following: OpenService FAIELD 1060: The specified service does not exist as an installed service

Thanks in advance for yuour help

Jamie