Home >Backend Development >PHP Tutorial >Transfer server, DEDE website encountered no input file specified!

Transfer server, DEDE website encountered no input file specified!

WBOY
WBOYOriginal
2016-08-08 09:22:511320browse

The company has newly configured a server and needs to migrate the original site from the old server to the new server. There are no problems in migrating the .NET website. However, after migrating a website made with DEDE, No Input File Specified appears when accessing the homepage. , similar errors occurred when accessing some pages in the background.

I started to analyze the cause of the error. Baidu got a lot of answers. Most of them said it was a problem when configuring PHP.INI on the server, so I took a lot of detours. Finally, I asked a PHP friend. His words reminded me that it should be no. Found data/common.ini.php, I downloaded the INDEX.PHP in the root directory locally, checked the source code, and sure enough there was an IF

if(!file_exists(dirname(__FILE__).'/data/common.inc.php' ))
{
header('Location:install/index.php');
exit();
}

So, I used echo output to check dirname(__FILE__), and it turned out to be the problem here, less output A folder, and then /data/common.inc.php could not be found. After further analysis, I suddenly thought that I had encountered a similar problem a long time ago. Did DEDE not support Chinese paths? I changed the folder name to In English, after rebinding, the problem was solved. I was speechless and embarrassed...

The above introduces the transfer server. The DEDE website encounters no input file specified! , including relevant content, I hope it will be helpful to friends who are interested in PHP tutorials.

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