apache (httpd2.4) install
yum install -y httpd
chkconfig httpd on
<VirtualHost *:80>
ServerName gitlab.tsukasa-group.inc
DirectoryIndex index.html index.php
DocumentRoot "/var/www/html/gitlab.tsukasa-group.inc/public/"
<Directory "/var/www/html/gitlab.tsukasa-group.inc/public">
Options FollowSymLinks
AllowOverride All
# Apache2.4未満の場合は不要
Require all granted
</Directory>
ErrorLog /var/log/httpd/gitlab.tsukasa-group.inc/error.log
CustomLog /var/log/httpd/gitlab.tsukasa-group.inc/access.log combined
# E_ALL & ~E_NOTICE
php_value error_reporting 6135
</VirtualHost>
Firewall設定
CentOS7の場合は、firewallの、80番 (http) と 443番 (https)のポートを開ける必要あり。CentOS6では不要。
$ sudo firewall-cmd --permanent --zone=public --add-service=http
$ sudo firewall-cmd --permanent --zone=public --add-service=https
$ sudo firewall-cmd --reload
php74 install
yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install --disablerepo=* --enablerepo=epel,remi,remi-safe,remi-php74 php php-pear php-mbstring php-pdo php-intl php-gd php-mysqlnd php-pecl-zip php-fpm php-mysql
コメント