当前位置:网站首页>Set up your own website (14)
Set up your own website (14)
2022-06-24 20:22:00 【probezy】
In the last article , We installed the modification on the local computer WordPress Required to run the file VS Code Software , Let's be able to WordPress To modify the operation file , So that it can be accessed by remote visitors , Point to our local web page correctly . It should be noted that , Since this introduction involves modifying the software operation documents , So you have to be very careful , Prevent mistakes and omissions . Don't talk much , Let's take a look at how to modify the software operation document .
Start by opening VS Code Software , Select... From the taskbar above the software “ Open folder ”, basis WordPress Installation path for , find wp-config.php file . Here's a tip , If the system fails to display all file extensions , Can be found at the top of the folder “ see ” In the options , take “ File extension ” Check , The extension of the file will be displayed .

In this case , Because of our WordPress All files in the web site , Already pasted to PHPStudy Of WWW In the folder , So we need to take this path , find WordPress Configuration file for .

next , We use VS Code open wp-config.php file , Insert the command line at the position shown , church WordPress Guide the public network access to the outward display URL On . In the first use VS Code When opening a file , A permission query box will pop up , We just need to select the corresponding permission .

After opening wp-config.php file , It looks like this

It looks like this , It already has the style of a programmer ~ But here's the thing , This file is WordPress The basis of normal operation , Therefore, you must not make random changes , Just find the part we need to modify and add the code .
First , The code we need to add is shown below ( As the input code has requirements for case and symbol , Therefore, it is recommended to copy and paste directly )
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);And the insertion position , As shown in the figure below :

After the modification is completed , It's like this

After the modification , We choose the one in the upper left corner “ file ” Options , Click on “ preservation ” that will do .

Now our WordPress You can apply for visits from other visitors , The right response . Of course , Our website has not set up the corresponding output port , There is no corresponding domain name , Therefore, visitors outside the local computer can not correctly access our web page . And these things , We will introduce it later , Continue to explain . If you are right about cpolar Have any questions , Welcome to contact us , We will certainly provide you with assistance within our ability . Of course, you are welcome vip Customer join cpolar Official group , Explore together cpolar The infinite potential of .
边栏推荐
- Byte and Tencent have also come to an end. How fragrant is this business of "making 30million yuan a month"?
- [go Language brossage] go from 0 to Getting started 4: Advanced use of slice, Primary Review and Map Getting started Learning
- JVM tuning
- redis数据结构之压缩列表
- Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme
- Obstacle avoidance sensor module (stm32f103c8t6)
- Map跟object 的区别
- unity之模糊背景(带你欣赏女人的朦胧美)
- Accurate calculation of task progress bar of lol mobile game
- Bytebase加入阿里云PolarDB开源数据库社区
猜你喜欢

Material management system based on SSM (source code + document + database)

Bytebase joins Alibaba cloud polardb open source database community

Bytebase 加入阿裏雲 PolarDB 開源數據庫社區

Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme

实现基于Socket自定义的redis简单客户端

Win7 10 tips for installing Office2010 five solutions for installing MSXML components

R for Data Science (notes) -- data transformation (used by filter)

Cooking business experience of young people: bloggers are busy selling classes and bringing goods, and the organization earns millions a month

"Super point" in "Meng Hua Lu", is the goose wronged?

Camera module and hardware interface of Camera1 camera
随机推荐
Install the custom module into the system and use find in the independent project_ Package found
Ribbon源码分析之@LoadBalanced与LoadBalancerClient
Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme
unity之模糊背景(带你欣赏女人的朦胧美)
图的基本概念以及相关定义
gateway
【CANN文档速递05期】一文让您了解什么是算子
[cann document express issue 06] first knowledge of tbe DSL operator development
Using dynamic time warping (DTW) to solve the similarity measurement of time series and the similarity identification analysis of pollution concentration in upstream and downstream rivers
Some small requirements for SQL Engine for domestic database manufacturers
Clustered index (clustered index), nonclustered index (nonclustered index)
Error in Android connection database query statement
Coinbase将推出首个针对个人投资者的加密衍生产品
华为云ModelArts第四次蝉联中国机器学习公有云服务市场第一!
网络安全审查办公室对知网启动网络安全审查,称其“掌握大量重要数据及敏感信息”
Dongyuhui is not enough to bring goods to "rescue" live broadcast
视频平台如何将旧数据库导入到新数据库?
Methods for comparing float types in the kernel
The largest DPU manufacturer in history (Part 1)
Apple, Microsoft and Google will no longer fight each other. They will work together to do a big thing this year