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?

More than 5 years have passed since last update.

Ubuntu16.04にPHPの環境構築

Posted at

環境
Ubuntu 16.04

まずは一応アップデートをしておきます。

apt-get update

sudoがなければインストールをします。

apt-get install -y sudo

Apache2をインストールします。(バージョン確認)

sudo apt-get install apache2
apache2 -v

PHP7をインストールします。

sudo add-apt-repository ppa:ondrej/php
/* もし、add-apt-repositoryがなければ
sudo apt-get install software-properties-common
sudo apt-get update
*/
sudo apt-get install php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-mcrypt php7.0-mbstring php7.0-xml
php -v

これでPHPのインストールは完了ですが、Composerも入れておくと便利です。

Composerについては別の記事で。

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?