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.

Installing EE outside of the webroot

November 17, 2008 6:28pm

Subscribe [2]
  • #1 / Nov 17, 2008 6:28pm

    fesweb

    119 posts

    Hi,
    I’ve searched around, but can’t find any summary on installing EE (and the config.php file) outside of the webroot.

    I’ve tried uploading the system files to “/var/www/a-safe-place/” and pointing the $system_path in “/var/www/html/path.php” to the safe place. No go.

    Before I spend more hours trying to accomplish this, I thought I’d ask if it is accomplishable…

    So, if someone could point me in the general direction, I’d appreciate it.

    Thanks,
    Matt

  • #2 / Nov 17, 2008 6:38pm

    Ingmar

    29245 posts

    Let’s take a step back here, what exactly are you trying to accomplish? You can certainly install EE in any directory on your webserver, and then access it there. Are you trying to install it in one place, and then access it via a different URL, pointing to some other directory? I would try to avoid that, if possible.

    Which version and build of EE are you on, by the way? Moving to “Installations”.

  • #3 / Nov 17, 2008 6:47pm

    fesweb

    119 posts

    OK, backing up….

    My main goal is to have the installation be as secure as possible, while still keeping the upgrading process easy - and the number one concern is probably having the config file outside of the webroot.

    The previous server setup I inherited has had major (non-EE related) security/hacking problems, so I’m trying to keep things under control as I move to a new server.

    P.S. I already have CodeIgniter running smoothly on the new machine.

    Thanks.

  • #4 / Nov 17, 2008 7:02pm

    Ingmar

    29245 posts

    My main goal is to have the installation be as secure as possible, while still keeping the upgrading process easy - and the number one concern is probably having the config file outside of the webroot.

    I am note sure this is feasible. EE expects config.php in the system directory, which needs to be below the webroot. To be honest, I don’t quite see the point: Rename your “system” directory to something unguessable, and you should be fine. Even if you bring up config.php in your webbrwoser, you’ll only get “Invalid file request”.

    The previous server setup I inherited has had major (non-EE related) security/hacking problems, so I’m trying to keep things under control as I move to a new server.

    EE was built with security in mind. It’s an issue we take very seriously indeed.

  • #5 / Nov 18, 2008 10:30am

    fesweb

    119 posts

    Thanks, Ingmar.
    I’ll just do it the usual way.

    matt

  • #6 / Nov 18, 2008 12:07pm

    Robin Sowell

    13255 posts

    While I won’t swear it can’t be done- I think going stock (and renaming the system folder) is definitely the way to go on this one.  And if you run into any more issues, just open up a new thread and we’ll take a look.

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

ExpressionEngine News!

#eecms, #events, #releases