You are not logged in.
Pages: 1
Hello,
I've grabbed a copy of the live site, exported the live database (and imported it locally). I've configured my local apache server and the frontend is loading well.
However when I try to access my local environment's admin I cannot. Instead I'm presented with a BigTree (custom) 404 error. Therefore I know my mod_rewrite is doing it's thing and my request for /admin/ is making it to the BigTree system. However it's not seeing that this is an admin URL.
Here's the top part of my custom/environment.php file... after this it's just DB settings.
// Website Environment
$bigtree["config"]["debug"] = true; // Set to false to stop all PHP errors/warnings from showing, or "full" to show all errors include notices and strict standards
$bigtree["config"]["domain"] = "http://localhost/"; // "domain" should be http://www.website.com
$bigtree["config"]["www_root"] = "http://localhost/site/"; // "www_root" should be http://www.website.com/location/of/the/site/
$bigtree["config"]["static_root"] = "http://localhost/site/"; // "static_root" can either be the same as "www_root" or another domain that points to the same place -i t is used to server static files to increase page load time due to max connections per domain in most browsers.
$bigtree["config"]["admin_root"] = "[www_root]admin/"; // "admin_root" should be the location you want to access BigTree's admin from, i.e. http://www.website.com/admin/
$bigtree["config"]["force_secure_login"] = [force_secure_login]; // If you have HTTPS enabled, set to true to force admin logins through HTTPS
$bigtree["config"]["environment"] = ""; // "dev" or "live"; empty to hide
$bigtree["config"]["environment_live_url"] = ""; // Live admin URL
$bigtree["config"]["developer_mode"] = false; // Set to true to lock out all users except developers.
$bigtree["config"]["maintenance_url"] = false; // Set to a URL to 307 redirect visitors to a maintenance page (driven by /templates/basic/_maintenance.php).
$bigtree["config"]["routing"] = "[routing]";
$bigtree["config"]["cache"] = false; // Enable Simple Caching
$bigtree["config"]["sql_interface"] = "mysqli"; // Change to "mysql" to use legacy MySQL interface in PHP.
In another question, what's the difference between www_root and wwwroot, both are used in various files, but I haven't been able to determine which to use in admin_root and where [wwwroot] comes from or where it's value is set.
The URL I'm trying to load to get to my admin/login is http://localhost/site/admin/
I assume I'm missing something simple?
Offline
Your admin_root variable is set to [www_root]admin/. In this case, it should be "http://localhost/site/admin/".
Offline
Thanks to another developer I changed the following lines to not have the placeholders (this is not intuitive to me!) and now it works!
Specific lines that were changed:
$bigtree["config"]["admin_root"] = "http://localhost/site/admin/"; // "admin_root" should be the location you want to access BigTree's admin from, i.e. http://www.website.com/admin/
$bigtree["config"]["force_secure_login"] = false; // If you have HTTPS enabled, set to true to force admin logins through HTTPS
$bigtree["config"]["routing"] = "htaccess";
The top part of my environment.php file is now:
// Website Environment
$bigtree["config"]["debug"] = true; // Set to false to stop all PHP errors/warnings from showing, or "full" to show all errors include notices and strict standards
$bigtree["config"]["domain"] = "http://localhost/"; // "domain" should be http://www.website.com
$bigtree["config"]["www_root"] = "http://localhost/site/"; // "www_root" should be http://www.website.com/location/of/the/site/
$bigtree["config"]["static_root"] = "http://localhost/site/"; // "static_root" can either be the same as "www_root" or another domain that points to the same place -i t is used to server static files to increase page load time due to max connections per domain in most browsers.
$bigtree["config"]["admin_root"] = "http://localhost/site/admin/"; // "admin_root" should be the location you want to access BigTree's admin from, i.e. http://www.website.com/admin/
$bigtree["config"]["force_secure_login"] = false; // If you have HTTPS enabled, set to true to force admin logins through HTTPS
$bigtree["config"]["environment"] = ""; // "dev" or "live"; empty to hide
$bigtree["config"]["environment_live_url"] = ""; // Live admin URL
$bigtree["config"]["developer_mode"] = false; // Set to true to lock out all users except developers.
$bigtree["config"]["maintenance_url"] = false; // Set to a URL to 307 redirect visitors to a maintenance page (driven by /templates/basic/_maintenance.php).
$bigtree["config"]["routing"] = "htaccess";
$bigtree["config"]["cache"] = false; // Enable Simple Caching
$bigtree["config"]["sql_interface"] = "mysqli"; // Change to "mysql" to use legacy MySQL interface in PHP.
Offline
Pages: 1