CodeIgniter Forums
[SOLVED] 1.7.1 application directory as http alias no longer works - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: [SOLVED] 1.7.1 application directory as http alias no longer works (/thread-15959.html)



[SOLVED] 1.7.1 application directory as http alias no longer works - El Forum - 02-20-2009

[eluser]Relexx[/eluser]
I have CI as my web root then I have the system/application folder defined has a http alias

Code:
Alias /system/application "C:/Adaptive/workspace/eisms/src/trunk/application"

<Directory "C:/Adaptive/workspace/eisms/src/trunk/application" >
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Using 1.7.0 this was working. Since upgrading to 1.7.1 this no longer works and I get the following in my apache error log
Code:
[Fri Feb 20 21:32:10 2009] [error] [client 127.0.0.1] PHP Warning:  require(C:\\Adaptive\\webkit\\CodeIgniter_1.7.1/system/application/config/constants.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in C:\\Adaptive\\webkit\\CodeIgniter_1.7.1\\system\\codeigniter\\CodeIgniter.php on line 52
[Fri Feb 20 21:32:10 2009] [error] [client 127.0.0.1] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required 'C:\\Adaptive\\webkit\\CodeIgniter_1.7.1/system/application/config/constants.php' (include_path='.;C:\\php5\\pear') in C:\\Adaptive\\webkit\\CodeIgniter_1.7.1\\system\\codeigniter\\CodeIgniter.php on line 52
[Fri Feb 20 21:32:52 2009] [error] [client 127.0.0.1] PHP Warning:  require(C:\\Adaptive\\webkit\\CodeIgniter_1.7.1/system/application/config/constants.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in C:\\Adaptive\\webkit\\CodeIgniter_1.7.1\\system\\codeigniter\\CodeIgniter.php on line 52
[Fri Feb 20 21:32:52 2009] [error] [client 127.0.0.1] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required 'C:\\Adaptive\\webkit\\CodeIgniter_1.7.1/system/application/config/constants.php' (include_path='.;C:\\php5\\pear') in C:\\Adaptive\\webkit\\CodeIgniter_1.7.1\\system\\codeigniter\\CodeIgniter.php on line 52

has anybody else received this error? or have a work around (besides copying my application directory into my CI system folder.

System is
Win XP
Apache 2.2
PHP 5


[SOLVED] 1.7.1 application directory as http alias no longer works - El Forum - 02-23-2009

[eluser]Relexx[/eluser]
My bad. I forgot to change the application folder path in the index.php file.


[SOLVED] 1.7.1 application directory as http alias no longer works - El Forum - 02-23-2009

[eluser]Derek Allard[/eluser]
Glad to hear it was a simple thing! Smile