Skip to main content

Questions tagged [config]

The process of configuring ExpressionEngine and/or third-party add-ons via the config.php file - or another configuration solution such as Focus Lab's EE Master Config.

Filter by
Sorted by
Tagged with
20 votes
8 answers
2k views

Config Bootstrap Options

Which config bootstrap options are available for ExpressionEngine? Which one works best in a multi server environment?
Anna_MediaGirl's user avatar
  • 12.6k
14 votes
2 answers
5k views

How do I access custom config.php variables in a plugin?

I'm writing a plugin for which I'd like to be able to set site-wide preferences via custom variables in config.php (eg $['myplugin_config_item']), and have those variables available in all my plugins ...
Tom Davies's user avatar
  • 4,398
9 votes
1 answer
2k views

setting 'site_name' in config doesn't seem to work

Having read through this discussion Config Bootstrap Options, and settled on using the method described on nettuts here, I've got myself a base build for EE with all my usual addons etc. That's all ...
Steve Holland's user avatar
7 votes
5 answers
274 views

How best to get a new EE install (including channels/fields) up and running quickly?

I don't use GIT or anything (yet) but am trying to speed up the time it takes to set up a new EE site. I'm finding that I'm setting up a lot of the same channels, custom fields, low variable, etc. ...
Todd's user avatar
  • 752
7 votes
1 answer
640 views

Difference between assign_to_config and config (and or env_config)

I'm using EE Master Config along with Stash. I know in Master Config that all the configs have been changed from $config[''] to $env_config[''] I noticed with Stash that Mark is using this format: $...
Natetronn's user avatar
  • 2,654
7 votes
2 answers
968 views

How do I assign custom global variables from my config file?

I'm currently developing custom config files. Some of my files are deeply located in my architecture and I want to use some of my variables in the config as specific tag. Example : {site_url}assets/...
Simon's user avatar
  • 278
7 votes
2 answers
4k views

How to create a global variable inside config.php

I'm trying to build a simple config bootstrap for use in multi-server environments. I realise there are lots of config bootstraps around, but a lot of the popular ones seem a bit complicated for what ...
Stephen's user avatar
  • 1,349
6 votes
3 answers
196 views

"Word Separator for URL Titles" hidden config variable

Is there a hidden config variable for the "Word Separator for URL Titles" setting? What other hidden config variables remain undocumented in the ExpressionEngine User Guide?
Stuart McCoy's user avatar
  • 1,146
6 votes
3 answers
308 views

Renaming system directory if directory is outside root?

What's the general consensus regarding the renaming of the system directory if it resides above root? I was recently updating my default EE install to initially start with the directory above root and ...
Stuart McCoy's user avatar
  • 1,146
5 votes
6 answers
4k views

CP access: admin.php or system/index.php

A site that I built last autumn had the CP url set as system/index.php (I think I was following Ryan Irelan’s advice in that regard). It works fine. However, last night I did a quick install of EE ...
RickL's user avatar
  • 603
5 votes
2 answers
286 views

CE Image configuration for MSM

have an MSM site that I’ve just moved from test to production and we’re white screening on the front-end. I suspected CE Image straight off - commented out my tags and sure enough, the site loaded ...
Steven Grant's user avatar
  • 2,473
5 votes
2 answers
292 views

Disabling Postmaster from sending emails using a config.php override

Is it possible to disable Postmaster from sending emails using a config.php override? I've got a development version of a site and it'd be good if I could disable the emails from sending when I'm ...
Stephen's user avatar
  • 1,349
4 votes
2 answers
2k views

500 internal server error using Master Config

