我正在尝试postfix在 Ubuntu 13.04 上进行设置,但到目前为止还没有运气。我在 ServerFault 上找到了一些不起作用的答案。重装了好几次都没用 这是我第一次处理它,我遵循了本教程和本教程。我试过这个答案,没有。这是我得到的telnet localhost 25和ehlo localhost:
250-elclanrs.localdomain
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
Run Code Online (Sandbox Code Playgroud)
正如你所看到的,里面没有AUTH...
这是我的main.cf:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
myorigin = /etc/mailname
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 127.0.0.0/8 192.168.1.0/24 [::1]/128 [fe80::]/64
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all …Run Code Online (Sandbox Code Playgroud) 如何修复 Windows 8 Pro 上的“FastCGI 进程超出配置的活动超时”?
在 Windows 8 Pro 机器上安装 FileMaker 12 Advanced Server
长时间运行的脚本生成:
HTTP 错误 500.0 - 内部服务器错误 C:\Program Files (x86)\FileMaker\FileMaker Server\Web Publishing\publishing-engine\php\php-cgi.exe - FastCGI 进程超出了配置的活动超时
我正在尝试调用 shell 包装器进行 phing
phing
Run Code Online (Sandbox Code Playgroud)
...但它不能识别环境,我得到一个
-bash: phing: command not found
Run Code Online (Sandbox Code Playgroud)
...即使文件以:
#!/usr/bin/env php
Run Code Online (Sandbox Code Playgroud)
调用文件
php phing
Run Code Online (Sandbox Code Playgroud)
工作得很好。
该文件是可执行的,我从它自己的目录中调用它。
这怎么可能?
我正在检查我的 munin 表,在 postfix 中看到了一大堆延迟邮件,查看 /var/log/mail.log 给了我一个想法:我正在向未知的邮件地址发送邮件:
Dec 23 08:21:32 h2065299 postfix/pickup[10816]: 63F5811A0384: uid=33 from=<www-data>
Dec 23 08:21:32 h2065299 postfix/cleanup[20915]: 63F5811A0384: message-id=<301b8e057416d03df3ac7c11f1aa5bda@www.my-server.com>
Dec 23 08:21:32 h2065299 postfix/qmgr[7878]: 63F5811A0384: from=<www-data@my-server.com>, size=2254, nrcpt=1 (queue active)
Dec 23 08:21:32 h2065299 postfix/smtp[20917]: 63F5811A0384: to=<underlyingbzvn+zprtra@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.69.26]:25, $
Dec 23 08:21:32 h2065299 postfix/qmgr[7878]: 63F5811A0384: removed
Run Code Online (Sandbox Code Playgroud)
这与强制的“好”电子邮件并没有什么不同
Dec 23 09:41:51 h2065299 postfix/pickup[28905]: EE51611A0393: uid=33 from=<www-data>
Dec 23 09:41:51 h2065299 postfix/cleanup[30516]: EE51611A0393: message-id=<2736115f98e8293f5e8b657b22e66b4d@www.my-server.com>
Dec 23 09:41:52 h2065299 postfix/qmgr[28906]: EE51611A0393: from=<www-data@my-server.com>, size=977, nrcpt=1 (queue active)
Dec 23 09:42:22 h2065299 …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 VPS上安装CDash。通常它在 apache 重新启动后工作一段时间很好,但几分钟后它开始随机失败并出现以下错误:
Warning: XSLTProcessor::importStylesheet(): I/O warning : failed to load external entity "/cdash/footer.xsl" in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): compilation error: file /cdash/ line 4 element include in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): xsl:include : unable to load /cdash/footer.xsl in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): I/O warning : failed to load external entity "/cdash/local/footer.xsl" in /cdash/cdash/common.php on line 55
Warning: XSLTProcessor::importStylesheet(): compilation error: file /cdash/ line 5 element include in /cdash/cdash/common.php on line …Run Code Online (Sandbox Code Playgroud) 当我将 nginx.conf 中的用户设置为 root 时:
user root root;
Run Code Online (Sandbox Code Playgroud)
然后我的网站正在运行,但是当我将其设置为 nginx nginx 时,我在日志中收到错误消息:
connect() to unix:/var/run/php-fpm/php-fpm.sock failed (13: Permission denied)
我正在使用 PHP-FPM 5.5,并且我确保文件夹所有者是 nginx + 启用了执行权限。
我错过了什么..?谢谢
- - - - - - - - -编辑:
手动更改 php-fpm.sock 权限时快速编辑它正在工作。我如何以正确的权限启动 php-hpm?
运行时出现以下错误sudo pecl install apc。
/var/tmp/APC/apc_cache.c: In function '_apc_cache_user_update':
/var/tmp/APC/apc_cache.c:818: error: 'IS_CONSTANT_INDEX' undeclared (first use in this function)
/var/tmp/APC/apc_cache.c:818: error: (Each undeclared identifier is reported only once
/var/tmp/APC/apc_cache.c:818: error: for each function it appears in.)
/var/tmp/APC/apc_cache.c:820: error: 'IS_CONSTANT_ARRAY' undeclared (first use in this function)
make: *** [apc_cache.lo] Error 1
ERROR: `make' failed
Run Code Online (Sandbox Code Playgroud)
我安装了php 5.5.12并且以下这些库都是最新的:
sudo yum install php-pear
sudo yum install php-devel
sudo yum install httpd-devel
sudo yum install gcc
sudo yum install pcre-devel
sudo pecl install …Run Code Online (Sandbox Code Playgroud) 我的 Apache 2.4 (CentOS 7) 服务器托管多个网站。有时,在访问任何网站文件(主要是 php 脚本)时,我会收到 403 Forbidden(您无权访问此服务器上的文件 X)错误。按 F5 几秒钟将解决它并正常加载页面。这些文件具有正确的权限。我也启用了 mod_evasive,但日志没有显示当时任何 IP 被阻止。
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
cloudflare_module (shared)
access_compat_module (shared)
actions_module (shared)
alias_module (shared)
allowmethods_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
authn_anon_module (shared)
authn_core_module (shared)
authn_dbd_module (shared)
authn_dbm_module (shared)
authn_file_module (shared)
authn_socache_module (shared)
authz_core_module (shared)
authz_dbd_module (shared)
authz_dbm_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_owner_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cache_module (shared)
cache_disk_module (shared)
data_module (shared)
dbd_module (shared)
deflate_module (shared)
dir_module (shared)
dumpio_module (shared) …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用最新的 curl 和 openssl (1.0.1l) 编译 php 5.4.36,我已将 openssl 编译到一个单独的文件夹中
我的系统是 CentOS。
当我尝试编译 php 时
./configure ...etc... --with-curl=/usr/local/curlfolder --with-openssl=/usr/local/opensslfolder
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
checking whether to enable FTP support... yes
checking OpenSSL dir for FTP... /usr/local/opensslfolder
checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's libraries
Run Code Online (Sandbox Code Playgroud)
curl 和 openssl 都编译没有任何问题
我托管了一个面向公众的 Web 服务器,运行 Debian Wheezy 和最新版本的 Postfix、Apache、PHP、Spamassassin、ClamAV、rootkit 猎人。Apache 配置了一些虚拟主机,每个虚拟主机都绑定到一个用户并使用 suExec 和 Suhosin 进行保护。这些网站运行 Wordpress 和 ModX,根据平均法则,鉴于这台服务器上的安装数量,至少有 20% 的网站在任何给定时间都会存在某种漏洞,无论是来自 CMS 本身还是来自外部最新的插件。
我收到了来自优秀 MX Toolbox 网站的通知,该网站根据 100 多个黑名单监控 IP 地址。
当我听说我的 IP 地址再次被添加到给定的黑名单时,我立即 ssh 进入,暂停 Postfix
postfix stop
Run Code Online (Sandbox Code Playgroud)
等几秒,查看邮件队列
mailq
Run Code Online (Sandbox Code Playgroud)
从中我可以立即知道垃圾邮件的源用户/虚拟主机,因为所有邮件都来自“random-name@mywebsite.com”,其中“mywebsite.com”是导致问题的虚拟主机上托管的域。
然后我使用优秀的maldet运行手动恶意软件检测扫描,问题消失了。如果我修补网站上所有已知的插件和软件,问题会消失大约 6 个月。如果我不这样做,它会在大约一周内回来。
出于测试目的,我让 Postfix 连续几个月停止运行,但一些木马程序显然绕过了邮件服务器并直接发送邮件。(我从服务器资源监控、黑名单监视和退回到我的域的垃圾邮件退回中知道这一点。更不用说 Postfix mailq 填满了例如 65,000 封未发送的邮件。)
由于我更关心邮件的真实性而不是通过我托管的网站发送电子邮件的能力,因此我采取了许多步骤,即确保我的每个域的 SPF 记录不会将我自己的服务器识别为该域的权威邮件来源. 至少这意味着我的域名不会被自动列入黑名单。
我的问题。有没有一种聪明的方法可以使用 IPTABLES 简单地阻止所有传出的电子邮件?我的意思不仅仅是阻止使用电子邮件服务器 Postfix 发送的邮件,而是所有可能导致我的服务器被列入黑名单的流量?
在我找到解决这个问题的其他方法之前,我不介意禁止网站发送任何邮件。这并不理想,因为我使用一些来生成自己的业务,但同时我可以找到其他解决方案。