How to modify Apache's port number with PhpStudy (picture)

不言
Release: 2019-04-01 09:16:10
forward
5841 people have browsed it

The content of this article is about the method of modifying the port number of Apache in PhpStudy (picture). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

phpStudy is a program integration package for PHP debugging environment. This package integrates the latest Apache PHP MySQL phpMyAdmin ZendOptimizer. It can be installed once and can be used without configuration. It is a very convenient and easy-to-use PHP debugging environment. In the Apache website server, if port 80 is occupied, the Apache server may fail to start. You can use PhpStudy to modify the port number of the Apache server, such as changing it to port 8080.

(1) Find the Apache configuration file httpd-conf file.

First start PhpStudy, then select Other options menu in the lower right corner of the interface, click and select the submenu Open the configuration file, and select httpd-conf , as shown below:

(2) In the opened httpd-conf file, find port 80, and you can find the following setting item

#Listen 12.34.56.78:80
Listen 80 //This sentence means: tell Apache to listen to port 80

At this time, change port 80 to the port number you need to set, such as Port 880 or port 8080.

(3) After the modification is completed, save the file, then return to the initial interface of phpstudy and restart the service.

(4) If the port number of Apache is not port 80, when debugging the local website, you must add the port number to the URL address. If it is set to port 808, you need to use: 127.0 for local debugging. 0.1:808 or localhost:808

The above is the detailed content of How to modify Apache's port number with PhpStudy (picture). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template