美文网首页
Deploy PIWIK on CentOS 7

Deploy PIWIK on CentOS 7

作者: 828e200a9578 | 来源:发表于2017-07-04 11:04 被阅读33次
    # 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

    相关文章

      网友评论

          本文标题:Deploy PIWIK on CentOS 7

          本文链接:https://www.haomeiwen.com/subject/dbbthxtx.html