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.

Silly enough to run PLESK and host people? Make CI default for every domain.

January 11, 2008 2:50am

Subscribe [2]
  • #1 / Jan 11, 2008 2:50am

    awpti

    137 posts

    It’s actually pretty simple!

    I dropped the codeigniter files in /var/www/vhosts/.skel/0/httpdocs/

    Modified /var/www/vhosts/.skel/0/httpdocs/system/application/config/config.php

    and changed:

    $config[‘base_url’]    = “”;

    to:

    $config[‘base_url’]    = “http://{$_SERVER['HTTP_HOST']}/”;

    Works like a charm! Doubt to many people will use it, but what the hell, right? 😊

  • #2 / Jan 11, 2008 5:27am

    johnwbaxter

    651 posts

    I use plesk. It’s scary. My favourite part about plesk is that the backup system doesn’t actually work. You’d never be able to restore your sites after a crash. Never…

  • #3 / Jan 11, 2008 5:34am

    awpti

    137 posts

    Works fine for me. I used the backup to move from a VDed to a Dedicated box.

    If you try to restore a 7.5/7.6 backup on 8.x.. yeah. Fail.

    If they aren’t working.. you just aren’t doing something right. Anyway, this isn’t the thread for grumbling about PLESK :p

  • #4 / Jan 11, 2008 6:09am

    johnwbaxter

    651 posts

    No, you’re right it isn’t the thread. I don’t really use it anyway, it just would have been nice if the backups could have worked for me is all.

    Good tip about the skeleton setup though, i may use that for something else entirely!

  • #5 / Jan 11, 2008 10:26am

    Neovive

    57 posts

    Thanks for the advice.  Do you have any tips on setting up the same configuration on a CPanel system?

  • #6 / Jan 11, 2008 11:45am

    awpti

    137 posts

    My experience is minimal with cPanel, but I don’t think cPanel makes use of open_basedir restrictions. At the very worst, you may need to disable safe_mode though.

  • #7 / Jan 11, 2008 11:58am

    Neovive

    57 posts

    Yes.  I setup a new VPS on Plesk about a year ago, but switched back to CPanel a few months later—since so many things stopped working.  I tried to get all the open_basedir issues straightened out, but I just gave up in the end.  CPanel definitely has its quirks as well—I especially hate the weird directory and usernames it creates.

    To setup CI, I guess I could just manually create a directory within the filesystem and hardcode the system directory into CI default index.php file.  I’ve done this on my Windows development system and it works very well.  Maybe even linking the CI core system directory to SVN as well.

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

ExpressionEngine News!

#eecms, #events, #releases