how to change install path

Moderator: Coursenligne

how to change install path

Postby drodriguez » Sun Aug 05, 2012 1:14 am

I need to change installation path but cannot find where this setting is stored, does anyone know the answer? or where to look for?
I'm using 1.9 version.
drodriguez
 
Posts: 15
Joined: Wed Feb 29, 2012 3:11 am

Re: how to change install path

Postby drodriguez » Mon Aug 06, 2012 1:15 am

I had installed chamilo into a temporary folder, then moved into another. When doing that didn't change the $_configuration['url_append'] variable, so the system continue to look for content into /var/www/chamilo. Now I've changed that value and can access to courses but there's no content at all (see the snapshot)

Also found a very annoying piece of code into each course folder, this one:

include("/var/www/chamilo/main/course_home/course_home.php");

Imagine having hundreds of courses and for some reason you need to change that path (/var/www/chamilo) for something else. Wouldn't be better to define a variable to store root folder path? Even though a script could accomplish the task the hardcoded path is not a flexible way to do so.
Attachments
chamilo-snapshot.jpg
chamilo-snapshot.jpg (47.98 KiB) Viewed 885 times
drodriguez
 
Posts: 15
Joined: Wed Feb 29, 2012 3:11 am

Re: how to change install path

Postby drodriguez » Mon Aug 06, 2012 11:12 am

checking log file...

[Mon Aug 06 08:08:54 2012] [error] PHP Notice: Undefined index: update_type in /var/www/aulavirtual/main/inc/local.inc.php on line 250, referer: http://aulavirtual.epet1.edu.ar/index.php
[Mon Aug 06 08:08:54 2012] [error] PHP Notice: Undefined offset: 1 in /var/www/aulavirtual/main/inc/lib/main_api.lib.php on line 5978, referer: http://aulavirtual.epet1.edu.ar/index.php
[Mon Aug 06 08:10:44 2012] [error] PHP Notice: Undefined index: activate_legal in /var/www/aulavirtual/main/inc/lib/course.lib.php on line 3834, referer: http://aulavirtual.epet1.edu.ar/user_portal.php
[Mon Aug 06 08:10:44 2012] [error] PHP Notice: Undefined index: legal in /var/www/aulavirtual/main/inc/lib/course.lib.php on line 3835, referer: http://aulavirtual.epet1.edu.ar/user_portal.php

Files were uploaded again, double checked filesystem permissions also bt still no go.

