LoginSignup
0
0

More than 1 year has passed since last update.

【備忘録】開発環境の作り方 - PHP、GIT、Apache インストール -

Posted at

Git2 インストール

# yum remove -y git
# yum install https://repo.ius.io/ius-release-el7.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install libsecret pcre2
# yum install git --enablerepo=ius --disablerepo=base,epel,extras,updates
# git --version
# yum-config-manager --disable ius

PHP7.4 インストール

# yum install epel-release
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
# yum install --enablerepo=remi,remi-php74 php php-devel php-mbstring php-pdo php-gd php-openssl php-xml 
# php -v

(webサーバーを先に稼働させている場合は再起動する)
# systemctl restart httpd.service

Composer インストール

# php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
# php composer-setup.php
# php -r "unlink('composer-setup.php');"
# mv composer.phar /usr/local/bin/composer

Webサーバーインストール

# yum install -y httpd
# systemctl enable httpd.service
# systemctl start httpd.service
# firwall-cmd --add-service=http --permanent
# firwall-cmd --reload
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