【Rocky Linux 9 LAMP環境構築】
端末でスーパーユーザー(root)での操作になります。
事前に、Epelをインストールしてください。
Epelを有効にするには、crb リポジトリーも有効にします。
dnf install epel-release
dnf config-manager --enable crb
【WEBサーバー・メールサーバー・Perl言語のインストール】
httpd → WebサーバーでApacheです。
perl perl-CGI mod_perl → プログラミング言語
sendmail → メール送信サーバー
postfix → sendmail代替サーバー
dnf install httpd perl perl-CGI mod_perl sendmail postfix
【SE_Linux関連ソフトのインストール】
dnf install "policycoreutils*"
【データーベース・ソフトのインストール】
dnf install "mariadb*"
【PHPプログラミング言語関連のインストール】
dnf install php php-cli phpMyAdmin composer php-fedora-autoloader
【SELinux Managementの起動・設定】
【SE_Linuxの緩和設定】
SE_Linuxの論理値を有効にして
WEBサーバーでコンテンツが
表示されるように設定します。
【SE_Linuxの管理】
httpd_enable_homedirs → ユーザー・ディレクトリーを有効にする
httpd_ssi_exec → サーバーサイドインクルードを有効にする
httpd_can_sendmail → メール送信を有効にする
httpd_can_network_connect → PHPからSQLを有効にする
httpd_can_execmem → PHPを有効にする
【Webサーバーの起動】
systemctl status httpd
systemctl enable httpd
systemctl start httpd
【メールサーバーの選択】
alternatives --config mta
【メールサーバーの起動】
systemctl status postfix
systemctl enable postfix
systemctl start postfix
【データーベースサーバーの起動】
systemctl status mariadb
systemctl enable mariadb
systemctl start mariadb
【ホスト名の確認】
hostnamectl
【ホスト名の設定】
hostnamectl set-hostname localhost.localdomain
【Webサーバーの稼働確認】
http://localhost/
【データーベースの稼働確認】
http://localhost/phpMyAdmin/
以上、Rocky Linux 9 Cinnamon LAMP環境構築の簡単紹介でした。
有難うございました。