ねこきっくぱんちのメモ帳

ITに関することいろいろめも。たまにアニメ。

web024 さくらVPSにPHP環境構築

さくらVPSPHP環境構築

やったこと

■環境
CentOS6.9

■ユーザ作成
-uid,pw作成
-wheelGr add
-sudoユーザの環境変数設定(sbin,usr/sbin,usr/local/sbin)
-sshのポート変更(/etc/ssh/sshd_config)

■環境日本語化
-/etc/sysconfig/i18n

iptables
-ポートフィルタリング

Apache 2.2.15(Unix)
-ServerTokens
-ServerAdmin
-ServerName
-Options Indexes
-ServerSignature

MySQL v5.1.73
-文字コード(utf-8)
-rootパスワード設定

PHP 5.3.3 -> Zend Engineer v2.3.0
-date.timezone = “Aisa/Tokyo”

■vsftpd 2.2.2-24.el6
-install
※vsftpd.confの設定項目と各ファイル(ftpusers,user_list,chroot_list)の関係性に注意

vim
yy=カーソル行をコピー
p=貼り付け
/検索ワード ※nで次を検索
?検索ワード

コマンドのエイリアス
vi .bashrc
設定ファイル反映(.bashrc,.bash_profile)
source ~/.bashrc

/* ------------------------------ 参考 */
http://qiita.com/kazukichi/items/6b1b89ecdba05e8710e8
http://qiita.com/narumi_/items/179048afb48f64f45c6e
http://www.obenri.com/_webserver/about_apache.html
http://qiita.com/honeniq/items/201156650310c4968c3a
https://help.sakura.ad.jp/hc/ja/sections/201976962-%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E3%81%AE%E8%A8%AD%E5%AE%9A
http://qiita.com/colorrabbit/items/11382273624621f3caee

未実施

phpMyAdmin