![]() |
Sharing the system folder on several domains - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Sharing the system folder on several domains (/showthread.php?tid=38169) |
Sharing the system folder on several domains - El Forum - 02-01-2011 [eluser]Unknown[/eluser] I have tried to share the system folder on my webserver so it can be reached on several domains connected to my webserver, but I get the following error: Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php It is a clean installation and I have created the "system" folder as a Virtual Directory on my ISS manager pointed to an folder where I have copied the System files and folders into. What is wrong? systeminfo: CI version 2 Windows Server 2008 enterprise IIS manager 7 Sharing the system folder on several domains - El Forum - 02-01-2011 [eluser]Unknown[/eluser] I think I have found the solution by myself. in index.php have I put an absolute path: $system_path = "C:/www/CodeIgniter/system"; and that helped... Sharing the system folder on several domains - El Forum - 02-02-2011 [eluser]jakub[/eluser] You shouldn't be modifying the index.php file, always best to focus on the Application/ folder as with the next update you might be faced with making patches to the original code just the same. Sharing the system folder on several domains - El Forum - 02-02-2011 [eluser]icomefromthenet[/eluser] if the system folder is placed above public_html, you should just add extra relative paths. my current setup . codeigniter/1.7.2/ public_html/application/index.php Use path : '../../codeigniter/1.7.2' seems to work ok. |