标签: wordpress

  • Jetpack 插件

    WordPress 的Jetpack 插件,是由automattic inc.开发的一个插件,automattic inc. 是美国旧金山的软件公司,wordpress.com的母公司。

    Jetpack 的mobile app可以通过Google Play 下载,如同wordpress mobile apo一样,不对中国开放。

  • wordpress mobile app

    因为这个app(v26.2)没有内置acme 的中间证书,所以服务器端需要配置成使用fullchain.cer,

    否则mobile app 的url测试失败。

  • Customize theme of twentyeleven

    Modify footer.php:

    Not display ‘Proudly powerd by…’

    Modify: add line of

    $utility_text = __(”)

  • Upgrage wordpress to version 6.8.2

    Note:

    Bug still existed:

    Widget of Twenty Eleven themes crash

    Plugins

    ADD:

    [凹凸曼]微信分享有图

    Duplicate Page or Post

    Note:

    UpdraftPlus – Backup/Restore dosen’t work for LFS system

  • Blog Migration

    Due to the low internet transfer speed, the blog has been moved from owned-networks vps ( Dallas Texas) to hostus vps of London England.

  • Install DenyHosts on Linux VPS

    #!/bin/bash
    PKG_VER=2.10
    PKG_DIR=denyhosts-${PKG_VER}
    PKG_TAR=${PKG_DIR}.tar.gz
    PKG_URL=https://sourceforge.net/projects/denyhosts/files/denyhosts/${PKG_VER}

    rm ${PKG_TAR}
    rm -rf ${PKG_DIR}
    wget –no-check-certificate  ${PKG_URL}/${PKG_TAR}
    tar xvfz ${PKG_TAR}

    sudo mv ${PKG_DIR}/ /usr/share/denyhosts

    cd /usr/share/denyhosts/
    sudo cp denyhosts.conf /etc

    CFG=/etc/denyhosts.conf
    sudo sed -i “s/DENY_THRESHOLD_ROOT = 1/DENY_THRESHOLD_ROOT = 8/” ${CFG}
    sudo sed -i “s/ADMIN_EMAIL = root@localhost/ADMIN_EMAIL = /” ${CFG}

    sudo cp denyhosts.py /usr/sbin/denyhosts
    sudo mv daemon-control-dist daemon-control

    cd /etc/init.d
    sudo ln -s /usr/share/denyhosts/daemon-control denyhosts
    sudo touch /var/log/auth.log
    sudo update-rc.d denyhosts start
    sudo /etc/init.d/denyhosts start

     

     

  • Blog Resume

    Blog   Resume

            Sept 2021

  • Encrypt WordPress Server with Let’s Encrypt SSL certificate

    # Install acme.sh tool
    git clone https://github.com/Neilpang/acme.sh.git
    
    cd acme.sh
    
    ./acme.sh --install
    
    #install cert
    cd ~/.acme.sh
    
    # issue a RSA cert
    sudo ./acme.sh --issue --d blog.zhenglei.net -w /var/www/html/wordpress
    
    # issue a ECC cert
    ./acme.sh --issue -d blog.zhenglei.net -w /var/www/html/wordpress --keylength ec-256
    
    # Copy the cert into target directory
    sudo mkdir -p /etc/nginx/ssl
    
    sudo ./acme.sh --installcert -d blog.zhenglei.net --key-file /etc/nginx/ssl/blog.zhenglei.net.ecc.key --fullchain-file /etc/nginx/ssl/blog.zhenglei.net.ecc.bundle --ecc
    sudo ./acme.sh --installcert -d blog.zhenglei.net --key-file /etc/nginx/ssl/blog.zhenglei.net.key --fullchain-file /etc/nginx/ssl/blog.zhenglei.net.bundle
    # Update nginx config
    server { #listen 80; listen 443; ssl on; ssl_certificate ssl/blog.zhenglei.net.bundle; ssl_certificate_key ssl/blog.zhenglei.net.key; ssl_session_timeout 5m; ssl_protocols SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; ssl_prefer_server_ciphers on; ... }
    server {
    listen 80 default_server; server_name blog.zhenglei.net;

    # Let's Encrypt, http method
    location ~ \.well-known
    {
    root /var/www/html/wordpress/;
    allow all;
    access_log on;
    log_not_found on;
    } return 301 https://$server_name$request_uri; }