当前位置:网站首页>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 .
边栏推荐
- Some small requirements for SQL Engine for domestic database manufacturers
- 等等党们的胜利!挖矿退潮后,显卡价格全面暴跌
- Fuzzy background of unity (take you to appreciate the hazy beauty of women)
- R for Data Science (notes) -- data transformation (used by filter)
- You can capture fingerprints with a mobile camera?! Accuracy comparable to signature and monogram, expert: you are aggravating discrimination
- The agile way? Is agile development really out of date?
- To open the registry
- 2022年最新四川建筑八大员(电气施工员)模拟题库及答案
- gateway
- Byte and Tencent have also come to an end. How fragrant is this business of "making 30million yuan a month"?
猜你喜欢

Teach you how to cancel computer hibernation

【Go语言刷题篇】Go从0到入门4:切片的高级用法、初级复习与Map入门学习

Bytebase rejoint la communauté de base de données open source d'alicloud polardb

Making startup U disk -- Chinese cabbage U disk startup disk making tool V5.1

16 excellent business process management tools

Write a positive integer to the node and return a floating-point number multiplied by 0.85 when reading the node

Test drive citus 11.0 beta (official blog)

Some small requirements for SQL Engine for domestic database manufacturers

图的基本概念以及相关定义

Behind Tiantian Jianbao storm: tens of millions in arrears, APP shutdown, and the founder's premeditated plan to run away?
随机推荐
With its own cells as raw materials, the first 3D printing ear transplantation was successful! More complex organs can be printed in the future
Accurate calculation of task progress bar of lol mobile game
京东一面:Redis 如何实现库存扣减操作?如何防止商品被超卖?
【Go語言刷題篇】Go從0到入門4:切片的高級用法、初級複習與Map入門學習
两位湖南老乡,联手干出一个百亿IPO
Kubernetes cluster deployment
First understand redis' data structure - string
RF_DC系统时钟设置GEN1/GEN2
Anti epidemic through science and technology: white paper on network insight and practice of operators | cloud sharing library No.20 recommendation
Vs2017 add header file path method
Behind Tiantian Jianbao storm: tens of millions in arrears, APP shutdown, and the founder's premeditated plan to run away?
Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme
IP address to integer
对“宁王”边卖边买,高瓴资本“高抛低吸”已套现数十亿
顺序栈遍历二叉树
What about the Golden Angel of thunder one? Golden Angel mission details
Internet of things? Come and see Arduino on the cloud
Stackoverflow 年度报告 2022:开发者最喜爱的数据库是什么?
Redis installation of CentOS system under Linux, adding, querying, deleting, and querying all keys
Openstack actual installation and deployment tutorial, openstack installation tutorial