WordPress Analytics For Cloudflare Plugin
- Category: 電腦相關
- Last Updated: Tuesday, 18 July 2017 11:05
- Published: Monday, 15 May 2017 10:53
- Written by sam
WordPress Analytics For Cloudflare Plugin
Remove php 5.6
repository for PHP 7
Install php 7
Reconfigure web server (nginx
Restart web service
Start
root@debian:/# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.7 (jessie)
Release: 8.7
Codename: jessie
Remove old if need.
root@debian:/# dpkg --list | grep php | awk '/^ii/{ print $2}'
dh-php
php-common
php7.0-cli
php7.0-common
php7.0-curl
php7.0-dev
php7.0-fpm
php7.0-gd
php7.0-json
php7.0-mbstring
php7.0-mcrypt
php7.0-mysql
php7.0-opcache
php7.0-readline
php7.0-xml
php7.0-zip
apt-get --purge remove XXX
Add repository (only Debian 8.X
echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
Install
apt-get update
apt-get install php7.0 php7.0-fpm php7.0-gd php7.0-mysql
Config web server config
vi /etc/nginx/sites-available/wordpress ---> replace yours.
Add new lines
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
Restart it
systemctl restart nginx.service
systemctl restart php7.0-fpm.service
Get plugin analytics for cloudflare and unzip
wget https://downloads.wordpress.org/plugin/analytics-for-cloudflare.1.1.zip
unzip analytics-for-cloudflare.1.1.zip
Move to you wordpress plugins dir
root@debian:/wordpress/wp-content/plugins# pwd
/wordpress/wp-content/plugins
And reference
that's all.