当前位置:网站首页>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 .
边栏推荐
- 2022年最新四川建筑八大员(电气施工员)模拟题库及答案
- What are the functions of IBPs open source form designer?
- Steering gear control (stm32f103c8t6)
- Docker installing MySQL
- R for Data Science (notes) -- data transformation (used by filter)
- What about the Golden Angel of thunder one? Golden Angel mission details
- R for Data Science (note) -- data transformation (select basic use)
- Introduction: continuously update the self-study version of the learning manual for junior test development engineers
- Win7 10 tips for installing Office2010 five solutions for installing MSXML components
- UART communication (STM32F103 library function)
猜你喜欢

16个优秀业务流程管理工具

To open the registry

二叉树的基本性质与遍历

Obstacle avoidance sensor module (stm32f103c8t6)

Full link service tracking implementation scheme

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

Audio and video 2020 2021 2022 basic operation and parameter setting graphic tutorial

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

Teach you how to view the number of connected people on WiFi in detail how to view the number of connected people on WiFi

Zadig + cave Iast: let safety dissolve in continuous delivery
随机推荐
CVPR 2022缅怀孙剑!同济、阿里获最佳学生论文奖,何恺明入围
How does the video platform import the old database into the new database?
What about the Golden Angel of thunder one? Golden Angel mission details
Predicate
JMeter environment deployment
二叉树的基本性质与遍历
The agile way? Is agile development really out of date?
OpenVINO2022 Dev Tools安装与使用
[video tutorial] functions that need to be turned off in win10 system. How to turn off the privacy option in win10 computer
Five day summary of software testing
用自身细胞作为原料,首例3D打印耳朵移植成功!未来可打印更复杂器官
Vs2017 add header file path method
【云驻共创】ModelBox隔空作画 绘制你的专属画作
The first public available pytorch version alphafold2 is reproduced, and Columbia University is open source openfold, with more than 1000 stars
R for Data Science (note) -- data transformation (select basic use)
Kubernetes cluster deployment
Bytebase 加入阿里云 PolarDB 开源数据库社区
Unit actual combat lol skill release range
Hutool reads large excel (over 10m) files
Vxlan and MPLS: from data center to Metro Ethernet