我的 apache2 error.log 中有很多错误sh: 1: /usr/sbin/sendmail: not found,问题是,我不记得我的任何站点/应用程序尝试发送邮件或其他什么,并且我已经在我的 WordPress 博客上安装了 WP Mail SMTP,它工作得很好,所以我的问题是,如何找出哪个应用程序或网站一直试图执行此操作?
编辑:我确实在以下位置找到了有趣的行/var/log/mail.log:
Jun 22 07:27:31 sm-mta[29654]: r5H8U4O1014238: to=<you@yourdomain.com>, ctladdr=<www-data@xxxx@xxxx.net> (33/33), delay=4+22:57:27, xdelay=00:00:01, mailer=esmtp, pri=63391559, relay=mx00.1and1.com. [74.208.5.3], dsn=4.0.0, stat=Deferred: 421 invalid sender domain。
我已经按照说明完全卸载了服务器上的所有邮件应用程序,如下所示:
apt-get remove sendmail sendmail-bin postfix
apt-get purge postfix exim4 sendmail sendmail-bin
Run Code Online (Sandbox Code Playgroud)
那些恼人的台词仍然时不时地出现,我现在该怎么办?
谢谢,谢恩
我在专用的 Microsoft Windows Web Server 2008 R2 上安装 Wordpress 时遇到问题。
我已经从 Web 平台安装程序 3.0 安装了 Wordpress 2.9.2 版。
安装后,当我尝试从 ~/index.php 或 ~/wp-admin/install.php 访问 wordpress 时,出现错误:
HTTP 错误 500.0 - 为找不到的文件启用了内部服务器错误文件监控
Modul: FastCgiModule
Notification: ExecuteRequestHandler
Handler: PHP52_via_FastCGI
Error Code: 0x80070003
Run Code Online (Sandbox Code Playgroud)
我安装了 .Net 2.0 和 .Net 4.0。
添加“phpinfo.php”给了我同样的错误。
用于网站的 IIS7 中的应用程序池是:“无托管代码”并在“托管管道模式”中设置为“集成”。
我试过重新启动机器。
我还能尝试什么?
为什么http://compassionpit.com/blog/经历无限重定向循环?这是我的 nginx conf 文件。该站点由端口 8000 上的 nodejs 服务器运行,Apache 提供博客 (wordpress) 和论坛 (phpBB)。论坛解决得很好,在http://www.compassionpit.com/forum/ ...
server {
listen 80;
server_name www.compassionpit.org;
rewrite ^/(.*) http://www.compassionpit.com/$1 permanent;
}
server {
listen 80; # your server's public IP address
server_name www.compassionpit.com;
index index.php index.html;
location ~ ^/$ {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location @blogphp {
internal;
root /opt/blog/;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:8080;
}
location ~ ^/(forum|blog)/($|.*\.php) {
root /opt/; …Run Code Online (Sandbox Code Playgroud) 1.我有以下服务器设置:
(在使用 Hyper-V 的 VM 中运行)
Debian 挤压
Linux 2.6.32-5-amd64
Apache2-mpm-prefork 2.2.16-6+squeeze10
PHP 5.3.3-7+squeeze14
此服务器受 Suhosin 补丁 0.9.9.1 保护
每个孩子的最大请求数:0 - 保持活动状态:开启 - 每个连接的最大请求数:100
超时连接:300 - Keep-Alive:15
加载的模块核心 mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_auth_digest mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_cgi mod_deflate mod_dir mod_env mod_mime_phpre
Wordpress 3.4.2(即将升级到 3.5 :)
2.问题
当我重新启动服务器(sudo shutdown -r now)时,转到任何网站页面都会导致 Web 浏览器出现以下错误(在本例中为 Google Chrome,但其他浏览器也显示相同的错误)。这个错误也可能发生一个小时左右,毕竟工作正常,似乎是随机的,这是我最担心的,因为这意味着我的服务器不可靠:
未收到数据 无法加载网页,因为服务器未发送数据。以下是一些建议: 稍后重新加载此网页。错误 324 (net::ERR_EMPTY_RESPONSE):服务器关闭了连接但没有发送任何数据。
3. 诊断信息 apache 错误日志包含以下条目:
[Fri Dec 14 22:23:27 2012] [notice] child …
我有多个运行 Wordpress 的虚拟网站,但这个网站开始抛出错误,我无法找到问题所在。
阿帕奇 说:
[Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: comm with server "/var/www/uzivatel/www.domena.xy.php5-fcgi" aborted: idle timeout (30 sec)
[Tue Jul 30 14:13:40 2013] [error] [client 82.100.0.70] FastCGI: incomplete headers (0 bytes) received from server "/var/www/uzivatel/www.domena.xy.php5-fcgi"
Run Code Online (Sandbox Code Playgroud)
但是PHP-FPM日志是可以的(它是在请求后的几毫秒内生成的):
- - 30/Jul/2013:14:13:10 +0200 "GET /index.php" 200 /var/www/uzivatel/webs/www.domena.xy/index.php 793.871 35072 37.79/30.23
Run Code Online (Sandbox Code Playgroud)
有代码 200,所以页面似乎被正确创建,但 Apache 的行为就像没有来自 fastcgi 服务器的回复。
但有趣的是,当我之前剪切页面生成时,apache 将其正确返回给客户端。但是如果我<?php die(); ?>在标签之后插入,也会发生同样的错误。
有没有办法调试apache和fastcgi服务器之间的通信?
这是配置(相同的配置适用于另一个虚拟网站):
<VirtualHost 1.2.3.4:80>
ServerName www.domena.xy
DocumentRoot /var/www/uzivatel/webs/www.domena.xy/
FastCgiExternalServer /var/www/uzivatel/www.domena.xy.php5-fcgi -socket /tmp/php-fpm/php-www.domena.xy.socket -pass-header Authorization
Action php5-fcgi …Run Code Online (Sandbox Code Playgroud) 我在使用 wordpress 站点进入管理区域时遇到问题。
如果我输入:http : //www.beshan.com/wp-admin/
我得到一个无限重定向循环,但如果我输入:
http://www.beshan.com/wp-admin/index.php
有用
我客户端的服务器是centos linux + nginx
nginx.conf:
user www www;
worker_processes 8;
error_log logs/nginx_error.log crit;
#pid /usr/local/webserver/nginx/nginx.pid;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
}
http
{
include mime.types;
default_type application/octet-stream;
#charset gb2312;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 8m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay on;
server_tokens off;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout …Run Code Online (Sandbox Code Playgroud) 由于nginx 中的一个长期存在的错误,我被建议用 root 指令切换我的别名指令。不幸的是,这现在破坏了我的静态文件,这些文件与我的站点路径 ( mysite.com/blog-> /var/www/mysite/wordpress)位于不同的目录中。如何在不更改静态文件结构的情况下解决此问题?这是我的完整位置块:
location /blog {
root /var/www/mysite/wordpress;
try_files $uri $uri/ /blog/index.php$is_args$args;
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_split_path_info ^(?:\/blog\/)(.+\.php)(.*);
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
}
Run Code Online (Sandbox Code Playgroud) 我最近将我们的主页迁移到 ASP.NET Core 1.0。这使我可以在 linux 环境中移动网站。我们在这个网站下也有 /blog,这是一个 wordpress 博客。除 W3 Total Cache 外,所有迁移均正确。这是我所做的。
安装的 PHP-FPM 和 DNX 都位于 Nginx 上的反向代理之后。这是文件夹层次结构。/var/www/aspnet /var/www/wordpress
这里是所有 Nginx 相关的配置文件
/etc/nginx/nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format scripts '$document_root$fastcgi_script_name > $request';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Run Code Online (Sandbox Code Playgroud)
/etc/nginx/sites-available/xyz.com
server …Run Code Online (Sandbox Code Playgroud) 我尝试将所有 url 重定向到根目录,除了 wordpress 管理和 wordpress REST API。
我有这些规则.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/wp-admin.*
RewriteCond %{REQUEST_URI} !^/wp-json.*
RewriteRule ^.*$ / [L,R=301]
</IfModule>
Run Code Online (Sandbox Code Playgroud)
它适用于所有重定向,除了/wp-json我收到 404 错误的路线。
另外,我的 apache 日志文件中有这些错误类型:
File does not exist: [...]/dmjob/wp-json, referer: http://dmjob.dev:8888/
你能帮我么 ?非常感谢 !:)
我正在学习 Azure,作为学习练习,我需要创建一个 WordPress 网站。
我使用这个Microsoft 学习文档。
我激活了沙箱,但是在创建网站资源时,出现错误:
资源“ServicePlan4b9381a9-93ea”被策略禁止。
{
"telemetryId":"aea923d1-dbad-418d-aa94-0721bcdddc7d",
"bladeInstanceId":"Blade_36ae47db3af644939b1c1ed987ec8373_0_0",
"galleryItemId":"WordPress.WordPress",
"createBlade":"CreateBlade",
"code":"InvalidTemplateDeployment",
"message":"The template deployment failed because of policy violation. Please see details for more information.",
"details":[
{
"code":"RequestDisallowedByPolicy",
"target":"ServicePlan4b9381a9-93ea",
"message":"Resource 'ServicePlan4b9381a9-93ea' was disallowed by policy. (Code: RequestDisallowedByPolicy)",
"additionalInfo":[
{
"type":"PolicyViolation",
"info":{
"policyDefinitionDisplayName":"AppService-SKU",
"evaluationDetails":{
"evaluatedExpressions":[
{
"result":"True",
"expression":"type",
"path":"type",
"expressionValue":"Microsoft.Web/serverfarms",
"targetValue":"Microsoft.Web/serverFarms",
"operator":"Equals"
},
{
"result":"False",
"expression":"Microsoft.Web/serverfarms/sku.name",
"path":"sku.name",
"expressionValue":"S1",
"targetValue":[
"F1",
"D1"
],
"operator":"In"
}
]
},
"policyDefinitionId":"/providers/Microsoft.Management/managementGroups/604c1504-c6a3-4080-81aa-b33091104187/providers/Microsoft.Authorization/policyDefinitions/e790fdfe-5672-403f-9a29-e1aa564ac680",
"policyDefinitionName":"e790fdfe-5672-403f-9a29-e1aa564ac680",
"policyDefinitionEffect":"Deny",
"policyAssignmentId":"/providers/Microsoft.Management/managementGroups/triplecrown2/providers/Microsoft.Authorization/policyAssignments/7bb64c0aa90247de8b4491c3",
"policyAssignmentName":"7bb64c0aa90247de8b4491c3",
"policyAssignmentDisplayName":"AppService-SKU",
"policyAssignmentScope":"/providers/Microsoft.Management/managementGroups/triplecrown2",
"policyAssignmentParameters":{
}
} …Run Code Online (Sandbox Code Playgroud) wordpress ×10
nginx ×4
apache-2.2 ×3
.htaccess ×1
apache2 ×1
azure ×1
debian ×1
fastcgi ×1
iis-7 ×1
mod-rewrite ×1
php ×1
php-fpm ×1
redirect ×1
sendmail ×1
web-server ×1