I’ve been struggling for weeks to get a localhost version of a live site to work and am at my wits end. I inherited the site from a previous developer and have had no prior exposure to EE.
I have XAMPP and have created a vhost called ‘giltedge’. The version of EE I have is 1.6.8.
The site has been working but I couldn’t get the images to display. This morning I was VERY excited because I made a change to the config.php file and the images were now displaying. BUT when I tried to log into the cpanel I was shown a blank screen with a 0 value for the s variable and a 0 value for, I think it is, the c variable.
My config.php file looks like this:
<?php
if ( ! defined('EXT')){
exit('Invalid file request');
}
$conf['app_version'] = "168";
$conf['license_number'] = "8760-9739-8510-5085";
$conf['debug'] = "1";
$conf['install_lock'] = "1";
$conf['db_hostname'] = "localhost";
$conf['db_username'] = "###########";
$conf['db_password'] = "##############";
$conf['db_name'] = "###############";
$conf['db_type'] = "mysql";
$conf['db_prefix'] = "ge";
$conf['db_conntype'] = "0";
$conf['doc_url'] = "http://expressionengine.com/docs/";
$conf['cookie_prefix'] = "";
$conf['is_system_on'] = "y";
$conf['allow_extensions'] = "y";
$conf['multiple_sites_enabled'] = "n";
$conf['admin_session_type'] = "s";
// Paths and URLs
$conf['system_folder'] = "system";
$conf['rel_path'] = "";
// paths
$conf['site_url'] = "http://${_SERVER['HTTP_HOST']}/${conf['rel_path']}";
$conf['cp_url'] = "http://giltedge/system/index.php"
//$conf['cp_url'] = "${conf['site_url']}/${conf['system_folder']}/index.php";
// template files
$conf['tmpl_file_basepath'] = "${_SERVER['DOCUMENT_ROOT']}/${conf['rel_path']}resources/templates";
// themes
$conf['theme_folder_path'] = "${_SERVER['DOCUMENT_ROOT']}/${conf['rel_path']}themes";
$conf['theme_folder_url'] = "${conf['site_url']}/themes";
// capchas
$conf['captcha_path'] = "${_SERVER['DOCUMENT_ROOT']}/${conf['rel_path']}images/captchas";
$conf['captcha_url'] = "${conf['site_url']}/images/captchas";
// avatars
$conf['avatar_path'] = "${_SERVER['DOCUMENT_ROOT']}/${conf['rel_path']}images/members/avatars";
$conf['avatar_url'] = "${conf['site_url']}/images/members/avatars";
// photos
$conf['photo_path'] = "${_SERVER['DOCUMENT_ROOT']}/${conf['rel_path']}images/members/photos";
$conf['photo_url'] = "${conf['site_url']}/images/members/photos";
// fieldframe
$conf['ft_path'] = "${_SERVER['DOCUMENT_ROOT']}/${conf['rel_path']}${conf['system_folder']}/extensions/fieldtypes/";
$conf['ft_url'] = "${conf['site_url']}/${conf['system_folder']}/extensions/fieldtypes/";
$conf['ip2nation'] = "n";
?>And my path file (which looks suspicious to me) looks like this:
<?php
// ------------------------------------------------------
// DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
// ------------------------------------------------------
// Path to the directory containing your backend files
$system_path = "./system/";
// ------------------------------------------------------
// MANUALLY CONFIGURABLE VARIABLES
// See user guide for more information
// ------------------------------------------------------
$template_group = "";
$template = "";
$site_url = "";
$site_index = "";
$site_404 = "";
$global_vars = array(); // This array must be associative
if ($_SERVER["HTTP_HOST"] == "giltedge") {
$global_vars['environment'] = "dev";
}else{
$global_vars['environment'] = "live";
}
if (($_SERVER["HTTP_HOST"] == "giltedgeafrica.net")OR
($_SERVER["HTTP_HOST"] == "www.giltedgeafrica.net")OR
($_SERVER["HTTP_HOST"] == "gilt-edge.com")) {
header("Location: <a href="http://www.gilt-edge.com/">http://www.gilt-edge.com/"</a>);
exit;
}
?>I would really appreciate some help on this.