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?

テスト環境を作ろう! PHPインストール編①

Last updated at Posted at 2025-01-24

CentOS8へPHP8.3のインストール

EPELリポジトリ追加
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

PHP8.0以上が存在することを確認する
dnf module list php

Remi リポジトリ追加
dnf module enable php:remi-8.3

PHP8.3インストール
dnf install php

Apacheを再起動して適用
systemctl restart httpd

PHP8.3になっているか確認する
php -v

エラー

①phpを確認しようとしたら以下の文字が表示された
「お使いのサーバーのPHPではWordPressに必要なMySQL拡張を利用できないようです。」
->以下のコマンドでインストールをして解決

dnf install -y php php-mbstring php-xml php-xmlrpc php-gd php-pdo php-mysqlnd php-json

## 完了
次は簡単にホームページを作成できるwordpressをインストール!

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?