I've been using Focus Lab's Master Config for most of this year and have never run into this issue before. So here's what's happening, going to the domain (example: mysite.com/index.php or mysite....
A Herrera's user avatar
  • 626
4 votes
3 answers
255 views

theme_folder_url issue

Should be a quick one for the EE add-on devs out there. Most add-ons do support having: $config['path_third_themes'] = $base_path . "/assets/third_themes/"; $config['url_third_themes'] = $...
Steven Grant's user avatar
  • 2,473
4 votes
2 answers
561 views

Site and theme URLs not correct in control panel settings

When I load Site > CP Home > General Configuration I see the right values in the field: http://www.example.com for an instant. When the page fully loads it will change to http://dev.example.com. The ...
Doug's user avatar
  • 587
4 votes
1 answer
347 views

Control Panel (CP) Link Button is not working

There's a button in the top right corner of every EE install that links to the front-end of the site. On one of my installs it's returning: http:/// instead of the site's address. Where can I ...
Jeremy Latham's user avatar
3 votes
6 answers
680 views

System Offline problems

I turned off the site in the config panel, General Configuration , Is system on? = no. Inside the config file, it’s set to no too. But even if it’s set to no, the site still online. I can still view ...
Stéphane's user avatar
  • 885
3 votes
2 answers
154 views

Is there a way to define snippets in the index.php or config.php file?

I'd like to define snippets dynamically in the index.php file. Is there a way to do this?
Travis Smith's user avatar
3 votes
2 answers
644 views

Disable database-templates within ExpressionEngine 2

I'm working on EE2 theme and I can't find solution how to force EE use templates directly from the file system. Generally I want to disable database templates while I'm working on theme, to get ...
Artem O.'s user avatar
  • 133
3 votes
2 answers
156 views

Deny Multiple Logins

Is there any way to deny multiple user logins when using the same username & password? So if a user is logged in, they can't login from another machine using the same login credentials. Thanks ...
mediapimp's user avatar
  • 741
3 votes
2 answers
1k views

Unable to Load Site Preferences

I'm trying to duplicate a site onto a different server and am running into the old "Site Error: Unable to Load Site Preferences; No Preferences Found" error. Through searchign the forums some fixes I'...
Mason Kessinger's user avatar
3 votes
2 answers
384 views

Cannot upload EPS to file directory

I can't upload .eps extension files to any upload directories. I'm on EE 3.4.5. When I try to upload, I see the following message: I've tried using the 'mime_whitelist_additions' config override, but ...
Sam Cosgrove's user avatar
3 votes
1 answer
46 views

Running EE across two servers - how to setup?

I am shifting to a two-server setup for running my site. This would mean one server handles MySQL and one handles web stuff. My understanding is all I need to do to make this function with EE (version ...
Linda Antonsson's user avatar
3 votes
2 answers
201 views

Why wouldn't global variable parse correctly with Master Config?

Using Focus Lab's Master Config, I've set a test global variable for production, like so: $env_global['global_test'] = 'test'; Then in an embedded template I've dropped in {global_test}. Also tried ...
A Herrera's user avatar
  • 626
3 votes
1 answer
89 views

Expresso Store: payment gateway settings in filesystem

Is it possible to store payment gateway settings in the file system, eg config.php? For example, I might want to have different settings for different environments, eg test gateway API for staging ...
Cole Henley's user avatar
2 votes
1 answer
141 views

What does $config['disable_all_tracking'] do?

Not sure how to choose to set $env_config['disable_all_tracking'] = 'y' or 'no'; When documentation says if set to 'y' some of the below settings are disregarded /* Tracking --------------------------...
C Calabrese's user avatar
2 votes
2 answers
545 views

Use config variables in templates?

Is there a place in EE to store custom config variables and access them in the templates? I need to be able to use these variables in conditionals as well as output them. Furthermore, I need to have ...
ExpressionEngineNewbie's user avatar
2 votes
3 answers
223 views

ed_imageresizer not working with second site in Multisite Manager

I am using ExpressionEngine 2.5.2 and I'm having trouble getting my ed_imageresizer to work on my second site, setup through Multisite Manager. ed_imageresizer is installed and working on my primary ...
jennetcetera's user avatar
2 votes
1 answer
315 views

How do I create new image upload destination via config bootstrap file?

I am running expression engine on MSM at the moment. I have got the deployment and ebvironments working properly, my only issues is that there are literally about 30 different file upload paths all ...
M dunbavan's user avatar
2 votes
2 answers
588 views

Having issues with $config['debug'] = "1" and environments

I currently have environment variables in my config.php file to deal with databases but on the last couple of project I've had to turn on debug on more than one occasion. I added $config['debug'] = "1"...
Stuart McCoy's user avatar
  • 1,146
2 votes
1 answer
268 views

File structure for a staging site is different from production

On my current project the production site has the following folder structure: --system --config --public_html -assets -index.php -admin.php -etc. But, the staging site I need to create is ...
Sergio Acosta's user avatar
2 votes
1 answer
219 views

Dynamic path for cachedir when placing system folder above web root

I've got a query about setting the cachedir path in system/config/database.php when placing the system folder above web root. When the system folder isn't above web root, I'd normally set the path ...
Stephen's user avatar
  • 1,349
2 votes
1 answer
700 views

What's the configuration for multiple subsites the legacy way in ExpressionEngine?

Let me lead with a quote from the present EE license. "An ExpressionEngine license purchase allows a single “live” installation in a production environment and ancillary “development use only” ...
narration_sd's user avatar
2 votes
4 answers
2k views

Config.php file permission changed to 666 but installation won't run

I set permissions via SFTP to 666 on config.php and database.php but am getting this in the installation wizard: Your config.php file does not appear to have the proper file permissions. Please set ...
user2088550's user avatar
2 votes
1 answer
347 views

How can you control the pagination URL?

How can you control the pagination URL and change this: http://example.com/blog/P# to this: http://example.com/blog/page-# ? Any help appreciated.
James's user avatar
  • 123
2 votes
2 answers
276 views

Secondary site on MSM not retaining its URL

EE 2.7.2. I have a secondary site on Multi Site Manager. Users can only login to EE from the main site, so I have no admin.php for the secondary site. In the secondary site's index.php, I have: $...
4midori's user avatar
  • 382
2 votes
1 answer
250 views

Pagination {auto_path} outputting 3 x duplicate URL

I have an odd problem with EE 2.5.3 outputting multiple urls preceding the correct pagination segment when using this code: {paginate} {if next_page} <a href="{auto_path}"Next</a> {/if} {/...
Pentland_web's user avatar
2 votes
1 answer
479 views

Focus Lab Config (bootstrap) working with MSM - still problems

OK, first question on SE so bear with me. I'm trying to setup an older site (after going through the EE2 upgrade process) on a virtual private server the client has running WHM and cPanel. The sites ...
Brendan Underwood's user avatar
2 votes
2 answers
160 views

"is_system_on" problem

I am having a tough time getting "is_system_on" to work right in production. In the "General Config" page in the CP, neither the "yes" or "no" radio buttons are set. When I select one and click submit,...
Matt Fordham's user avatar
2 votes
0 answers
65 views

system overrides for session timeouts -- deprecated?

There's a note in the docs (here) talking about cp_session_ttl and user_session_ttl overrides being replaced as part of the 2.8 update. But I can't see anything about it in the changelogs. Am I ...
RickL's user avatar
  • 603
2 votes
1 answer
162 views

Control Panel locking me out after uploads and template changes - says no data

Prolem: I am using ExpressionEngine Core 2.6.1. After I click around the control panel for a bit, sometimes updating templates and sometimes uploading images, I get kicked out. When I get kicked out, ...
jennetcetera's user avatar
1 vote
2 answers
1k views

Disable Secure Forms in config.php

I can't log into my control panel and I think the issue is related to "secure forms" being enabled. How do I disable "secure forms" in the EE config file?
Anna_MediaGirl's user avatar
  • 12.6k
1 vote
3 answers
127 views

Seeking three specific config variables

I've been trying to figure out how to set three specific CP settings via my config file and can't find a reference for the necessary variables. Maybe somebody can point me in the right direction. I'm ...
RickL's user avatar
  • 603
1 vote
1 answer
848 views

Enable Memcached in EE 2.9.2: problems

I am trying to get Memcached working on my EE (2.9.2) website. I have memcached installed correctly (both Memcache and the PHP extension) and running as a daemon: % ps -ef|grep memcache user pid ...
tatlar's user avatar
  • 323
1 vote
1 answer
418 views

Default .htaccess rewrite block for EE in a subfolder?

Is there a default .htaccess rewrite block for EE while running it in a subfolder? I have EE in /eefolder/ i.e., mydomain.com/eefolder/ with simply RewriteEngine on in the .htaccess file in that ...
markratledge's user avatar
1 vote
1 answer
709 views

MySQL connection on a non-standard port

We were experimenting with running an EE database stored on AWS and we found that MySQL was running on a non-standard port.
Steven Grant's user avatar
  • 2,473
1 vote
1 answer
122 views

Inconsistent URL paths

Having some issues with paths on my build, i get a different output using {site_url} to {path='site_index'}, {site_url} outputs the correct value but {path='site_index'} outputs the correct value with ...
Nick's user avatar
  • 693
1 vote
1 answer
68 views

"invalid_filename" error when trying to synchronise upload directories [duplicate]

I'm making some changes to an existing ExpressionEngine site which involve moving the system above the web root and using Focus Labs config set up. Because of the new config set up I had to define ...
foamcow's user avatar
  • 7,176
1 vote
1 answer
364 views

Why is EE not autosaving?

I have got editors who often have an entry open around 30minutes before saving. I have turned on autosaving in the config.php file and this is also reflected in the config edotr in the control panel: ...
Abs's user avatar
  • 465
1 vote
2 answers
922 views

Config setting for disabling page cache

Is there a config setting for disabling page cache in EE? I've found a setting for disabling tag caching $config['disable_tag_caching'] but not one for pages. I'm using the Focus Lab master config ...
Dylan's user avatar
  • 1,074