Julio Montoya 8cd85a7c69 Illustration - Refactor code, add "crop" property in ResourceFile. | 5 年之前 | |
---|---|---|
.github | 6 年之前 | |
assets | 5 年之前 | |
bin | 5 年之前 | |
certificates | 5 年之前 | |
config | 5 年之前 | |
custompages | 5 年之前 | |
documentation | 6 年之前 | |
main | 5 年之前 | |
plugin | 5 年之前 | |
public | 5 年之前 | |
src | 5 年之前 | |
templates | 6 年之前 | |
tests | 5 年之前 | |
translations | 5 年之前 | |
var | 5 年之前 | |
.codeclimate.yml | 6 年之前 | |
.editorconfig | 7 年之前 | |
.env | 5 年之前 | |
.env.test | 5 年之前 | |
.flintci.yml | 6 年之前 | |
.gitattributes | 5 年之前 | |
.gitignore | 5 年之前 | |
.htaccess | 5 年之前 | |
.php_cs | 6 年之前 | |
.php_cs.dist | 6 年之前 | |
.scrutinizer.yml | 6 年之前 | |
.travis.yml | 5 年之前 | |
.yamllint_config | 6 年之前 | |
CODE_OF_CONDUCT.md | 6 年之前 | |
CONTRIBUTING.md | 6 年之前 | |
LICENSE | 6 年之前 | |
README.md | 5 年之前 | |
apple-touch-icon.png | 10 年之前 | |
composer.json | 5 年之前 | |
index.php | 5 年之前 | |
license.txt | 6 年之前 | |
package.json | 5 年之前 | |
phpstan.neon | 5 年之前 | |
robots.txt | 6 年之前 | |
ruleset.xml | 6 年之前 | |
user_portal.php | 5 年之前 | |
webpack.config.js | 5 年之前 | |
whoisonline.php | 5 年之前 | |
whoisonlinesession.php | 5 年之前 | |
yarn.lock | 5 年之前 |
Chamilo is an e-learning platform, also called "LMS" or "LCMS" published under GNU/GPLv3+. It is or has been used by more than 20M people worldwide.
Chamilo 2.0 is still in development stage. This install procedure is for reference only. For a stable Chamilo, please install Chamilo 1.11.x. See the 1.11.x branch README.md for details.
We assume you have already installed "yarn" and "composer" and you're installing the portal in a domain, not in a sub folder inside a domain.
# on a fresh Ubuntu, you can prepare your server by issuing an apt command like the following
apt update && apt -y upgrade && apt install apache2 libapache2-mod-php mariadb-client mariadb-server php-pear php-dev php-gd php-curl php-intl php-mysql php-mbstring php-zip php-xml php-cli php-apcu php-bcmath git unzip
# otherwise, you can use the following directly:
git clone https://github.com/chamilo/chamilo-lms.git chamilo2
cd chamilo2
composer install (If composer asks to accept recipes, just press enter or "n")
php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
yarn install
yarn run encore dev
chmod -R 777 .
Then enter the main/install/index.php and follow the UI instructions (database, admin user settings, etc).
After the web install process, change the permissions back to a reasonnably safe state:
chmod -R 755 .
chown -R www-data: public/ var/
If you have already installed it and just want to update it from Git, do:
git pull origin master
composer update
php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
yarn upgrade
yarn encore dev
This will update the JS (yarn) and PHP (composer) dependencies.
If you are a developer and want to contribute to Chamilo in the current development branch (not stable yet), then please follow the instructions below. Please bear in mind that the development version is NOT COMPLETE at this time, and many features are just not working yet. This is because we are working on root components that require massive changes to the structure of the code, files and database. As such, to get a working version, you might need to completely uninstall and re-install from time to time. You've been warned.
First, apply the procedure described here: Managing CSS and JavaScript in Chamilo (in particular, make sure you follow the given links to install all the necessary components on your computer).
Then make sure your database supports large prefixes (see this Stack Overflow thread if you use MySQL < 5.7 or MariaDB < 10.2.2).
Load the (your-domain)/main/install/index.php URL to start the installer (which is very similar to the installer in previous versions). If the installer is pure-HTML and doesn't appear with a clean layout, that's because you didn't follow these instructions carefully. Go back to the beginning of this section and try again.
Finally, if you are installing this development version in a subdirectory, you will need to add "the folder" in the ".env" file in the root folder:
APP_URL_APPEND=the-folder
See https://github.com/chamilo/chamilo-lms/projects/3
If you want to submit new features or patches to Chamilo 2, please follow the Github contribution guide https://guides.github.com/activities/contributing-to-open-source/ and our CONTRIBUTING.md file. In short, we ask you to send us Pull Requests based on a branch that you create with this purpose into your repository forked from the original Chamilo repository.
For more information on Chamilo, visit https://campus.chamilo.org/documentation/index.html
You can install Yarn on Ubuntu following the instructions at https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/ You can install Composer on Ubuntu following the instructions at https://getcomposer.org/download/