EllisLab text mark
Advanced Search
     
Need to allow multiple apps from same CI install
Posted: 20 November 2012 10:21 AM   [ Ignore ]
Avatar
Joined: 2012-11-16
2 posts

Hi

I am new to CI.

I need to be able to create multiple apps that can be accessed at same time, currently I am using WAMP as my install Appache install.

I see this guidance here:
http://ellislab.com/codeigniter/user-guide/general/managing_apps.html

Is there a way to make this work without needing to manually cahnge the Index.php in the www root folder.
$application_folder = “applications/foo”;

Thanks for your help

 Signature 

Mike

 
Posted: 20 November 2012 10:53 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-24
717 posts

The way I do it create multiple roots with their own index.php

Folder structure
- CI
- app 1
- app2
- root 1
- root 2

 Signature 

The art of managing is to explain tomorrow why yesterdays solution doesn’t work today.
livecodes.eu
gwwbouw.nl

 
Posted: 20 November 2012 02:02 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2012-11-16
2 posts

Hi Rogierb

Thanks for the reply.  any thought how to set up Apache so that when an intranet user call app1 , the http://servetname:3066/app1 starts if a second user calls http://servetname:3066/app2 at the same time http://servetname:3066/app2 starts.

Many thanks
Mike

 Signature 

Mike

 
Posted: 21 November 2012 04:36 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-24
717 posts

In apache its called an ‘Alias’

Alias /app1"/var/www/app1_root/"
    
<Directory "/var/www/app1_root/">
        
Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order deny
,allow
        Allow from all
    
</Directory>
    
Alias /app2"/somedir/app2_root/"
    
<Directory "/somedir/app2_root/">
        
Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order deny
,allow
        Allow from all
    
</Directory
 Signature 

The art of managing is to explain tomorrow why yesterdays solution doesn’t work today.
livecodes.eu
gwwbouw.nl

 
Posted: 21 November 2012 04:47 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2010-06-09
50 posts

use HMVC Architecture in codeigniter

 Signature 

Anbu