Help us understand the problem. What is going on with this article?

Bash on Ubuntu on Windowsにphpをインストール

More than 3 years have passed since last update.

とりあえず日本語に変更

sudo apt install language-pack-ja
sudo /usr/sbin/update-locale LANG=ja_JP.UTF-8

phpのレポジトリを追加

sudo add-apt-repository ppa:ondrej/php

好きなバージョンをインストール

sudo apt install php[5.5|5.6|7.0|7.1]

ビルトインサーバを立ち上げてブラウザで確認

echo '<?php phpinfo();' > info.php
php -S localhost:8000

http://localhost:8000/info.php にアクセスするとphpinfoが見えます
ビルトインサーバはCtrl-Cで終了します

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away