2
3

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.

【Ubuntu】UbuntuにLAMP環境を構築する

Last updated at Posted at 2015-02-08

ユーザの作成

ユーザの作成

# adduser nishide
Adding user `nishide' ...
Adding new group `nishide' (1001) ...
Adding new user `nishide' (1001) with group `nishide' ...
Creating home directory `/home/nishide' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for nishide
Enter the new value, or press ENTER for the default
	Full Name []:
	Room Number []:
	Work Phone []:
	Home Phone []:
	Other []:
Is the information correct? [Y/n]

作成したユーザにsudo権限を付与

# usermod -G sudo nishide	

LAMP環境の構築

※ apt-getじゃなくてapptitudeを使うパターンも後に確認。

OSパッケージを最新にアップデート

# apt-get update -y

関連する開発パッケージのインストール

# apt-get install openssl

Apacheのインストール

# apt-get install apache2 -y

MySQLのインストール

# apt-get install -y mysql-server libapache2-mod-auth-mysql

PHPのインストール

# apt-get install -y php5 php5-mysql libapache2-mod-php5 php5-mcrypt php5-json

その他メモ

initctlコマンド

# initctl restart ssh		# sshをリスタート
2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?