hi,
i installed easyPHP on my windowsXP professional but it is giving an error " that apache can not be runned another web server is using the web port". is this problem due to partially installed IIS? how can it can be fixed?

Dani AI

Generated

The error means Apache cannot bind to the HTTP port because another program already holds it. raised the right suspicion about IIS; 's suggestion to run Apache on a different port is a valid quick fix (see how Apache listens on ports in the official docs). Changing the port is fine for local testing, but it forces you to include the port in URLs.

A better first step is to identify the process using the port so you can decide whether to stop it or reconfigure it. As suggested, inspect active ports. From an elevated Command Prompt run these commands and replace the PID shown with the actual number you get:

netstat -ano | findstr :80
tasklist /FI "PID eq 1234"

If tasklist is not available, use Task Manager or a GUI like TCPView to map PID to a process or service.

If the PID belongs to IIS or an unwanted service, disable it via Control Panel -> Add/Remove Windows Components (or stop it in Services.msc), then restart EasyPHP. If the port is used by another app you need, either reconfigure that app or run Apache on a different port and remember to include it in the URL. For a GUI port viewer, see TCPView (Sysinternals) and for Apache port configuration, see the Apache documentation on listening.

Recommended Answers

All 2 Replies

Hi there,
locate httpd.conf and change
Listen 80
to some other port number, for example
Listen 81

After starting up your Apache you'll be able to reach it via http://localhost:81

You can also try downloading a program called Active Ports that allows you to view all ports that are currently active.

Other than that use Pavel's suggestion.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.