Welcome Guest, Not a member yet? Register   Sign In
Sharing the system folder on several domains
#1

[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
#2

[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...
#3

[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.
#4

[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.




Theme © iAndrew 2016 - Forum software by © MyBB