Author Topic: Error "Cannot detect application location"  (Read 7225 times)

0 Members and 1 Guest are viewing this topic.

fastrobby

  • Jr. Member
  • **
  • Posts: 3
Error "Cannot detect application location"
« on: May 09, 2012, 10:25:53 PM »
Hi,
I get an error in the database setup wizard 'Cannot detect application location" I have had techs at the isp "webhost4life" checkout the config file and it seems OK. Is "Mibew compatible with a Windows Server ???
Many Thanks
Robby
fastrobby@hotmail.com

ouleiqi

  • Jr. Member
  • **
  • Posts: 1
Re: Error "Cannot detect application location"
« Reply #1 on: May 22, 2012, 06:56:31 AM »
试一试在 install/index.php 中修改获取uri的方法:
function check_webimroot()
{
global $page, $errors, $webimroot;
$requestUri = '';

if (isset($_SERVER['REQUEST_URI'])) {
$requestUri = $_SERVER['REQUEST_URI'];
} else {
       if (isset($_SERVER['argv'])) {
                    $requestUri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['argv'][0];
       } else {
                  $requestUri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['QUERY_STRING'];
        }
}


if (!preg_match('/^(.*)\\/install(\\/[^\\/\\\\]*)?$/', $requestUri, $matches)) {
      $errors[] = "Cannot detect application location: $requestUri";
      return false;
   }
   $applocation = $matches[1];
..........

并删除(或修改)package中的此行:  install/index.php 284183ee6d174f239fc92a85a8148771
« Last Edit: May 22, 2012, 07:12:30 AM by ouleiqi »

vsnair

  • Jr. Member
  • **
  • Posts: 2
Re: Error "Cannot detect application location"
« Reply #2 on: November 22, 2012, 10:51:13 AM »
Hi all,
    I found a solution for this issue. Don't go for the install folder in the Plesk. First install this app in your local system (using xampp) and export the .sql file using php my admin. After that upload all the files to the IIS server and go to the php myadmin area. Just import the .sql file to the server. Finished..... Cheers!!!!!

If any one having doubts feel free to contact me....