Hot Article
- Centos7 closes and restarts the system firewall and opens firewall ports
- How IID server uses Xshell to connect to Linux (centos) server
- BT panel forgets the background login URL, and the solution to the security entrance verification failure
- The php domain name points to ip, how to use the specified ip address to access a server in the url request domain name in curl mode
- How to purchase a dedicated server
- Error connecting to MySQL: Cant connect to MySQL server (10060)
How to do if phpstudy port 80 is occupied (perfect solution)
- Author:Sven
- Category:Server Maintain
- Release Time:2023-03-09
If you find that port 80
is occupied when you start phpstudy
, you can follow the steps below:
-
First, open a Command Prompt (Windows) or Terminal (macOS/Linux) with administrator privileges.
-
Enter the following command to view the processes currently using port
80
:netstat -ano | findstr :80
-
If the port is already in use, the corresponding process ID (PID) is displayed.
-
Enter the following command to kill the process:
taskkill /pid PID /f
Where PID is the process ID shown in step 3.
-
Start
phpstudy
again and confirm that port80
has been released.
If the above methods do not solve the problem, you can try to modify the port number used by phpstudy
. In the main interface of phpstudy
, select “Settings”->“Apache”, modify “HTTP port” to an unoccupied port number, such as 8080 code>, save and restart
phpstudy
.
related topic
- Windows firewall settings only allow specified IPs to access specified ports
- What should I do if I lose connection to the game server of Legend M international service? (Detailed solution)
- How to modify the remote port in CentOS 7 and 8
- centos7 open and close 80 port tutorial
- How to change the password of Windows server 2008 server?
- windows timer task settings (with shutdown restart command)