最新柒比贰7b2主题开心版B2 Pro 5.2.0破解版绕授权搭建教程WordPress主题
1.www下新建7b2目录, 添加index.php文件:
0) && substr($result, 10, 16) == substr(md5(substr($result, 26).$keyb), 0, 16)) { return substr($result, 26); } else { return ''; } } else { return $keyc.str_replace('=', '', base64_encode($result)); } }2.添加伪静态.htaccess文件:
3.添加VirtualHost:Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
nano /etc/apache2/sites-enabled/000-default.conf ## 添加域名4.添加HTTPS,SSL用自签证书:ServerAdmin webmaster@localhost ServerName 7b2.com DocumentRoot /var/www/zibll ErrorLog ${APACHE_LOG_DIR}/error.log #CustomLog ${APACHE_LOG_DIR}/access.log combined nano /etc/apache2/sites-enabled/
cd /etc/apache2/ssl # 私钥文件 openssl genrsa -out private.key 2048 ## 证书请求文件 默认回车即可 openssl req -new -key private.key -out server.csr ## 自签名证书 openssl x509 -req -days 365 -in server.csr -signkey private.key -out server.crt nano /etc/apache2/sites-enabled/default-ssl.conf ## 添加域名5.去除wordpress SSL验证:ServerAdmin webmaster@localhost ServerName 7b2.com DocumentRoot /var/www/7b2 LogLevel error SSLEngine on SSLCertificateFile /etc/apache2/ssl/server.crt SSLCertificateKeyFile /etc/apache2/ssl/private.key
nano /var/www/wordpress/wp-includes/class-wp-http.php # 209 行 'sslverify' => true, 改成 false 'sslverify' => false,6.修改hostos
nano /etc/hosts # 添加 127.0.0.1 7b2.com service apache2 restart7.登录后台,会员号随便填写,点击授权