Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that the installation PHP port is occupied

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to solve the problem that the installation of PHP ports is occupied". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Install PHP port occupied solution: 1, enter the cmd command in the "run"; 2, enter "netstat-ano" to view the port occupancy; 3, find the process occupying the port in the process manager; 4, release the occupation.

This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.

What happened when the installation PHP port was occupied?

The solution to the occupation of Port 80 in erecting PHP Server

When you encounter the problem that apache cannot be started, consider two points first:

1. Apache configuration errors are common in students who change the apache configuration file (httpd.conf) without authorization.

2. Port occupation. At this time, students should close all programs that may occupy port 80, such as Xunlei, because the default port of wamp is port 80, which is the most common on the server.

Note: if you install wamp multiple times, delete the excess wamp or you will not be able to start.

Steps:

One: check what process occupies port 80

1. Start "program" run "enter cmd command" press enter key to start "program" run "enter cmd command" press enter key

The above interface appears

two。 Enter netstat-ano in the black window to check the port occupancy

Then in front of us will be a long list of local addresses such as 127.0.0.1 987 in the first column, the IP address in the front string, and the port being occupied after the colon. We need to find the line on port 80 and write down his PID. For example, in the line of port 445 in my picture, his pid is 4.

Two. find the process that occupies the port in the process manager

1. Start the program to run taskmgr to open the process manager

There is no PID in the process tab. Workaround: check the "Select column"

Just check PID.

Result

III. Removal of occupation

1. If the application occupies the port, you can end the process directly

two。 If the system process occupies the port

This process cannot be terminated, which will cause a blue screen or shutdown. The solution is:

Type: RegEdit in the input box of CMD, enter enter

Find HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ HTTP

Find a DWORD value Start and change it to 0

Restart the computer, OK, the System process will not occupy port 80.

This is the end of the content of "how to solve the problem of installing PHP port occupied". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report