반응형

https://moodle.org/


$ sudo systemctl stop firewalld 

$ sudo systemctl disable firewalld 

$ sudo vi /etc/selinux/config

SELINUX=disabled

$ sudo reboot


$ sudo yum -y update

$ sudo yum -y install epel-release

$ sudo cd /etc/yum.repos.d 

$ sudo wget http://rpms.famillecollet.com/enterprise/remi.repo


$ sudo yum -y install mariadb-server

$ sudo systemctl start mariadb

$ sudo systemctl enable mariadb

$ sudo mysql_secure_installation

$ mysql -u root -p

MariaDB> grant all on moodle.* to 'moodleuser'@'localhost' identified by 'password123';

MariaDB> SET GLOBAL innodb_file_format=Barracuda;

MariaDB> SET GLOBAL innodb_file_per_table=on;

MariaDB> SET GLOBAL innodb_large_prefix=on;

MariaDB> exit


$ sudo yum -y --enablerepo=remi,remi-php56 install httpd php php-common php-mysqli php-xml php-gd php-mbstring php-xmlrpc php-soap php-intl

$ cd /var/www/html/

$ sudo git clone git://git.moodle.org/moodle.git

$ cd moodle

$ git branch -a

$ sudo git branch --track MOODLE_33_STABLE origin/MOODLE_33_STABLE

$ sudo git checkout MOODLE_33_STABLE

$ sudo vi /etc/httpd/conf/httpd.conf

#DocumentRoot "/var/www/html"

DocumentRoot "/var/www/html/moodle"


$ sudo systemctl restart httpd.service

$ sudo systemctl enable httpd.service

$ sudo mkdir /home/moodledata

$ sudo chown apache:apache -R /home/moodledata/



http://192.168.56.101 접속

1. Language : English (en) > Next

2. Data directory : /home/moodledata > Next

3. Type : MariaDB (native/mariadb) > Next

4. Database settings

  - Database host : localhost

  - Database name : moodle

  - Database user : moodleuser

  - Database password : password123

  > Next

5. 본문 복사 해서 sudo vi /var/www/html/moodle/config.php에 붙여 넣기

    <?php 

    ~~~

   // it is intentional because it prevents trailing whitespace problems!

   > Next

6. Continue

7. Continue

8. Installation

  - Username : isbyeon

  - New password : ?????????

  - First name : iksu

  - Surname : byeon

  - Email address : iksubyeon@gmail.com

  > Update profile

9. Installation

  - Full site name : isbyeon's test site

  - Short name for site : isbyeon

  > Save changes



반응형

'Linux > CentOS' 카테고리의 다른 글

[명령어] 유용한 명령어  (0) 2020.08.11
특정 프로그램 최대 메모리 사용량 구하기  (0) 2020.03.17
기존 파일이 있을경우 SKIP  (0) 2017.06.08
install LAMP  (0) 2017.01.24
install jdk 7  (0) 2017.01.24
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기