linux:apache_install
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
linux:apache_install [2021/03/03 15:08] – [Wordpressのインストール] kimi | linux:apache_install [2022/08/23 13:34] (現在) – 外部編集 127.0.0.1 | ||
---|---|---|---|
行 21: | 行 21: | ||
</ | </ | ||
+ | |||
+ | <code sh> | ||
+ | $ sudo a2enmod ssl | ||
+ | Considering dependency setenvif for ssl: | ||
+ | Module setenvif already enabled | ||
+ | Considering dependency mime for ssl: | ||
+ | Module mime already enabled | ||
+ | Considering dependency socache_shmcb for ssl: | ||
+ | Enabling module socache_shmcb. | ||
+ | Enabling module ssl. | ||
+ | See / | ||
+ | To activate the new configuration, | ||
+ | systemctl restart apache2 | ||
+ | kimi@sstweb:/ | ||
+ | Enabling site default-ssl. | ||
+ | To activate the new configuration, | ||
+ | systemctl reload apache2 | ||
+ | $ sudo systemctl reload apache2 | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | <code sh> | ||
+ | $ sudo apt install php | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <code sh> | ||
+ | $ sudo apt install dokuwiki | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
^ Document root | / | ^ Document root | / | ||
===== PHPのインストール ===== | ===== PHPのインストール ===== | ||
+ | |||
<code sh> | <code sh> | ||
$ sudo apt install php libapache2-mod-php | $ sudo apt install php libapache2-mod-php | ||
行 47: | 行 82: | ||
$ sudo systemctl restart apache2 | $ sudo systemctl restart apache2 | ||
</ | </ | ||
- | |||
行 77: | 行 111: | ||
$ sudo chown -R www-data: | $ sudo chown -R www-data: | ||
- MySQLデータベースの設定 | - MySQLデータベースの設定 | ||
- | ^ データベース名 | ||
- | ^ ユーザー名 | ||
- | ^ パスワード | ||
- | ^ ホスト名 | ||
- MySQLのインストール< | - MySQLのインストール< | ||
$ sudo apt install mysql-client-core-8.0 | $ sudo apt install mysql-client-core-8.0 | ||
行 92: | 行 122: | ||
mysql> quit | mysql> quit | ||
$</ | $</ | ||
- | | + | |
- | <code sh> | + | |
- | $ | + | ^ データベース名 |
- | $ sudo cp -r ~/ | + | ^ ユーザー名 |
- | $ tar -xzvf latest.tar.gz | + | ^ パスワード |
- | $ sudo apt install mysql-client-core-8.0 | + | ^ ホスト名 |
- | </ | + | |
===== systemctlの使い方 ===== | ===== systemctlの使い方 ===== | ||
行 110: | 行 139: | ||
====== Under construction ====== | ====== Under construction ====== | ||
+ | <code sh> | ||
+ | $ | ||
+ | $ sudo cp -r ~/ | ||
+ | $ tar -xzvf latest.tar.gz | ||
+ | $ sudo apt install mysql-client-core-8.0 | ||
+ | </ | ||
+ | |||
linux/apache_install.1614751682.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)