Search code examples
php.htaccesscodeignitercodeigniter-2staging

I cannot Configure two codeigniter installations on the same server


I'm trying to create a staging environment for my CI based webapp.

I have configured my main CI installation to work with Development and Production environments. Now I want to have a second CI installation on a sub-domain say stage.mysite.com which acts as an staging environment.

Ho do I configure my server or CI so that sub-domains work?


Solution

  • It turned out that it wasn't CodeIgniter installation, it was a permission issue.

    My Host throws 500 when group permission is set to writable.

    After doing a chmod 755 to the whole sub-domain directory the site started working normal.

    This is wiered though.