ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Windows server, can't get paths correct for File Uploads and Saving Templates as files

June 22, 2012 9:10am

Subscribe [2]
  • #1 / Jun 22, 2012 9:10am

    TGP

    78 posts

    Just another problem trying to use a Windows server :/ I have contacted the host and had them update the permissions on folders. I’ve been trying to get Save Templates As Files to work and I keep getting the “Can’t Save Template as File” error. If the host did set permissions correctly, then it mut be a path issue. Since it’s a windows server, the server path that is detected is adding a “C:\” to the beginning of the path and the slashes are back instead of forward…

    C:\inetpub\ghdweb\dev\expressionengine\templates\

    I’ve tried changing the slashes to forward slashes and still no luck. I also tried getting the file upload to work, but I had the same problems and I think it’s path related.

    C:\inetpub\ghdcpa\dev\ghdadmin\images\uploads\

    Any thoughts? I also tried changing the slashes to forward and no luck. Should I remove the “C:\”? Thanks for any help!

  • #2 / Jun 24, 2012 6:01pm

    Shane Eckert

    7174 posts

    Hey TGP,

    Hmmmm ... I am not familiar with Windows. Linux guy, but I would think that an absolute system path like that is not needed. See the documentation here

    The path should start at the web server’s home. So like on a shared host that’s usually going to be your user directory.

    /home/usr/domain.com/public_html/system/expressionengine/templates/

    But if this is a server you are not sharing with other folks then the path is going to be with out a user’s home directory. For example ...

    /var/www/html/templates

    Does that makes sense?

    Please let me know if this works for you.

    Cheers,

  • #3 / Jun 25, 2012 10:34am

    TGP

    78 posts

    Shane, I ended up getting this to work with path help from this thread.

    Oddly enough this path worked…C:\inetpub\ghdcpa\dev/ghdadmin/expressionengine/templates/

    This information should be added to the Install docs in a “Windows Server” section or something. Thanks!

  • #4 / Jun 25, 2012 1:04pm

    Shane Eckert

    7174 posts

    Hey TGP,

    Thank you for the followup.

    Please feel free to file a Feature Request to add this information to the docs.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases