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, but after migrating one made with DEDE After accessing the website, No Input File Specified appears on the homepage, and similar errors appear on some pages when accessed in the background.
I started to analyze the cause of the error, and 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, and his words reminded me that it should be Data/common.ini.php was not found. I downloaded INDEX.PHP in the root directory locally and checked the source code. Sure enough, there was an IF
if(!file_exists(dirname(__FILE__).'/data/common.inc.php'))
{
header('Location:install/index.php') ;
exit();
}
So, I checked the dirname(__FILE__) using echo output, and it turned out to be the problem here. One less folder was output, which resulted in /data/common.inc.php not being found. After further analysis, it suddenly occurred to me that it had been a long, long time. I seem to have encountered a similar problem before. Does DEDE not support Chinese paths? I changed the folder name to English. After binding it again, the problem was solved. I was speechless and embarrassed...