【ConoHa】VPSサーバーセットアップ備忘録2(php,MySQL,WPインストール・便利なコマンドメモ etc)
wordpressは簡単インストール機能があるけど勉強のために自力でやることにorz
ひとまずサーバにログイン
phpのインストール
1)yumでバージョンを見る
読み込んだプラグイン:fastestmirror, security
Loading mirror speeds from cached hostfile
base: ftp.tsukuba.wide.ad.jp
epel: ftp.riken.jp
extras: ftp.tsukuba.wide.ad.jp
updates: ftp.tsukuba.wide.ad.jp
インストール済みパッケージ
名前 : php
バージョン : 5.5.20
リリース : 2.el6.remi
容量 : 8.7 M
リポジトリー : installed
提供元リポジトリー : remi-php55
要約 : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
説明 : PHP is an HTML-embedded scripting language. PHP attempts
: to make it easy for developers to write dynamically : generated web pages. PHP also offers built-in database : integration for several commercial and non-commercial : database management systems, so writing a database-enabled : webpage with PHP is fairly simple. The most common use of : PHP coding is probably as a replacement for CGI scripts. : : The php package contains the module (often referred to as : mod_php) which adds support for the PHP language to Apache : HTTP Server.
[ユーザ名@IPアドレス]$
2バージョンに問題(不満)がなければインストール
sudo yum install --enablerepo=remi --enablerepo=remi-php55 php php-mbstring php-mysql php-mcrypt php-gd php-devel php-pear php-pecl-apc
3インストールが完了したらバージョンを確認
MySQLのインストール mysqlもyumのバージョンも確認できるので確認しつつインストール。
sudo yum -y install mysql-server
sudo chkconfig mysqld on
メモ途中〜〜〜〜〜
便利なコマンドメモ cntr + a カーソルの位置を一番左に cntr + k カーソルより後ろの文字を消去 :wq writeした上でquit j一文字消去 k下の段へ :set number vimの行数表示