Home  >  Article  >  CMS Tutorial  >  What should I do if dede php is not running?

What should I do if dede php is not running?

藏色散人
藏色散人Original
2021-05-19 10:35:192394browse

The solution to dede php not running: 1. Find the template engine disabled tag and delete "php" in it; 2. Execute the command "INSERT INTO `dede_sysconfig` (`varname`, ` in the SQL command line info`, ``...)".

What should I do if dede php is not running?

The operating environment of this article: Windows 7 system, DedeCMS version 5.6, DELL G3 computer

Specific questions:

dede:php cannot be executed, waiting online urgently.

There is no template engine disabled PHP function and template engine disabled tag in the DreamWeaver backend

I entered

INSERT INTO `dede_sysconfig` (`varname`, `info`, `groupid`, `type`,
`value`) VALUES ('cfg_disable_funs', '模板引擎禁用PHP函数', 7,
'bstring',
'phpinfo,eval,exec,passthru,shell_exec,system,proc_open,popen,curl_exec
,curl_multi_exec,parse_ini_file,show_source,file_put_contents');
INSERT INTO `dede_sysconfig` (`varname`, `info`, `groupid`, `type`,
`value`) VALUES ('cfg_disable_tags', '模板引擎禁用标签', 7, 'bstring',
'php');

in the SQL command line tool and then removed the template engine disabled The label corresponds to the php in the box.

Still cannot execute dede:php

in the generated interface. Solution:

You need to confirm whether you are serious. Carefully complete the following two steps:

Step 1: Website backend - system - basic system parameters - other options - template engine disable tag: delete "php" in it.

After completing this step, the problem is generally solved. If not resolved, proceed to step two.

Step 2: Execute the following commands in the SQL command line. Generally, it is more convenient to use the mysql command in phpmyadmin.

INSERT INTO `dede_sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_disable_funs', '模板引擎禁用PHP函数', 7, 'bstring', 'phpinfo,eval,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,file_put_contents');

Note: Copy what I typed above in the SQL command line, do not copy other ones, because some web pages may have layout problems. You can't type it against the screen yourself, because there are two types of single quotation marks and it's easy to get them confused.

Of course, there is another possibility that you have executed the command multiple times. Go directly to phpmyadmin, check the dede_sysconfig data, and delete unnecessary ones.

Related recommendations: "dedecms tutorial"

The above is the detailed content of What should I do if dede php is not running?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn