Articles of wordpress

在定义('DB_PASSWORD','xxxx')中replacexxx的sed regexp;?

我正在寻找一个正则expression式来快速replace下面的wp-config文件中的密码,如下所示: define('DB_PASSWORD', 'xxxx'); 现在configuration文件有很多定义 ,所以只需要replaceDB_PASSWORD参数。 我也不知道旧的密码,这意味着我不能用'yyyy'replace'xxxx'。 我在Linux上与SED ….(需要replace许多文件),所以如下所示: cat wp-config.php | sed 's/[here the regexp]/new password/' 谢谢!

当使用在线SSL扫描仪,我的networking服务器返回错误的主机名

我的网站是:www.ezvid.com 这里是SSL链接: https : //www.ezvid.com 下面是一个SSL扫描服务的例子,它以某种方式find了错误的域名,然后是错误的证书 – 这意味着它报告的证书名称不匹配: https ://sslcheck.globalsign.com/en_US/sslcheck ? host = www.ezvid.com#198.74.58.202-SRV-REG-CERT-SSL-杂项 一些SSL扫描,如上所述,报告我的主机名为* .wpengine.com。 我用WordPress引擎托pipe网站,我知道这是他们的网域… 我不明白为什么他们的域名被许多这些在线扫描仪查找。 这可能是我的DNS问题吗? 在浏览器中,SSL证书显示正常,但是我需要为此find一个修复程序,因为各种安全网站都使用这样的扫描来对我的网站的安全性和可信性进行排名。 我也有充分的理由相信,Google自己的域安全排名algorithm查找的是同一个不正确的主机名。 所以我需要弄清楚如何解决这个问题。 我真的很感激专家对此的洞察力。 亲切的问候,并提前感谢您的考虑!

如何使用Apache2将我的网站从非wwwredirect到WWW?

