Welcome Guest, Not a member yet? Register   Sign In
installing CI app on the subfolder of another CI app in my webserver
#1

[eluser]n1colius[/eluser]
hi i have a problem regarding in installing CI app on the subfolder of my main app that also build in CI

so let's say my domain is www.mydomain.com and the app is in the root of my public_html folder. then i add another CI app that located in /public_html/demo/another_ciapp

i already change the base url config to http://www.mydomain.com/demo/another_ciapp/
but it's not working and it gives me this error

Code:
Warning: require(/home/nikoliu1/public_html/demo/ci-ajax-smtpmail/system//home/nikoliu1/public_htmldemo/ci-ajax-smtpmail/application/config/constants.php) [function.require]: failed to open stream: No such file or directory in /home/nikoliu1/public_html/demo/ci-ajax-smtpmail/system/codeigniter/CodeIgniter.php on line 52

Fatal error: require() [function.require]: Failed opening required '/home/nikoliu1/public_html/demo/ci-ajax-smtpmail/system//home/nikoliu1/public_htmldemo/ci-ajax-smtpmail/application/config/constants.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nikoliu1/public_html/demo/ci-ajax-smtpmail/system/codeigniter/CodeIgniter.php on line 52

any ideas how to fix this?
#2

[eluser]cereal[/eluser]
Read the User Guide:

http://www.ellislab.com/codeigniter/user..._apps.html

you have to modify the index.php file, bye
#3

[eluser]William Lopes[/eluser]
I don't know if understand right, but you wanna put other app?
If, create one folder e put the main "index.php" and folder "application" (even the CI) in the folder. Change your "$system_folder" for the way "CI system". Change normaly your config.php in "application".

Ex.:

$system_folder = "/home/nikoliu1/public_html/demo/ci-ajax-smtpmail/system"

another_ciapp (any name)
--> application (folder)
--> index.php (file)

Access by link from new folder, ex.: http://www.mydomain.com/demo/another_ciapp/

Sorry for the spelling, I'm Brazilian.

Hugs!
#4

[eluser]n1colius[/eluser]
@cereal & @william

thanks for the advise.
it's working now, i just put the fullpath for the BASEPATH and APPPATH in my index.php
#5

[eluser]William Lopes[/eluser]
[quote author="n1colius" date="1292165176"]@cereal & @william

thanks for the advise.
it's working now, i just put the fullpath for the BASEPATH and APPPATH in my index.php[/quote]
You're welcome. I'm trying to help more the community now.

Hugs.




Theme © iAndrew 2016 - Forum software by © MyBB