You can change the port number in the "Settings" tab of PHPstudy: 1. Find the "Server" section; 2. Enter the port number you want to use; 3. Save the changes and restart PHPstudy; 4. Verify the changes in your browser using localhost and the new port number.
![How to change the port number in phpstudy](https://img.php.cn/upload/article/202404/02/2024040216271521981.jpg)
How to change the PHPstudy port number
Step 1: Open the PHPstudy panel
- In Windows, double-click the PHPstudy icon or launch it from the Start menu.
Step 2: Go to Settings tab
- In the PHPstudy panel, click on the Settings tab.
Step 3: Find the Server section
- On the settings page, scroll down to the Server section.
Step 4: Change the port number
- Under the Server section, find the Port field.
- Enter the port number you want to use. Common port numbers are 80, 8080, or a custom port such as 12345.
-
NOTE: Make sure the new port number is not in use by another application.
Step 5: Apply changes
- Click the Save button to apply the changes.
Step 6: Restart PHPstudy
- Click the "Restart" button to restart PHPstudy for the changes to take effect.
Step 7: Verify Port Number
- To verify that the changed port number has been applied, use a web browser to visit your local website .
- In the browser address bar, enter:
http://localhost:<new_port_number>
- If the website loads successfully, the new port number has been successfully applied.
The above is the detailed content of How to change the port number in phpstudy. For more information, please follow other related articles on the PHP Chinese website!