INSTALL 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. INSTALLATION
  2. On Debian Lenny
  3. Base install
  4. apt-get install php5-xapian
  5. (you need version 1.x of Xapian here - check xapian.org for older Deb/Ub)
  6. two bugs:
  7. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493944
  8. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493941
  9. on dokeos root:
  10. mkdir app/upload/plugins/xapian/searchdb
  11. chmod 777 app/upload/plugins/xapian/searchdb (or equivalent)
  12. Useful xapian development tools
  13. apt-get install xapian-doc xapian-tools
  14. (See delve command)
  15. On Ubuntu 8.10
  16. Chamilo 1.8.8 + XAPIAN in Ubuntu 10.10
  17. 1. Activate the search module setting in main/admin/settings.php?category=Search
  18. 2. Go to main/admin/specific_fields.php and Specific fields (Those are text fields that will be add in documents, exercises, links in order to index data)
  19. i.e i.e. Author, Body part, Technology, Topic
  20. 3. Go to main/admin/settings.php?category=Search and set a Specific field by default
  21. 4. Install the Xapian module for PHP5
  22. sudo apt-get install php5-xapian
  23. 5. Install the imagemagick modules
  24. sudo apt-get install imagemagick
  25. sudo apt-get install php5-imagick
  26. 6. In Chamilo root
  27. mkdir app/upload/plugins/xapian/searchdb
  28. sudo chmod 777 app/upload/plugins/xapian/searchdb
  29. 7. Useful Xapian development tools
  30. sudo apt-get install xapian-doc xapian-tools
  31. 8. Restart Apache
  32. 9. Create a course and 2 *new* Learning paths for testing
  33. 10.Edit the LPs created and add/edit the specific fields (i.e. Author, Body part, Technology, Topic)
  34. 11.Go to the
  35. On Ubuntu 12.04
  36. Chamilo 1.9.4 + Xapian in Ubuntu 12.04
  37. Since php5-xapian bindings are not available due to license inconsistencies, you have to build the php5-xapian package yourself.
  38. you can follow the instrucions on the xapian.org wiki: http://trac.xapian.org/wiki/FAQ/PHP%20Bindings%20Package
  39. build packages:
  40. sudo apt-get build-dep xapian-bindings
  41. sudo apt-get install php5-dev php5-cli devscripts
  42. apt-get source xapian-bindings
  43. cd xapian-bindings-1.2.*
  44. rm -f debian/control debian/*-stamp
  45. env PHP_VERSIONS=5 debian/rules maint
  46. sed -i 's!include_path=php5$!include_path=$(srcdir)/php5!' php/Makefile.in
  47. echo auto-commit >> debian/source/options
  48. debuild -e PHP_VERSIONS=5 -us -uc
  49. cd ..
  50. If you're using PHP 5.4, then subclassing Xapian classes in PHP doesn't currently work properly and the testsuite will fail with
  51. a segmentation fault. The wrappers work otherwise, so if that's all you need, you can build the package without running the testsuite
  52. by changing the penultimate command above to:
  53. env DEB_BUILD_OPTIONS=nocheck debuild -e PHP_VERSIONS=5 -us -uc
  54. Then you can install the built package:
  55. sudo dpkg -i php5-xapian_*.deb