# add ius repository
cd /tmp
curl 'https://setup.ius.io/' -o setup-ius.sh
bash setup-ius.sh
yum install -y httpd mod_php70u php70u-cli php70u-mysqlnd php70u-json php70u-mbstring php70u-gd php70u-xml
curl https://builds.piwik.org/piwik.zip -o piwik.zip
cd /var/www/html
unzip /tmp/piwik.zip
mkdir -p /var/www/html/tmp/{assets,cache,logs,tcpdf,templates_c}
chown -R apache:apache /var/www/html/
chmod -R 0755 /var/www/html/tmp
chmod -R 0755 /var/www/html/tmp/assets/
chmod -R 0755 /var/www/html/tmp/cache/
chmod -R 0755 /var/www/html/tmp/logs/
chmod -R 0755 /var/www/html/tmp/tcpdf/
chmod -R 0755 /var/www/html/tmp/templates_c/
rm -Rf /var/www/html/plugins/Morpheus/icons/submodules
# Firewall
firewall-cmd --add-service=http --permanent --zone=public
firewall-cmd --add-service=https --permanent --zone=public
firewall-cmd --reload
# Service
systemctl enable httpd
systemctl start httpd
# cleanup
rm -rf /tmp/piwik.zip
网友评论