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.

CENTOS 7.0 Install Developement WebServer

Last updated at Posted at 2016-10-25

BOOT(CentOS 7.0 Install DVD)

Language : Japanese
Software : Basic Web Server

WEB Server 環境の整備 (PHP)

# mariadb 追加
yum install mariadb-server mariadb mariadb-devel epel-release

# remi リポジトリ追加
yum localinstall http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

# PHPのアップデートおよびエクステンション追加
yum install --enablerepo=remi-php56 --enablerepo=remi ¥ 
    php php-mbstring php-mysqli php-intl

# sshd の起動
systemctl enable sshd.service
systemctl start  sshd.service

# httpd の起動
systemctl enable httpd.service
systemctl start  httpd.service

# mariadb の起動
systemctl enable mariadb.service
systemctl start  mariadb.service

# Firewall の停止
systemctl stop    firewalld.service
systemctl disable firewalld.service

GIT の追加

# yum install autoconf gcc  subversion-perl
mkdir -p /usr/local/src/git
cd /usr/local/src/git
wget https://github.com/git/git/archive/v2.10.1.zip
unzip v2.10.1.zip
make configure
./configure --prefix /usr/local/git/2.10.1
make && make install
alternatives --install /usr/local/bin/git git /usr/local/git/2.10.1/bin/git 1

RUBY の追加

yum install readline-devel ImageMagick  ImageMagick-devel gcc-c++ curl-deve httpd-devell
mkdir -p /usr/local/src/rbenv
cd /usr/local/src/rbenv
wget https://github.com/rbenv/rbenv/archive/v1.0.0.zip
unzip v1.0.0.zip
mkdir -p /usr/local/rbenv/1.0.0
cp -pr /usr/local/src/rbenv/rbenv-1.0.0/* /usr/local/rbenv/1.0.0/

# rbenv-install のインストール
git clone git://github.com/sstephenson/ruby-build.git  /usr/local/rbenv/1.0.0/plugins/ruby-build
/usr/local/rbenv/1.0.0/plugins/ruby-build/install.sh

# ruby-2.3.1 のインストール
RBENV_ROOT=/usr/local/rbenv/ rbenv install 2.3.1

# PATH の追加
alternatives --install /usr/local/bin/rbenv rbenv /usr/local/rbenv/1.0.0/bin/rbenv 1
alternatives --install /usr/local/bin/ruby ruby /usr/local/rbenv/versions/2.3.1/bin/ruuby
alternatives --install /usr/local/bin/rake rake /usr/local/rbenv/versions/2.3.1/bin/rake 1
alternatives --install /usr/local/bin/gem ruby-gem /usr/local/rbenv/versions/2.3.1/bin/gem 1
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?