Hot answers tagged

13

I'm going to address this part: I am fairly new to EE so any help is much appreciated. I think you'll find that many of the developers here are currently using a workflow that incorporates version control, typically Git via Github or another service. In most cases, our workflow looks like this: We start development on a local computer, with our ...


7

If you are seeing a white screen there's an error happening and you need to display that error to be able to know how to proceed. (See the EE user guide about Blank Pages.) To show that error, edit your folder's index.php file and replace $debug = 0 with $debug = 1. Revisit your site and you should see the error. If you see something like this: A Database ...


7

Thanks for listening to my talk and staying awake. It really is crucial to get a good base setup and thanks for reaching out to us for advice. Key mods we use suPHP, EAccelerator, Deflate, File Cache, MemCache, FastCGI (and some other non-cache related mods) and EE works very fast. Not sure on APC but I cannot imagine there being much difference. The key ...


6

I would avoid using DOCUMENT_ROOT altogether, to avoid issues between servers. The doc root is specified in your apache config, and depending on your apache setup, isn't always guaranteed to give you the correct path to your root folder. It's much more reliable to use dirname(__FILE__) (or __DIR__ in PHP 5.3+) for the directory of the current script, and go ...


5

In my experience suPHP tends to have a small negative impact on overall performance, and either FastCGI or mod_php (DSO) will run faster with less resource use, specifically CPU use. FastCGI uses noticeable more memory than DSO, but on the other hand is arguably 'more secure' than DSO for a multi-site environment. For securing DSO, mod_ruid2 might be an ...


5

The FocusLab approach to this has become a de facto standard for what you're doing, especially long term: https://github.com/focuslabllc/ee-master-config Hope this helps.


5

Upload a file called test.php in their respective folders with the following code:- <?php echo $_SERVER['DOCUMENT_ROOT']; ?> Then open those files in your browser and see what the echo'd path is. That should be the thing you set.


5

This will depend entirely on how you have your server set up. ExpressionEngine is only aware of things that go through the index.php file (or if you have by chance renamed this file, then whatever you renamed it). On Linux servers, often .htaccess will be used to remove index.php from the URL but still send all requests through index.php. So for instance, ...


4

Try <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Rewriter" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions> <add input="{R:1}" pattern="^(index\\.php|images|css|js|favicon\\.ico)" ...


3

Is this URL failing? EE shouldn't do anything. Since the directory exists on the server it should load just fine. There will only be an issue if you have a template group with the same name. In that case, EE will load the template group if I remember correctly.


3

If at all possible try to convince the client to let you run WAMP. I had to manage an IIS EE site for 3 years and it was an absolute nightmare. Make sure you have .php set as a default document and higher priority than .html. You may want to purchase ISAPI_Rewrite, which would allow you to use an .htaccess for any URL rewriting. Permissions are a nightmare. ...


3

I would assume ExpressionEngine is giving you the path to your system folder, since that is were the config.php file is located. The $_SERVER['DOCUMENT_ROOT'] provides: The document root directory under which the current script is executing, as defined in the server's configuration file. It doesn't provide the base path to your html folder; it ...


3

I agree with @foamcow's answer. Also, change your SFTP and MySQL passwords and look at .htaccess in case they injected some redirects.


2

Solution was, as suggested by @NevinLyne, to contact tech support who made certain the backend was configured properly and uncovered a glitch in my htaccess file I'd never have uncovered.


2

You need to be aware sometimes that when using the API, you're going to take a whole lot of potential baggage with you - a lot of that baggage may not be from first party. There are several extension hooks being called when you save an entry. I've been bitten for example by Solspace Tag doing a whole bunch of cleanup/recounts after ANY entry is created or ...


2

Even for an intranet, you want the files to reference the internet domain, such as http://office.mydomain.org You can upload files from the C: drive, but Adrian mention ExpressionEngine and probably every content management system (CMS) will expect the files to be stored in the web area of your machine. Pointing to the generic C: drive, is pretty much like ...