我目前正在设置我的个人网页。 我使用的是VPS,并且手动安装了Wordpress,而且一切似乎都奏效了。除非我去了我的网站的非www版本,否则它会出现一个未find的页面。 www.andrewrockefeller.com < – 工作 andrewrockefeller.com < – 不(我想把它redirect到www.andrewrockefeller.com) 我已经尝试添加RewriteEnginefunction到我的.htaccess,这是行不通的。 我也尝试添加添加到我的默认文件(这是apache2.conf从以下拉: <VirtualHost *> ServerName andrewrockefeller.com Redirect 301 / http://www.andrewrockefeller.com/ </VirtualHost> 看到有多less人能够得到上述的工作,是否有什么我可能会错过,让这个function? 感谢您的时间! 编辑:我的.htaccess文件如下所示: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress 当我将?p = 1(丑陋链接)的设置更改为漂亮链接时,#Wordpress部分被自动创build。 任何build议的解决scheme,我已经在这里find我已经尝试并重新启动apache2,它没有奏效。

为什么nginx将端口8080上的请求redirect到端口80(apache)

我在Ubuntu 12.04的apache2(port 80)上有一个WordPress的博客设置,我也有一个监听端口8080的nginx设置,服务于同一个博客。 我的问题是,每当我尝试打开端口8080上的博客,nginx将请求redirect到Apache不应该发生。 我正在发布/ etc / nginx / sites-enabled / wordpress的内容 server { listen 8080; root /var/www; index index.php index.html index.htm; server_name foobartech.strangled.net:8080; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } location /doc/ { alias /usr/share/doc/; autoindex on; allow 127.0.0.1; deny all; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = […]

Nginxconfiguration不能在子目录中使用wordpress

我有一个nginx安装,我需要在开发中托pipe网站,以便其他人可以testing出来。 现在,我已经为单个子域设置了一个虚拟主机,并且在这个目录中,我需要打开一个符号链接项目,以便testing。 正如你所看到的,我限制了访问整个网站,但启用了特定的目录,但保持私有一个简单的auth_basic。 PHP的运行,但我一直得到的东西除了/或/ wp-admin /之外的其他东西,所有其他永久链接给404s。 我已经做了所有的事情来完成这个工作,但我不知道我做错了什么。 请在下列configuration中指出我的错误: server { listen 80; server_name dev.example.com; client_max_body_size 20m; server_tokens off; root /srv/dev.example.com; index index.php index.html index.htm; location / { deny all; } location /my-site { allow all; try_files $uri $uri/ /index.php?$args; auth_basic "Restricted"; auth_basic_user_file /etc/nginx/auth.d/.htpasswd-my-site; location ~ \.php$ { include fastcgi_params; fastcgi_index index.php; fastcgi_pass php5-fpm-sock; fastcgi_param SCRIPT_FILENAME […]

550发件人拒绝 – 发件人域没有MX / Alogging。 MX&Alogging的不同IP

我有一个网站,有不同的网站和电子邮件的托pipe。 我托pipe网站,另一家公司托pipe电子邮件并处理域名。 这就是域名设置:( 域名和IP为了隐私目的而被掩盖) Record Type TTL Content <domain>.com.au A 1 hour 180.235.xxx.xx <domain>.com.au MX 1 hour mail.<domain>.com.au <domain>.com.au A 1 hour 125.255.xx.xx <domain>.com.au NS 1 hour ns1.planetdomain.com <domain>.com.au NS 1 hour ns2.planetdomain.com <domain>.com.au SOA 1 hour …. blog.<domain>.com.au A 1 hour 180.235.xxx.xx www.<domain>.com.au A 1 hour 180.235.xxx.xx 该网站使用WordPress和occassionaly向公司发送查询。 不过有时候这个错误信息会出现: [email protected] host mx1.pm.telstra.com [203.147.175.1] SMTP […]

Nginx wordpress无法在CentOS 6.8上传文件

当我上传一张照片到我的网站时,我不断收到这个错误。 无法创build目录wp-content / uploads / 2016/06 configuration是这样的。 对于/etc/nginx/conf.d/default.conf server { server_name vnfintech.com www.vnfintech.com; root /usr/share/nginx/html; index index.php; access_log /var/log/nginx/vnfintech.com.access.log; error_log /var/log/nginx/vnfintech.com.error.log debug; client_max_body_size 20M; set $cache_uri $request_uri; # POST requests and URLs with a query string should always go to PHP if ($request_method = POST) { set $cache_uri 'null cache'; } if ($query_string != "") […]

用于在Ubuntu 16.04上托pipe多个网站的NGINX服务器块configuration

我想在Ubuntu 16.04(Ubuntu-NGINX-MariaDB-PHP)上托pipe多个WordPress网站。 我不想使用WordPress的多站点。 我遵循这个指南 。 一切都很好,但我只能托pipe一个网站。 每当我创build多个服务器块configuration,它开始显示错误,NGINX无法启动。 我没有得到我的configuration文件正确。 这里是configuration文件: server { listen [::]:80 ipv6only=off; server_name abcde.org www.abcde.org; root /var/www/abcde; # Add index.php to the list if you are using PHP index index.php index.html index.htm index.nginx-debian.html; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying […]

Nginx不保留wordpress proxy_pass的域名

在我的/etc/hosts文件中,我添加了一个别名到localhost,像这样: 127.0.0.1 example.local 我的WordPress的服务器端口8000托pipe,所以我使用proxy_pass : server{ listen 80; server_name example.local; root /Users/akashagarwal/Downloads/wordpress; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; } } 我面临两个问题。 1.在浏览器中打开http://example.local后,地址栏会附加:8000 。 2.点击链接后,主机名变为localhost:8000 。 我在这里做错了什么? 在macOS Sierra 10.12.1上运行nginx version: nginx/1.10.3 。 TIA

WordPress上的IIS 7

在IIS 7上安装和configurationWordPress的首选方式是什么? 你更喜欢使用WPI(Web平台安装程序)? 你喜欢手动下载,安装和configurationPHP,MySQL和Wordpress?