Of course. This is a very common question for users of the DedeCMS (织梦CMS) content management system.

Let's break down what cfg_softname is, where to find it, and how to change it.
What is cfg_softname?
In DedeCMS, cfg_softname is a global configuration variable that holds the name of your website or content management system.
- Purpose: It's used throughout the DedeCMS backend (the admin panel) to display the name of the system. For example, you'll see it in the footer of the admin dashboard, in various error messages, and in system-generated information.
- Default Value: By default, it is usually set to
"DedeCMS"or管理系统"(the Chinese name for DedeCMS).
Where is it Located?
This variable is defined in the main configuration file of DedeCMS. The location depends on your version and whether you are using the UTF-8 or GBK encoding.
For DedeCMS 5.x - 7.x (Most Common Versions)
The file is located in the /include/ directory.

- UTF-8 Version:
/include/common.inc.php - GBK Version:
/include/common.inc.php
How to find it:
-
Navigate to your website's root directory using an FTP client or your hosting's file manager.
-
Go to the
/include/folder. -
Open the
common.inc.phpfile.
(图片来源网络,侵删) -
Search for the line that looks like this:
//系统配置变量 $cfg_softname = 'DedeCMS';
For Newer Versions (e.g., DedeCMS V57+ Sp1)
In newer versions, this configuration might be moved to the main configuration file to make it easier to manage.
- File Location:
/data/config.cache.inc.php
How to find it:
-
Navigate to the
/data/directory. -
Open
config.cache.inc.php. -
You will find a line like this:
$cfg_softname = 'DedeCMS';
How to Change the Value of cfg_softname
Changing this value is a simple process. You can edit it to reflect your website's name, for example, "My Awesome Blog" or "Company News Portal".
Step-by-Step Guide:
-
Locate the File: Find the correct file as described above (either
/include/common.inc.phpor/data/config.cache.inc.php). -
Edit the File:
- Download the file to your computer.
- Open it with a plain text editor (like Notepad++, VS Code, Sublime Text, or even Notepad).
- Find the line
$cfg_softname = 'DedeCMS';.
-
Change the Value:
- Replace
'DedeCMS'with your desired name. - Important: Keep the single quotes () around your new name.
Example:
// Original line $cfg_softname = 'DedeCMS'; // Changed line $cfg_softname = '我的个人博客'; // or $cfg_softname = 'My Company Portal';
- Replace
-
Save and Upload:
- Save the changes to the file.
- Upload the modified file back to your server, overwriting the original one.
-
Clear the Cache:
- Log in to your DedeCMS admin panel.
- Go to "系统" -> "系统设置" -> "系统基本参数" (System -> System Settings -> System Basic Settings).
- Click the "清除系统缓存" (Clear System Cache) button at the top right of the page. This is a crucial step to ensure the changes take effect immediately.
Important Considerations
- Permissions: Make sure you have the correct file permissions to edit and save the file. Usually,
644is sufficient for files and755for directories. - Backup: Before making any changes to core files, it's always a good practice to create a backup of the file you are editing.
- Impact: Changing
cfg_softnamewill not change the public-facing name of your website. It only changes the name displayed within the DedeCMS admin panel. To change your website's public title, you need to modify your site's theme files (e.g.,header.htm) or go to "系统" -> "系统基本参数" -> "站点设置" to change the site's name (cfg_webname).
Summary Table
| Item | Description |
|---|---|
| What it is | A global variable holding the CMS name for the admin panel. |
| Default Value | 'DedeCMS' |
| Location (Common) | /include/common.inc.php |
| Location (Newer) | /data/config.cache.inc.php |
| How to Change | Edit the file, change the value inside the single quotes, save, and clear the cache. |
| Impact | Only affects the backend admin panel, not the public website. |