2

The Nginx page for ExpressionEngine has sample configs, that should work for EE 1.6.x. And, here are more examples in an Archived EE Forum Thread on Nginx. And, more good info is available in this Current EE Forum Thread on Nginx. I think that any info you find on the web about using Nginx with EE should be applicable to EE 1, even if the example uses EE 2. ...


2

You just need to create subfolder msm-site-two and put inside index.php with $assign_to_config['site_name'] = 'msm-site-two'; $assign_to_config['site_url'] = 'http://000.000.000.000/msm-site-two/'; and your second site will be available by url 000.000.000.000/msm-site-two/


2

CE Cache and ExpressionEngine's cache="yes" are not true caches. I hate that they advertise themselves as "caches" - they are not! They simply cache ExpressionEngine template parsing's output at a very high level, the entire PHP stack and ExpressionEngine core still needs to run. Not to mention database traffic, even for non-logged in members due to EE's ...


2

.host file just overwrite DOMAIN -> IP determination which usually do DNS server before you computer send request to Web server. So you can't manipulate urls on server with it. Your web server (apache/nginx) must be ready to get request with domain "mytempdomainsite.com.au" (or have default setting for ip) and redirect to your web folder. This is only way....


2

I checked http://qatarphil.net and got a blank page, but with http://qatarphil.net/index.php I get the "Your config file does not appear to be formatted correctly." message. Which is positive. It looks like your files are all in place and the domain issues are worked out. Also, check the official install instructions here: http://ellislab.com/...


2

The first thing to do is remove the code but you should also look to see there is anything else that has been touched. Reinstalling completely may be unnecessary but it won't do any harm. If you store any personal information of users you should also determine whether or not this has been taken and your client needs to decide whether or not to inform them ...


2

The answer to this question turns out to be a lot simpler than once though. Looks like the main issue was that I didn't have two hidden required fields included: <input type="hidden" name="from" value="" /> <input type="hidden" name="subject" value="Email Contact" /> For some reason this caused my form to malfunction.


1

The index.php and admin.php files in each site's document root references the shared system directory for all the sites. So, if the sites were on different servers you wouldn't be able to access the system folder path which lies on another server.


1

I had this problem recently after the host upgraded to PHP 5.3.27. The front of the site worked fine but when I tried to log in to the CP (after logging in) I got the white screen of death. Are you able to log in at all? My problem was that the new version of PHP had been compiled, quite correcty, with an oAuth plugin. This caused a problem with an old ...


1

Those PHP features were deprecated long ago, EE core is certainly not using them. You may however run into issues with add-ons, especially on older sites running EE 2.2. On your up to date versions though you should be fine. I know a large number of EE sites are using PHP 5.4 these days with no issues.


1

After much rolling back, redeploying, branching, merging, and banging my head, looks like it was something to do with the FocusLab portable configuration setup. I set this up locally on the site after I FTP'd it down from the host but before I made my first GIT commit, so a full rollback and deploy didn't undo this part of the system. Note, we use FocusLab ...


1

I generate XML files for orders for clients in a very similar format - I use {exp:query sql=""}...{/exp:query} for the lot. Eg, I don't touch any exp:channel / order:items / embeds etc. Can spit out ~1500 orders and relevant details in no time - We have a separate function that can run live currency conversion on the order totals in these XML files - whilst ...


1

Which hosting provider do you use? What version of IIS/Windows do they use? You can try to add a web.config file to your root <configuration> <system.web> <customErrors mode="Off" /> <compilation debug="true" /> </system.web> <system.webServer> <rewrite> <rules> <rule name="...


1

Can you force C:\path\to/webroot/folder instead? I have that in use on a Win server with EE. You might also change from Imgsizer to CE Image - when I did that I was able to remove the base_path type parameters from my plugin calls.


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