LoginSignup
0
0

More than 5 years have passed since last update.

LAMPローカル開発環境

Last updated at Posted at 2015-11-24

VirtualBoX関係

VMを作るとき64BitOSが選べない→PCの仮想化機能を有効にする。

環境構築1

↓こちらがとても上手く纏まっていると思います。

CentOS7でLAMP環境(https://www.softel.co.jp/blogs/tech/archives/4997)

/etc/php.ini変更

default_charset = "UTF-8"
date.timezone = "Asia/Tokyo"
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = pass
mbstring.http_output = pass
mbstring.encoding_translation = Off
mbstring.detect_order = auto
mbstring.substitute_character = none;
mbstring.func_overload = 0
mbstring.strict_detection = Off
mbstring.http_output_conv_mimetype=

ドキュメントルートの権限変更
chown -R hoge:hogegrp /var/www/html/

環境構築2

CentOS更新

sudo yum -y update

時間の同期

chronyで時刻を同期する

ユーザー追加

useradd hoge
passwd hoge
usermod -G wheel hoge
vi /etc/pam.d/su
#auth required pam_wheel.so use_uid
↓
auth required pam_wheel.so use_uid
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