Moodle/v5
をテンプレートにして作成
[
トップ
] [
タイトル一覧
|
ページ一覧
|
新規
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
* v5
** v5.1.1
*** LAMP Install
- Need PHP 8.2, MariaDB 10.11.0
**** [[Apache 2.4>Apache]]
dnf install httpd
dnf install mod_ssl
- httpd.conf
ServerAdmin fumihax@star-dust.jp
ServerName polaris.star-dust.jp:80
DocumentRoot "/var/www/htdocs"
<Directory "/var/www/htdocs">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
AddType application/x-httpd-php .php .php4
AddType application/x-httpd-php-source .phps .php4s
- オレオレ証明書
openssl req -x509 -newkey rsa:2048 -sha256 -days 365 -no...
-keyout /etc/pki/tls/private/jh_test.key \
-out /etc/pki/tls/certs/jh_test.crt \
-subj "/CN=localhost"
- ssl.conf
DocumentRoot "/var/www/htdocs_ssl"
ServerName polaris.star-dust.jp:443
<Directory "/var/www/htdocs_ssl">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
SSLCertificateFile /etc/pki/tls/certs/jh_test.crt
SSLCertificateKeyFile /etc/pki/tls/private/jh_test.key
**** MariaDB
dnf module install mariadb
systemctl start mariadb
ps ax|grep mariadb
- configuration
mariadb-admin -u root password *****
mariadb -u root -p
Enter password:
MariaDB [(none)]> create database db_name default charac...
MariaDB [(none)]> grant all on moodle_db.* to moodle_us...
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit
**** PHP v8.3
- remi リポジトリを使用
dnf install https://rpms.remirepo.net/enterprise/remi-re...
dnf module list | grep php
dnf module reset php
dnf module install php:remi-8.3
dnf install php83-php-devel
php --version
dnf install php-zip
dnf install php-mysqlnd
dnf install libsodium libsodium-devel
dnf install php-sodium php83-php-sodium
dnf install php-gd php-intl php-soap php-opcache
- configuration
vi /etc/php.ini
*** Download and setup of Moodle
wget https://download.moodle.org/download.php/direct/sta...
zcat moodle-latest-501.tgz |tar xfv -
mv moodle moodle-5.1.1+
chown -R apache: moodle-5.1.1+/
cd htdocs_ssl
ln -s ../moodle-5.1.1+/public moodle
**** composer (vendor ディレクトリの作成)
cd /var/www/moodle-5.1.1+
dnf install composer
composer install --no-dev --classmap-authoritative
chown -R apache: vendor/
cd ../htdocs_ssl
ln -s ../moodle-5.1.1+/vendor .
cd moodle
composer install
No composer.json in current directory, do you want to u...
.....
Continue as root/super user [yes]? yes
cd ..
chown -R apache: vendor
**** 接続
- https://......./moodle/ にアクセス
#br
#br
終了行:
* v5
** v5.1.1
*** LAMP Install
- Need PHP 8.2, MariaDB 10.11.0
**** [[Apache 2.4>Apache]]
dnf install httpd
dnf install mod_ssl
- httpd.conf
ServerAdmin fumihax@star-dust.jp
ServerName polaris.star-dust.jp:80
DocumentRoot "/var/www/htdocs"
<Directory "/var/www/htdocs">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
AddType application/x-httpd-php .php .php4
AddType application/x-httpd-php-source .phps .php4s
- オレオレ証明書
openssl req -x509 -newkey rsa:2048 -sha256 -days 365 -no...
-keyout /etc/pki/tls/private/jh_test.key \
-out /etc/pki/tls/certs/jh_test.crt \
-subj "/CN=localhost"
- ssl.conf
DocumentRoot "/var/www/htdocs_ssl"
ServerName polaris.star-dust.jp:443
<Directory "/var/www/htdocs_ssl">
Options FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
SSLCertificateFile /etc/pki/tls/certs/jh_test.crt
SSLCertificateKeyFile /etc/pki/tls/private/jh_test.key
**** MariaDB
dnf module install mariadb
systemctl start mariadb
ps ax|grep mariadb
- configuration
mariadb-admin -u root password *****
mariadb -u root -p
Enter password:
MariaDB [(none)]> create database db_name default charac...
MariaDB [(none)]> grant all on moodle_db.* to moodle_us...
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit
**** PHP v8.3
- remi リポジトリを使用
dnf install https://rpms.remirepo.net/enterprise/remi-re...
dnf module list | grep php
dnf module reset php
dnf module install php:remi-8.3
dnf install php83-php-devel
php --version
dnf install php-zip
dnf install php-mysqlnd
dnf install libsodium libsodium-devel
dnf install php-sodium php83-php-sodium
dnf install php-gd php-intl php-soap php-opcache
- configuration
vi /etc/php.ini
*** Download and setup of Moodle
wget https://download.moodle.org/download.php/direct/sta...
zcat moodle-latest-501.tgz |tar xfv -
mv moodle moodle-5.1.1+
chown -R apache: moodle-5.1.1+/
cd htdocs_ssl
ln -s ../moodle-5.1.1+/public moodle
**** composer (vendor ディレクトリの作成)
cd /var/www/moodle-5.1.1+
dnf install composer
composer install --no-dev --classmap-authoritative
chown -R apache: vendor/
cd ../htdocs_ssl
ln -s ../moodle-5.1.1+/vendor .
cd moodle
composer install
No composer.json in current directory, do you want to u...
.....
Continue as root/super user [yes]? yes
cd ..
chown -R apache: vendor
**** 接続
- https://......./moodle/ にアクセス
#br
#br
ページ名: