Hi,
We are installing a site we developped.
The installation first happened on a Windows PC (apache + MYSql)
But speeds was not good.
We advised the customer to consider Linux. Which they did.
We moved the complete site to Linux (and set all the privileges, etc)
Now we get: Unable to load site preferences; No Proferences found.
The only thing that is changed is the hostname.
We added a switch case into the config.php, wich set different items, for each host (dev, staging, live, ...)
switch ( $_SERVER['HTTP_HOST'] ) {
// local
case 'www.kro-intranet.dev' :
$db['expressionengine']['hostname'] = "server1.xxx";
$db['expressionengine']['username'] = "user";
$db['expressionengine']['password'] = "pwd";
$db['expressionengine']['database'] = "dbname";
break;
// staging
case 'kro-intranet.thisconnect.com' :
$db['expressionengine']['hostname'] = "localhost";
$db['expressionengine']['username'] = "user2";
$db['expressionengine']['password'] = "pwd2";
$db['expressionengine']['database'] = "dbname";
break;
}All the other code is the same.
I found a lot of info referring to exp_sites table, but since we use 2.1.1, the info in there is not readable. So we cannot update the reference to the site.
We are also NOT using the MSM.
Any chance we can fix this?