LoginSignup
0
0

More than 1 year has passed since last update.

Ubuntu20.04上のApacheにPHPをインストールする

Posted at

環境

Ubuntu 20.04.3 LTS
Apache 2.4.41

インストール

 $ sudo apt-install php libapache2-mod-php

動作確認

 $ vi /var/www/html/test.php

次の内容を書き込みます。
保存できない場合はこちらの記事を参考に権限設定をしてみてください。

<?php phpinfo();

保存したら、test.phpにアクセスし、次のように表示されれば成功。
image.png

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