16

I'll add to this as needed. Since you have ssh access to the server, start there. 1) Connect via ssh to the production server via Terminal (or iTerm app). cd to the root of your site (or the directory where you want to track changes). 2) Type the following: git config --global user.name "SITE NAME Prod Server" git config --global user.email johndoe@...


7

I'm getting the same issue since upgrading to OS X Yosemite. I suspect the real issue is your version of PHP has been upgraded to PHP 5.6. While upgrading the OS I also swapped to PHP 5.6 and now all EE sites with debug mode enabled display this PHP notice. Someone else on the EllisLab forums has had the same issue and a fix has been posted: https://...


6

Some more googling and I found the answer here. The issue is with Structure and setting it to redirect to structure on login. I finally found out that Structure 3.3.1 is the culprit when you set it to redirect to Structure on login. You can get past it by editing the config file and change $config['allow_extensions'] = 'y'; to $config['...


5

Add the trailing slash for the 'server_path' also. /** * Custom upload directory paths * * The array keys must match the ID from exp_upload_prefs */ $env_config['upload_preferences'] = array( 1 => array( 'name' => 'Home Page Slideshow', 'server_path' => $images_path . '/home_slideshow/', 'url' =&...


4

Not sure why that's not working but I tend to just override the default value of 'is_system_on' in the specific environment's config. E.g. for your staging environment add this to config.stage.php: $env_config['is_system_on'] = 'n';


4

Please see the documentation for full details: Connecting to an External Database But the basic pattern for spinning up a separate DB connection in v3 would be: Create a DBConfig object from your database's connection settings Create a new Database object using the DBConfig object Issue queries to a Query object on the new database with ->newQuery(), ...


4

This is always a themes folder and protocol issue, I've found. You mentioned this: $env_config['cp_url'] = $env_config['base_url'] . '/admin.php'; What are you parameters for various $env_config array entries? Make sure that array is using https for that URL, and also your themes folder must also be behind SSL. Update Hey, so are you forcing SSL for all ...


3

The image problem is usually caused by the setup at your hosting provider (Nexcess?). I believe you can fix this by setting the correct base path for CE Image, as described here. EDIT: And this is an example of how to set it at Nexcess: $env_config['ce_image_document_root'] = '/chroot/home/account/domain/html';


3

That's because the config file is checking the value of $_SERVER['HTTP_HOST']. What you need to check is $_SERVER['SERVER_ADDR']. try this: if(!empty($_SERVER['HTTP_HOST'])) { switch (strtolower($_SERVER['HTTP_HOST'])) { // Standard case statements here } } else { if($_SERVER['SERVER_ADDR'] == '111.222.333.444') { define('...


3

Ultimately it comes down to your hosting company and how much control they have over mapping the domain's web root. I'd ask your host if you can re-map the production domain to point to /public_html/public. Same with your development domain, have it mapped to dev_html/public. So your setup will look like this: dev_html system public public_html system ...


3

The switch in the config.env.php is based on the $_SERVER['HTTP_HOST'] variable, which only contains the host name, not the subdirectories below it. You'd need to do some serious reconfiguration of Master Config in order for it work with with different directories as environments, as it's designed to be using different servers for environments, such as ...


3

Do you have the ENV_BASE_PATH constant defined for each environment? It sounds like you only set it up under one. The goal of this file (config.env.php) is to set constants per environment so you would want it to look something like the following: if ( ! defined('ENV')) { switch ($_SERVER['HTTP_HOST']) { case 'domain.com' : define('...


3

It looks like you're running the system below webroot, which is not how the FocusLab master config is setup to run by default. From the readme: The instructions above are for setting up the config above webroot (your "public_html, "htdocs", etc directory). So it assumes this structure: /config /httpdocs /system If you really need to run your system ...


3

Make sure the staging domain is correct in config.env.php Make sure the staging config is in fact loaded (put a die("hello); at the top of your config.staging.php) Verify that your site says "hello" on staging, which means it is actually loading the staging config. Edit both index.php and admin.php and set $debug=1; in both. Remove the die() you put in ...


2

I may just misunderstand your post but you have changed 'domaindev.com' to 'staging.mysite.com' haven't you? Also try putting the staging db connection info in for the default/local environment (on your staging server) to see if it's just falling through to the default. Which would imply the domain isn't properly set.


2

I've actually run into this issue on a couple of MSM sites in the last couple of weeks. From what I can gather, at some point the root URL is stored in the 'site_pages' column in the 'exp_sites' table, for each site. I have a PHP script that decodes/encodes and unserialzies/serializes the data, and tells you what to change. Ping me at @degerstrom or pal@...


2

I recently had this same issue. I resolved this way. I pointed my staging domain to: | staging_subdirectory / public_html And file structure looked like this: --system --config --public_html | |staging_subdirectory -system -config -public_html -index.php -admin.php -etc. I deployed production to / and staging to /...


2

Yes! There's an EE3-ready version available on GitHub now: https://github.com/focuslabllc/ee-master-config/tree/EE3


1

The themes directory is usually the one challenge for the MSM and Master Config combo. There are some options, each with its own unique workaround, so you just have to choose which method seems the least cumbersome/annoying. Here are two options based on a similar directory structure. Directory setup /config /system    /codeignitor  &...


1

Give this a try: https://github.com/kgrote/msm_master_config I've been using it on a pretty complex MSM site for a while now with no issues.


1

Strictly speaking, this isn't an issue with either EE or Git, but just a quirk in the Siteworx hosting control panel that Nexcess uses. You can get around it by, instead of adding a subdomain to one of the domains you already configured in the panel, you add it as a new "secondary domain". To do this, go to Hosting Features -> Domains -> Secondary. Enter the ...


1

Another option, though not ideal, would be to put a conditional in the index.php and admin.php files: switch ($_SERVER['HTTP_HOST']) { case "www.example.com" : $system_path = "../system"; break; case "dev.example.com" : $system_path = "../system_dev"; break; default : $system_path = "../system"; break; }


1

I also don't want to be patronizing but, you said you "added" the new config override though, EE Master Config already includes it here - is there a chance you are adding the config override twice? I'm assuming you meant to say you "updated" the current config override accordingly vs adding it twice.


1

Forgive me if this is patronising, but are you sure you're not logged in as a superadmin? If so, this setting won't apply to you and you'll be able to see the site even when it's switched off.


1

You can't create sources this way - you can only edit change configuration for already existing sources. Your best bet would be to run an SQL query to insert the rows into exp_assets_sources table and then use the configuration file.


1

A WSOD after installing a Master Config probably means that the new config isn't being loaded correctly. This could be because the include path in EE's config.php doesn't correctly refer to the Master Config file, or because the environment-based path generated by the master config doesn't correctly refer to an environment config file. It could also be a ...


1

If you see this or a similar error with the double-period in the path -- /../config/config.master.php -- you just need to modify the following in config.master.php REPLACE ANY OCCURRENCE OF THIS require $_SERVER['DOCUMENT_ROOT'] . '/../config/config.' . ENV . '.php'; WITH THIS require $_SERVER['DOCUMENT_ROOT'] . '/config/config.' . ENV . '.php';


1

Do you have set $assign_to_config['site_url'] in /en/index.php? I recently installed https://github.com/averyvery/Freebie to make EE ignore certain segments. edit i ended up using a find/replace add-on - http://devot-ee.com/add-ons/find-and-replace-plus - or http://devot-ee.com/add-ons/low-replace


Only top voted, non community-wiki answers of a minimum length are eligible