LoginSignup
0
0

More than 1 year has passed since last update.

RaspberryPi への LAMP 環境の構築(補正)

Posted at

久しぶりの投稿です。
1年以上間が空きましたが、続きで、『QRコードリーダ使った、jukebox作り』に
取り組みたいと思います。(またクリスマスを逃してしましたが。。)

その前に、RasoberryPiの環境整備です。
 (https://qiita.com/bb-mint/items/42ac7b41f0bd4f965502 の補正)
LAMPを構築しておきます。

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.63-v7+ #1488 SMP Thu Nov 18 16:14:44 GMT 2021 armv7l GNU/Linux


RaspberryPi への LAMP 環境の構築(補正)

phpは、php7.4 になっていますね。
MariaDBの初期設定が多少変わっているようです。


php7.4への変更は、設定などに大きな課題はなさそうです。

pi@raspberrypi:~ $ sudo vi /etc/apache2/mods-enabled/php7.4.conf


MariaDBの初期設定から
最初の質問が多少増えているようです。

pi@raspberrypi:~ $ sudo systemctl start mariadb.service
pi@raspberrypi:~ $ sudo mysql_secure_installation

Enter current password for root (enter for none): <リターンを入れればよいですよね。>
OK, successfully used password, moving on...

Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.

You already have your root account protected, so you can safely answer 'n'.

Switch to unix_socket authentication [Y/n] n <面倒なので n としました>
... skipping.

You already have your root account protected, so you can safely answer 'n'.

Change the root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!

以上で、phpmyadmin を入れても、最後のrootユーザの高すぎるセキュリティへの対応は
必要なくなります。


以上、ひとまず、前回の記事の補正でした。
 https://qiita.com/bb-mint/items/42ac7b41f0bd4f965502

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