Welcome Guest, Not a member yet? Register   Sign In
Multiple apps in wamp with just one CI installation
#1

[eluser]IgnitedOne[/eluser]
1. Extract the CodeIgniter zip to c:\wamp.
2. Navigate with My Computer to C:\wamp\CodeIgniter_1.7.1\system\application.

Let's assume you initially want to develop 3 CI Web apps in folders named:

- app1
- app2
- app3

3. Make FOUR new subfolders as below (note special 4th folder):

- C:\wamp\CodeIgniter_1.7.1\system\application\app1
- C:\wamp\CodeIgniter_1.7.1\system\application\app2
- C:\wamp\CodeIgniter_1.7.1\system\application\app3
- C:\wamp\CodeIgniter_1.7.1\system\application\copyfornewapp

4. Copy EVERYTHING EXCEPT THE 4 NEW FOLDERS (copy 9 folders and index.html) from the

C:\wamp\CodeIgniter_1.7.1\system\application folder into app1.

5. Repeat step 4 for the 3 other new folders.

At this point, the C:\wamp\CodeIgniter_1.7.1\system\application folder should have its 9

original folders (config,controllers,errors, etc),index.html, and our 4 new folders:

C:\wamp\CodeIgniter_1.7.1\system\application\app1\ holding 9 folders and index.html
C:\wamp\CodeIgniter_1.7.1\system\application\app2\ holding 9 folders and index.html
C:\wamp\CodeIgniter_1.7.1\system\application\app3\ holding 9 folders and index.html
C:\wamp\CodeIgniter_1.7.1\system\application\copyfornewapp\ holding 9 folders and index.html

6. You can now delete the 9 original folders and index.html from the

C:\wamp\CodeIgniter_1.7.1\system\application folder, leaving only our 4 new folders:

C:\wamp\CodeIgniter_1.7.1\system\application\app1\ holding 9 folders and index.html
C:\wamp\CodeIgniter_1.7.1\system\application\app2\ holding 9 folders and index.html
C:\wamp\CodeIgniter_1.7.1\system\application\app3\ holding 9 folders and index.html
C:\wamp\CodeIgniter_1.7.1\system\application\copyfornewapp\ holding 9 folders and index.html

DO NOT ALTER THE copyfornewapp FOLDER. KEEP IT TO COPY FOR FUTURE CI Web apps.

7. Copy index.php and license.txt from the C:\wamp\CodeIgniter_1.7.1 folder to c:\wamp\www

8. Rename the index.php file in in c:\wamp\www to indexapp1.php.

9. Make copies of indexapp1.php named indexapp2.php and indexapp3.php in c:\wamp\www

At this point, c:\wamp\www holds these files:

c:\wamp\www\indexapp1.php
c:\wamp\www\indexapp2.php
c:\wamp\www\indexapp3.php
c:\wamp\www\license.txt

Next, we configure the app1 application. Use a similar approach for all other Web apps.

10. Open indexapp1.php and make these changes:

$system_folder = "../CodeIgniter_1.7.1/system";

$application_folder = "application/app1";

11. Save indexapp1.php

12. Open C:\wamp\CodeIgniter_1.7.1\system\application\app1\config\config.php and make this

change...WITH TRAILING SLASH:

$config['base_url'] = "http://localhost/";

13. Save config.php


That's it. Fire up wampserver and load http://localhost and select indexapp1.php in your

browser. You should see the CI welcome screen:

Welcome to CodeIgniter!

Configure your other Web apps in the same way, each with its own index????.php file.
Hope this helps some folks out...it works


Messages In This Thread
Multiple apps in wamp with just one CI installation - by El Forum - 04-04-2009, 06:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB