search
Homephp教程php手册WampServer修改端口及菜单Localhost,

WampServer修改端口及菜单Localhost,

一、修改Apache端口

 

1、在界面中选Apache,弹出隐藏菜单选项,打开配置文件httpd.conf;

2、找到 Listen 80;

3、将 80 改成 8080(当然自己也可以设定别的不使用的端口);

4、保存,待重启Wamp服务后即可。

 

二、修改Wamp打开默认页 Localhost 和 phpMyadmin 的端口

 

1、打开wamp目录下wampmanager.tpl文件

2、找到

Parameters: "http://localhost/"; Glyph: 5

Parameters: "http://localhost/phpmyadmin/"; Glyph: 5 

3、改成

Parameters: http://localhost:8080/; Glyph: 5

Parameters: "http://localhost:8080/phpmyadmin/"; Glyph: 5

改好之后要退出Wamp,重新打开启动配置才会生效,我开始直接重启服务就没用。

 

三、修改phpmyadmin的默认密码

 

1、进入安装盘符下Wamp/apps下的phpmyadmin文件夹

2、打开config.inc文件

3、找到

$cfg['Servers'][$i]['user'] = 'root';

$cfg['Servers'][$i]['password'] = '这里填写你的密码';

4、修改好你的密码,保存即可。

 

四、如何配置改变Apache首页文件名

 

当你输入例如 http://localhost 时,Apache会默认打开index.html文件,如果你想修改首页文件或者增加首页文件时,打开httpd.conf,找到DirectoryIndex index.html,修改index.html为你想要文件名即可,比如test.php。如果你想添加多个首页文件,可以用空格隔开,文件的前后顺序就是首页文件读取的优先度。修改后重启Apache服务!

» 本文链接:吴文辉博客 » http://www.wuwenhui.cn/3047.html

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software