Brett Gilbert

ExpressionEngine saving templates as files on MediaTemple

Posted by Brett on Sunday, January 8th, 2012

Even with all the warnings and direction within the documentation of ExpressionEngine on setting up templates as flat files to check with your host on the proper server path – it still took me a good 45 minutes to track the proper path down and get it just right.

The server path is: /var/www/vhosts/example.com/httpdocs/  example.com can even be sub.example.com

I have a Dedicated Virtual 4 ( DV 4.0) at Mediatemple with Plesk 10 and ExpressionEngine 2. I have been working directly in the EE editor which has been fine but just not the same as my normal workflow. Finally took the plunge and attempted to setup the templates as flat files so I can use my preferred editor (Espresso 2)

In the end the full path within the Global Template Preferences is:

/var/www/vhosts/example.com/httpdocs/system/expressionengine/templates/

You need to create the folder default_site but Do NOT include the default_site in this path

As long as you have set the /templates/ folder to be 777 and recursive, all folder and files within your template manager will be automatically created.

Still working on a way to not have to set each template to save as text manually.

 

Posted in: Techie Stuff.

2 Responses to “ExpressionEngine saving templates as files on MediaTemple”

  1. (mt) Matt Says:

    Hey Brett,

    Glad to see ‘taking the plunge’ worked out for you. I’m not completely positive on how to remedy your last issue, but I’ll check and see if any of our techs may have an answer for you. EE forums and (mt) forums are always good places for this info too. Just wanted to let you know that we don’t recommend using 777, as it leaves a open door to your server. If there is any way for this to work, without setting those permissions to 777, we highly suggest taking that route.

    Good luck with everything, and give us a shout if you have any questions.

  2. Brett Says:

    Thanks – Yes – I believe the files can be adjusted to 666 once they are created. Since the whole purpose of this is to manage the files via FTP and an external editor, I think this will work. Really appreciate the comment.

Leave a Reply