@@ -30,7 +30,7 @@ sed -i 's/Listen 80/Listen 8080/g' /etc/httpd/conf/httpd.conf
30
30
31
31
# PHP
32
32
# The first pool
33
- cat www.conf > /etc/php-fpm.d/www.conf
33
+ cat php/ www.conf > /etc/php-fpm.d/www.conf
34
34
35
35
# opcache settings
36
36
cat php/opcache.ini > /etc/php.d/opcache.ini
@@ -47,6 +47,7 @@ cat modules/00-proxy.conf > /etc/httpd/conf.modules.d/00-proxy.conf
47
47
cat modules/01-cgi.conf > /etc/httpd/conf.modules.d/01-cgi.conf
48
48
49
49
# BASIC PERFORMANCE SETTINGS
50
+ mkdir /etc/httpd/conf.performance.d/
50
51
cat performance/compression.conf > /etc/httpd/conf.performance.d/compression.conf
51
52
cat performance/content_transformation.conf > /etc/httpd/conf.performance.d/content_transformation.conf
52
53
cat performance/etags.conf > /etc/httpd/conf.performance.d/etags.conf
@@ -55,9 +56,11 @@ cat performance/file_concatenation.conf > /etc/httpd/conf.performance.d/file_con
55
56
cat performance/filename-based_cache_busting.conf > /etc/httpd/conf.performance.d/filename-based_cache_busting.conf
56
57
57
58
# BASIC SECURITY SETTINGS
59
+ mkdir /etc/httpd/conf.security.d/
58
60
cat security/apache_default.conf > /etc/httpd/conf.security.d/apache_default.conf
59
61
60
62
# our domain config
63
+ mkdir /etc/httpd/conf.sites.d
61
64
echo IncludeOptional conf.sites.d/* .conf >> /etc/httpd/conf/httpd.conf
62
65
cat domains/8080-domain.conf > /etc/httpd/conf.sites.d/test.conf
63
66
@@ -70,11 +73,15 @@ echo IncludeOptional conf.security.d/*.conf >> /etc/httpd/conf/httpd.conf
70
73
# fix date timezone errors
71
74
sed -i ' s#;date.timezone =#date.timezone = "America/New_York"#g' /etc/php.ini
72
75
76
+ # FIREWALL
77
+ systemctl start firewalld.service
78
+ systemctl enable firewalld.service
73
79
firewall-cmd --permanent --add-port=80/tcp
74
80
firewall-cmd --permanent --add-port=8080/tcp
75
81
firewall-cmd --permanent --add-port=22/tcp
76
82
77
83
# Make sue services stay on after reboot
84
+
78
85
systemctl enable httpd.service
79
86
systemctl enable mysqld.service
80
87
systemctl enable php-fpm.service
0 commit comments