apache not starting

I have stopeed iis completely  but I see that port 80 is still used as attached in the screen.

so apache is not starting.

I also tried the following in httpd.conf but it did not work:

Listen 8080

ServerName localhost:8080

please help!
Dinesh KumarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
I don't think that stopping IIS is enough.  I think that it still owns port 80 as long as it is installed.  It also doesn't do any good to change the IP address IIS uses, it still hogs port 80.

To change Apache to Listen 8080, you may have to restart the machine, not just the web server.
Chris StanyonWebDevCommented:
Your graphic shows that a process with the PID of 4 still has hold of port 80. Have a look at the task manager (or run tasklist from command prompt) and it'll show you which application is running with a PID of 4. May help you track things down
Seth SimmonsSr. Systems AdministratorCommented:
PID 4 is system

open the registry and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP
on the right double-click Start and change the value to 4 and reboot

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Dinesh KumarAuthor Commented:
DaveBaldwin: I tried restarting the computer but no use

seth2740: PID 4 is system ( If I change the value to 4 and reboot My .net related program will continue? I mean its safe , please confirm)
Seth SimmonsSr. Systems AdministratorCommented:
yes...it's probably coming from windows remote management service or something related to that
i have the same service on my system and is disabled
Dinesh KumarAuthor Commented:
Yes seth2740,  port issue resolved.

It still says now:
07:07:32  [Apache]       Apache Service detected with wrong path
07:07:32  [Apache]       Change XAMPP Apache and Control Panel settings or
07:07:32  [Apache]       Uninstall/disable the other service manually first
07:07:32  [Apache]       Found Path: "Z:\xampp\apache\bin\httpd.exe" -k runservice
07:07:32  [Apache]       Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
reason being Once(some previous time say one month back) I installed xampp in Z directory but to remove the error in the current comment ,I deleted the xampp folder in Z drive I am not sure How its still looking for that path? (and yesterday I again installed the xampp in c drive)

please see the attachment.
Dave BaldwinFixer of ProblemsCommented:
I found quite a few entries in the registry for XAMPP and several ones like this for Apache that had an 'image path' listed.


If you can't change it from the service panel, you may have to edit the registry to get rid of the paths to 'Z:'.
Dinesh KumarAuthor Commented:
Thank you!
Dave BaldwinFixer of ProblemsCommented:
You're welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.