#author("2025-12-20T04:01:49+00:00","default:iseki","iseki") #author("2025-12-20T04:02:13+00:00","default:iseki","iseki") * 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 -nodes \ -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 character set utf8mb4; MariaDB [(none)]> grant all on moodle_db.* to moodle_user identified by 'moodle_pass'; MariaDB [(none)]> flush privileges; MariaDB [(none)]> exit **** PHP v8.3 - remi リポジトリを使用 dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm 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/stable501/moodle-latest-501.tgz 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 use the one at /var/www/moodle-5.1.1+? [y,n]? y ..... Continue as root/super user [yes]? yes No composer.json in current directory, do you want to use the one at /var/www/moodle-5.1.1+? [y,n]? y ..... Continue as root/super user [yes]? yes cd .. chown -R apache: vendor **** 接続 - https://......./moodle/ にアクセス #br #br