IDGlobalGLOBAL INFRASTRUCTURE

How to do if phpstudy port 80 is occupied (perfect solution)

If you find that port 80 is occupied when you start phpstudy, you can follow the steps below:

  1. First, open a Command Prompt (Windows) or Terminal (macOS/Linux) with administrator privileges.

  2. Enter the following command to view the processes currently using port 80:

    netstat -ano | findstr :80
  3. If the port is already in use, the corresponding process ID (PID) is displayed.

  4. Enter the following command to kill the process:

    taskkill /pid PID /f

    Where PID is the process ID shown in step 3.

  5. Start phpstudy again and confirm that port 80 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.

Online Service

Live Chat