Transfer server, DEDE website encountered no input file specified! , dedespecified_PHP tutorial

WBOY
Release: 2016-07-13 09:51:23
Original
1111 people have browsed it

Transfer server, DEDE website encountered no input file specified! , dedespecified

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...

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1014182.htmlTechArticleTransfer server, DEDE website encountered no input file specified! , dedespecified The company has newly configured a server and needs to migrate the original site from the old server to the new server. Migration....
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template