XAMPP是一个免费的开源工具,主要用于在您的计算机上创建站点的本地副本以进行测试。这是一个轻量级的跨平台应用程序,让 Web 开发人员可以非常简单地测试其插件、主题和其他内容。Xampp 附带Apache和MySQL,这是其安装的两个主要组件。Apache用于创建本地服务器,而您可以使用MySQL在本地服务器上管理或保存网站的数据。
该服务器用于测试PHP页面。它允许您创建一个本地网络服务器,您可以在其中测试任何插件、主题和其他东西,然后再将它们应用到实时WordPress网站上。这样您就可以保护您的WordPress网站免受潜在错误的影响。因此,让我们开始了解在Windows 11/10XAMPP的正确方法。
如何在Windows 111/0XAMPP
打开您的网络浏览器并前往Apache Friends下载页面(downloads page)。在下一页上,下载适用于您的 Windows 10 PC 的相应版本。
下载后,导航到文件资源管理器的下载文件夹并(File Explorer)启动XAMPP安装程序。
如果屏幕上出现“用户帐户控制(User Account Control)”提示,请单击“是”(Yes)按钮以表示同意。
在此期间,可能会出现警告消息。当您单击OK按钮时,它会在屏幕上打开XAMPP 安装向导。(XAMPP Setup Wizard)然后点击下一步(Next)按钮继续。
在下一个屏幕上,您需要为安装过程选择各种组件。
由于这些选项对于运行软件至关重要,因此请保持原样并单击“下一步”(Next)按钮。
然后(Thereupon),选择要安装XAMPP文件的文件夹位置。
顺便说一句,我们建议您使用默认安装位置。然后点击下一步(Next)按钮。
由于Windows版 XAMPP 控制面板(XAMPP Control Panel)支持不同的语言,因此请选择您喜欢的语言并单击Next。
在Bitnami for XAMPP页面上,只需点击Next按钮。如果您想了解Bitnami ,请选中(Bitnami)Learn more about Bitnami for XAMPP旁边的复选框。
现在设置已准备好在您的设备上开始安装过程,因此再次单击“下一步”(Next)按钮继续。
在这里您可能需要等待一段时间才能完成安装。
正确安装后,系统会提示您一个窗口,询问您“您要立即启动控制面板吗?” (“Do you want to start the Control Panel now?”).
选中复选框并单击完成(Finish)按钮。
如何在Windows 11/10XAMPP
要在Windows 11/10上配置XAMPP,您可能需要以管理员身份运行XAMPP应用程序。(XAMPP)
因此,单击“开始(Start)”按钮并键入 XAMPP。
这样做,“XAMPP 控制面板”(“XAMPP Control Panel”)开始出现在最佳匹配中。现在右键单击它并选择Run as administrator。如果UAC请求您的许可,请单击是(Yes)按钮。
当XAMPP 控制面板打开时,您将在(XAMPP Control Panel)模块(Module)部分下看到 Web 服务列表。
在这里,您首先必须通过单击“操作(Actions)”部分下可用的相应开始(Start)按钮来激活Apache和MySQL服务。(MySQL)
在这里,您首先必须通过单击Actions列下可用的相应Start按钮来激活Apache和MySQL服务。(MySQL)
一旦您单击“开始(Start)”按钮,相应服务的PID和端口(Port)号就会变得可见。此外,“模块(Module)”部分下的相应服务变为绿色。
同样,如果需要,您也可以启动其他服务。
要访问每项服务的管理仪表板,请单击相关的管理(Admin)按钮。
在页面的右端,您将看到一个选项列表,例如Config、Netstat、Shell等。这些选项帮助您配置XAMPP 控制面板(XAMPP Control Panel)的不同方面。
单击配置(Config)按钮打开控制(Control)面板的配置窗口。
选中要在启动应用程序时自动启动的模块的复选框。(Modules)然后,单击“保存(Save)”按钮以保存更改。
在Config(Config)按钮旁边,您会找到Netstat按钮。单击此按钮可提供当前正在访问网络的服务列表。
它由可执行文件名、进程 ID 信息、端口号和它们各自的TCP/IP地址组成。
XAMPP控制面板(Control Panel)还为您提供每个特定服务的日志部分。当出现问题且功能无法正常工作时,这是您选择检查的第一个服务。
就是这样。我希望在阅读本指南之后,您现在可以很容易地在 Windows 11/10 上安装和配置XAMPP 。
相关(Related):Apache 不是从 XAMPP 控制面板启动的(Apache is not starting from XAMPP Control Panel)。
How to install and configure XAMPP on Windows 10
XAMPP is a free and open-source tool that is basically used to create a local copy of the site on your computer for testing purposes. This is a lightweight and cross-platform application that makes it quite simple for web developers to test its plugins, themes, and other things. Xampp comes with Apache and MySQL which are the two main components for its installation. Apache is used to create a local server while you can use MySQL to manage or save data on a local server for the website.
This server is used to test PHP pages. It lets you create a local webserver where you can test any plugins, themes, and other things before applying them on the live WordPress site. That way you can protect your WordPress site from getting potential errors. So, let’s get started and know the proper method to install and configure XAMPP on Windows 11/10.
How to Install XAMPP on Windows 111/0
Open your web browser and head over to the Apache Friends downloads page. On the next page, download the respective version for your Windows 10 PC.
Once it gets downloaded, navigate to the download folder of the File Explorer and launch the XAMPP installer.
If User Account Control prompts on the screen, click on the Yes button to give your consent.
During this, a warning message may come to appear. As you click on the OK button, it opens the XAMPP Setup Wizard on the screen. Then hit the Next button to proceed.
On the next screen, there are a variety of components that you need to select for the installation process.
Since these options are essential to run the software, therefore leave it as it is and click on the Next button.
Thereupon, select the folder location where you want to install the XAMPP files.
By the way, we recommend you use the default installed location. And then hit the Next button.
Since XAMPP Control Panel for Windows supports different languages, so select your preferred language and click Next.
On the Bitnami for XAMPP Page, just hit the Next button. In case you want to know about the Bitnami, then select the checkbox next to Learn more about Bitnami for XAMPP.
Now the setup is ready to start the installation process on your device, so again click the Next button to proceed.
Here you may need to wait for a while until it completes the installation.
After the proper installation, you will be prompted with a window asking you “Do you want to start the Control Panel now?”.
Select the checkbox and click on the Finish button.
How to Configure XAMPP on Windows 11/10
To configure the XAMPP on Windows 11/10, you may need to run the XAMPP application as an administrator.
So, click on the Start button and type XAMPP.
Doing this, the “XAMPP Control Panel” starts appearing in the best match. Now right-click on it and select Run as administrator. If UAC asks you for permission, click on the Yes button.
When the XAMPP Control Panel opens, you will see a list of web services under the Module section.
Here you first have to activate the Apache and MySQL services by clicking on the respective Start button that is available under the Actions section.
Here you first have to activate the Apache and MySQL services by clicking on the respective Start button that is available under the Actions column.
As soon as you click on the Start button, the PID and the Port number of the corresponding services become visible. Also, the respective services under the Module section turn out green.
Likewise, you can also start the other services if you need them.
In order to access the administration dashboard for every single service, click on the related Admin button.
On the right end of the page, you will see a list of options such as Config, Netstat, Shell, and others. These options help you to configure different aspects of the XAMPP Control Panel.
Click on the Config button to open the configuration window of the Control panel.
Select the checkbox of the Modules which you want to start automatically when you launch the application. Then, click on the Save button to save the changes.
Next to the Config button, you will find the Netstat button. Clicking on this button provides a list of services that are currently accessing the network.
It consists of the executable file name, process ID information, port number, and their respective TCP/IP address.
XAMPP Control Panel also offers you a log section of each specific service. It is the first service you choose to check out when something is wrong and the function doesn’t work properly.
That’s it. I hope after reading this guide, it has now become pretty easy for you to install and configure the XAMPP on your Windows 11/10.
Related: Apache is not starting from XAMPP Control Panel.