:(
drodriguez
 
Posts: 15
Joined: Wed Feb 29, 2012 3:11 am

Re: how to change install path

Postby Coursenligne » Wed Aug 08, 2012 9:44 am

What can be done (if you changed the path in th econfig.php file), is that you may have zip files (SCORM format) for our courses.
With the way you are used to, upload one course (just as a test and you'll do the others afterward) into "Archive" folder/directory (depending on the operating system)...
From here, create a new course (just basically giving a name), from "my couses" tab, click on the name of the course you just created, and go right to the bottom. click on "Maintenance", then choose omport option (it's the second choice, the first is generate the file..) - Sorry I do it by heart, don't have my platform running here....

Import, but select "Local", this will show you the content of archive.
From here you'll see if it's working.

Good luck

Just one thing, you may have to recreate all links to images and videos!
It's not a good idea to move the platform, it's faster to reinstall it when it's possible, which is not always the case :)
Coursenligne
 
Posts: 1258
Joined: Sat Apr 09, 2011 9:59 pm

Re: how to change install path

Postby adeschenes » Sun Aug 12, 2012 2:42 pm

Hi drodriguez,

Let us know if it is working...

Thanks,

Alain
adeschenes
 
Posts: 452
Joined: Fri Mar 05, 2010 6:33 pm
Location: Québec, Canada

Re: how to change install path

Postby drodriguez » Sun Aug 12, 2012 7:01 pm

I had no time to work on this issue but this week something will come out. Maybe going backwards to 1.8.x, exporting courses and installing a fresh 1.9 to import them back.
drodriguez
 
Posts: 15
Joined: Wed Feb 29, 2012 3:11 am

Re: how to change install path

Postby mark111 » Mon Aug 13, 2012 9:28 am

nice little bug.
Please, open an issue on support.chamilo.org
(prevents moving/deploying to another host, another url)

edit:
issue opened ( http://support.chamilo.org/issues/5309 )
mark111
 
Posts: 21
Joined: Wed Jan 20, 2010 10:29 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 4 guests

how to change install path

Moderator: Coursenligne

how to change install path

Postby drodriguez » Sun Aug 05, 2012 1:14 am

I need to change installation path but cannot find where this setting is stored, does anyone know the answer? or where to look for?
I'm using 1.9 version.
drodriguez
 
Posts: 15
Joined: Wed Feb 29, 2012 3:11 am

Re: how to change install path

Postby drodriguez » Mon Aug 06, 2012 1:15 am

I had installed chamilo into a temporary folder, then moved into another. When doing that didn't change the $_configuration['url_append'] variable, so the system continue to look for content into /var/www/chamilo. Now I've changed that value and can access to courses but there's no content at all (see the snapshot)

Also found a very annoying piece of code into each course folder, this one:

include("/var/www/chamilo/main/course_home/course_home.php");

Imagine having hundreds of courses and for some reason you need to change that path (/var/www/chamilo) for something else. Wouldn't be better to define a variable to store root folder path? Even though a script could accomplish the task the hardcoded path is not a flexible way to do so.
Attachments
chamilo-snapshot.jpg
chamilo-snapshot.jpg (47.98 KiB) Viewed 885 times
drodriguez
 
Posts: 15
Joined: Wed Feb 29, 2012 3:11 am

Re: how to change install path

Postby drodriguez » Mon Aug 06, 2012 11:12 am

checking log file...

[Mon Aug 06 08:08:54 2012] [error] PHP Notice: Undefined index: update_type in /var/www/aulavirtual/main/inc/local.inc.php on line 250, referer: http://aulavirtual.epet1.edu.ar/index.php
[Mon Aug 06 08:08:54 2012] [error] PHP Notice: Undefined offset: 1 in /var/www/aulavirtual/main/inc/lib/main_api.lib.php on line 5978, referer: http://aulavirtual.epet1.edu.ar/index.php
[Mon Aug 06 08:10:44 2012] [error] PHP Notice: Undefined index: activate_legal in /var/www/aulavirtual/main/inc/lib/course.lib.php on line 3834, referer: http://aulavirtual.epet1.edu.ar/user_portal.php
[Mon Aug 06 08:10:44 2012] [error] PHP Notice: Undefined index: legal in /var/www/aulavirtual/main/inc/lib/course.lib.php on line 3835, referer: http://aulavirtual.epet1.edu.ar/user_portal.php

Files were uploaded again, double checked filesystem permissions also bt still no go.

:(
drodriguez
 
Posts: 15
Joined: Wed Feb 29, 2012 3:11 am

Re: how to change install path

Postby Coursenligne » Wed Aug 08, 2012 9:44 am

What can be done (if you changed the path in th econfig.php file), is that you may have zip files (SCORM format) for our courses.
With the way you are used to, upload one course (just as a test and you'll do the others afterward) into "Archive" folder/directory (depending on the operating system)...
From here, create a new course (just basically giving a name), from "my couses" tab, click on the name of the course you just created, and go right to the bottom. click on "Maintenance", then choose omport option (it's the second choice, the first is generate the file..) - Sorry I do it by heart, don't have my platform running here....

Import, but select "Local", this will show you the content of archive.
From here you'll see if it's working.

Good luck

Just one thing, you may have to recreate all links to images and videos!
It's not a good idea to move the platform, it's faster to reinstall it when it's possible, which is not always the case :)
Coursenligne
 
Posts: 1258
Joined: Sat Apr 09, 2011 9:59 pm

Re: how to change install path

Postby adeschenes » Sun Aug 12, 2012 2:42 pm

Hi drodriguez,

Let us know if it is working...

Thanks,

Alain
adeschenes
 
Posts: 452
Joined: Fri Mar 05, 2010 6:33 pm
Location: Québec, Canada

Re: how to change install path

Postby drodriguez » Sun Aug 12, 2012 7:01 pm

I had no time to work on this issue but this week something will come out. Maybe going backwards to 1.8.x, exporting courses and installing a fresh 1.9 to import them back.
drodriguez
 
Posts: 15
Joined: Wed Feb 29, 2012 3:11 am

Re: how to change install path

Postby mark111 » Mon Aug 13, 2012 9:28 am

nice little bug.
Please, open an issue on support.chamilo.org
(prevents moving/deploying to another host, another url)

edit:
issue opened ( http://support.chamilo.org/issues/5309 )
mark111
 
Posts: 21
Joined: Wed Jan 20, 2010 10:29 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 4 guests

Social network

Youtube

Subscribe to our newsletter

Leave us your e-mail in the box below, then make sure you approve the confirmation e-mail you will receive

 


 

Upcoming events