When port 80 of PHPStudy is occupied: Use the command to find the process ID of the program occupying the port. End the program occupying the port. Set a new port for PHPStudy. Restart Apache. Verify that port 8080 is available. Access the PHPStudy website via http://localhost:8080.
PHPStudy port 80 is occupied Solution
When PHPStudy cannot use port 80, it usually means that the port has been occupied occupied by other programs. The steps to solve this problem are as follows:
1. Find the program that is occupying the port
<code>netstat -aon | findstr :80</code>
2. End the occupied program
<code>taskkill /pid <PID> /f</code>
<PID>
is the process ID of the occupying program. 3. Configure a new port for PHPStudy
4. Restart Apache
5. Verify that the port is available
<code>netstat -aon | findstr :8080</code>
6. Visit the PHPStudy website
<code>http://localhost:8080</code>
The above is the detailed content of How to solve the problem that phpstudy80 port cannot be used. For more information, please follow other related articles on the PHP Chinese website!