0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ubuntu(virtual box)にphpMyAdminをインストールしてみた

Last updated at Posted at 2023-10-03

参照サイト
https://www.yokoweb.net/2020/08/16/ubuntu-20_04-phpmyadmin-install/

apache2をインストール・設定する

apache2をインストールする

terminal
sudo apt install apache2

fqdn.confを生成する

terminal
sudo vi /etc/apache2/conf-available/fqdn.conf
/etc/apache2/conf-available/fqdn.conf
ServerName mysqlserver

fqdn.confの設定を反映させる

terminal
sudo a2enconf fqdn
systemctl reload apache2

動作確認する

コマンド

terminal
sudo apache2ctl configtest
Syntax OK

webブラウザ

It works!が表示されればOK

phpをインストール・設定する

phpをインストールする

terminal
sudo apt install php libapache2-mod-php

phpがインストールできたか確認する

terminal
php -v
PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies

動作確認する

info.phpを生成

terminal
sudo vi /var/www/html/info.php
/var/www/html/info.php
<?php
  phpinfo();
?>

webブラウザ

PHPの情報ページが表示されればOK

phpMyAdminをインストール・設定する

phpMyAdminをインストールする

terminal
sudo apt install phpmyadmin
  • 自動再設定するwebサーバーはapache2を選ぶ
  • dbconfig-commonで設定しますかははいを選ぶ

動作確認する

webブラウザ

phpMyAdminのログインページが表示されればOK

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?