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
8answers
2k views

Config Bootstrap Options

Which config bootstrap options are available for ExpressionEngine? Which one works best in a multi server environment?
15
votes
2answers
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 ...
9
votes
1answer
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 ...
7
votes
5answers
269 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. ...
7
votes
1answer
605 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: $...
7
votes
2answers
929 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/...
7
votes
2answers
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 ...
6
votes
3answers
189 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?
6
votes
3answers
300 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 ...
5
votes
6answers
3k 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 ...
5
votes
2answers
277 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 ...
5
votes
2answers
275 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 ...
4
votes
2answers
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....
4
votes
3answers
247 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'] = $...
4
votes
2answers
546 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 ...
4
votes
1answer
336 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 ...
3
votes
6answers
580 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 ...
3
votes
2answers
153 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?
3
votes
2answers
622 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 ...
3
votes
2answers
144 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 ...
3
votes
2answers
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'...
3
votes
2answers
358 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 ...
3
votes
1answer
45 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 ...
3
votes
2answers
199 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 ...
3
votes
1answer
85 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 ...
2
votes
1answer
134 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 --------------------------...
2
votes
2answers
471 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 ...
2
votes
3answers
216 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 ...
2
votes
1answer
288 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 ...
2
votes
2answers
492 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"...
2
votes
1answer
238 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 ...
2
votes
1answer
209 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 ...
2
votes
1answer
686 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” ...
2
votes
4answers
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 ...
2
votes
1answer
323 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.
2
votes
2answers
267 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: $...
2
votes
1answer
238 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} {/...
2
votes
1answer
474 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 ...
2
votes
2answers
155 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,...
2
votes
0answers
64 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 ...
2
votes
1answer
157 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, ...
1
vote
2answers
972 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?
1
vote
3answers
121 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 ...
1
vote
1answer
790 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 ...
1
vote
1answer
408 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 ...
1
vote
1answer
683 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.
1
vote
1answer
117 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 ...
1
vote
1answer
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 ...
1
vote
1answer
346 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: ...
1
vote
2answers
894 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 ...