305号室

メモ。個人開発のことをかいたりするかもしれない。

#ゆるdev 2日目

起動した


確認

久々に内部を見るのでいろいろ確認。

systemctl status httpd systemctl status mariadb


remiの追加

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

phpの追加

yum install --enablerepo=remi,remi-php72 php php-devel php-mbstring php-mysqlnd php-pdo php-gd

php-myadminの追加

yum install --enablerepo=remi,remi-php72 phpMyAdmin

セキュリティ設定

cd /etc/httpd/conf.d/ cp phpMyAdmin.conf phpMyAdmin.conf_copy ===> confの内容を修正

yum install mod_ssl systemctl restart httpd

  • phpmyadminのアクセスURLを変更しようという内容だが、
  • phpMyAdmin.confの内容がDL時そもそも違うこと、
  • 勘で修正してみても404 Forbiddenになるので素直にお問い合わせしてみる

ドメイン設定

apacheの修正

cp httpd.conf httpd.conf_copy20220302

vi /etc/httpd/conf/httpd.conf

⇒  httpdの内容修正(ドメインの設定)

systemctl restart httpd