Ubuntu 16.04上でPHPのデバッグができる環境を整えました。手順をまとめます。 Apache2のインストール まずはApache2のインストールから。 $ sudo apt install apache2 $ sudo a2enmode userdir a2enmodeでuserdirを有効にします。これで、ホームディレクトリのpublic_htmlディレクトリを公開できるようになります。作ったディレクトリが/home/hoge/public_htmlだと、 http://localhost/~hoge/で、public_html以下が公開されます。 PHPのインストール 次は、PHPのインストール。 $ sudo apt install php libapache2-mod-php /etc/apache2/mods-available/php7.0.confのphp_admi