我正在尝试使用launchctl启动php-fpm 。 直接从命令行运行是没有问题的: $ /usr/sbin/php-fpm -p /Users/dmitry -e 这里是/Users/dmitry/Library/LaunchAgents/dminkovsky.php-fpm.plist的内容: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>dminkovsky.php-fpm</string> <key>ProgramArguments</key> <array> <string>/usr/sbin/php-fpm</string> <string>-p</string> <string>/Users/dmitry/var</string> <string>-e</string> </array> <key>EnableGlobbing</key> <true/> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> </dict> </plist> 出于某种原因,该过程不会从此.plist开始。 没有logging,所以我不知道为什么。 在/var/log/system.log ,我有: Nov 18 08:38:30 airosol com.apple.launchd.peruser.503[285] (dminkovsky.php-fpm[19833]): Exited with code: 78 Nov 18 […]
重新编辑: 大量的谷歌search,大量的跟踪,很多修补nginx.conf&/虚拟主机 – 这是一个错误信息,说ClamAV不是最新的。 运行clamscan告诉我clamscan没有安装。 试图安装clamscan告诉我,它已经安装。 e_e 所以,看起来我很快就会擦拭这台服务器。 非常感谢大家提供的见解。 如果有人知道这样的事情是怎么发生的,我知道… 编辑: 我通过重新启动服务器解决了这个问题。 e_e 如果我没有弄错,这会牵连php-fpm – 对吗? 然而,现在nginx在线,并响应我所做的configuration更改 – 我得到403禁止和502坏门户之前,我从来没有得到的东西。 (分别是ISPConfig和PhpMyAdmin)错误日志说: [error] 9150#0: *7 open() "[…]/ispconfig/[..]/phpmyadmin" failed (13: Permission denied), 一个链接表明增加缓冲区大小 – 我试过了,不起作用 – 而我发现的其他东西似乎是无关紧要的— 再次感谢 ! 长话短说,这一切都开始时,我试图做一个nginxconfiguration添加一个密码到一个网站。 没什么大不了 – 我以前做过,没有汗 – 但是,configuration不起作用,没有理由为什么— 好吧,长话短说,经过多次失败的尝试,我终于注意到了这一行: include sites-enabled/* ; 在nginx.conf中 只有惊喜, 一切仍然奏效 — 确定Apache没有运行后(它甚至没有安装,不再是了!) – 我search了一下,看看是否可以在Nginx上find关于configurationcaching的任何信息 – 但没有骰子。 […]
我的网站开始加载4-5秒(高峰时间) – 几乎不可用。 stream量:40MB / s输出,6MB / s英寸(几乎95%的下载文件0.5-2GB大)。 超过100个同时连接。 机器工作正常,没有问题,我通过网站非常缓慢地上传,大约50KB / s,通过FTP下载50KB / s,一切正常,并且KB / s的嗡嗡声,所以我认为问题可能会在nginx,php-fpm或mysql的configuration中。 但我实际上不知道如何debugging这个问题。 我已经search并增加了价值,以同时拥有数以千计的客户端,但问题仍然是一样的。 netstat -na |grep :80 |wc -l 250 //if it is something like 150 AND netstat -an | grep 80 | grep ESTA | wc 150 //this is less than 100, then it is okay, otherwise website is […]
我在我的日志中得到这个错误信息: *329 connect() failed (111: Connection refused) while connecting to upstream, client: 37.24.154.207, server: domain.de, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9065", host: "domain.de", referrer: "http://domain.de/wp-admin/edit.php?post_status=draft&post_type=post" 我不知道为什么? 我的nginxconfiguration: server { listen xx.xx.xx.xx:80; server_name domain.de www.domain.de; root /var/www/domain.de/web; if ($http_host = "www.domain.de") { rewrite ^ $scheme://domain.de$request_uri? permanent; } index index.html index.htm index.php index.cgi index.pl index.xhtml; error_page 400 […]
我已经在我的ded服务器上安装了phpmyadmin ,使用Nginx和MariaDB下的Centos 6.i可以用root用户falwlesslylogin到mariaDB cli,但是我不能通过phpmyadminlogin。 它显示我的第一个login页面phpmyadmin ,当我进入用户和通过,页面将刷新,但nothings发生,只有令牌添加在地址。 我已经使用静态链接为phpmyadmin文件夹和nginx根目录之间的链接.i应该说,其他的PHP页面加载完美无论如何,任何帮助将不胜感激。
我遇到了APC正常工作的一些问题。 文件caching总是显示命中= 1和未命中继续增加,但同时,caching的文件条目显示一些数字在一段时间内成百上千。 用户高速caching条目看起来似乎正常工作。 但一天几乎两次我不断收到内部服务器错误,然后不得不重新启动php-fpm。 我高度分配1024M的内存和其他一些常规的configuration的东西。 如果你有更多的想法,我可以有你的电子邮件ID来讨论这个,并发送给你更多的细节。 APCconfiguration如下。 我已经尝试了非零ttls和其他选项。 另外,在FastCGIconfiguration – 我已经尝试设置PHP_FCGI_CHILDREN为'0'和其他值。 我已经设置了超过FcgidMaxRequestsPerProcess值(8000)的PHP_FCGI_MAX_REQUESTS(12000),正如我在本文中发现的, http: //httpd.apache.org/mod_fcgid/mod/mod_fcgid.html 但是内部服务器错误仍然每天都会出现几乎两次,我必须重新启动PHP-FPM APCconfiguration如下: apc.cache_by_default 1 apc.canonicalize 1 apc.coredump_unmap 0 apc.enable_cli 0 apc.enabled 1 apc.file_md5 0 apc.file_update_protection 2 apc.filters apc.gc_ttl 3600 apc.include_once_override 1 apc.lazy_classes 00 apc.lazy_functions 0 apc.max_file_size 4M apc.mmap_file_mask /tmp/apc.mXJeFR apc.num_files_hint 10000 apc.preload_path apc.report_autofilter 0 apc.rfc1867 0 apc.rfc1867_freq 0 apc.rfc1867_name APC_UPLOAD_PROGRESS […]
我刚刚在我的Ubuntu 14.04 LTS 64位服务器上安装了Nginx 1.6.0,MySQL,PHP-FPM 5.5.9和phpMyAdmin。 当我去domain.tld / phpmyadmin我最终在一个空白页面,但是当我查看源代码,我可以看到HTMLlogin表单,JavaScript和其他一切,虽然页面是空白的。 我遵循这个指南和普通的PHP脚本工作。 一个简单的PHP脚本,回声“你好”完美的作品。 在/var/log/nginx/error.log或access.log中没有错误。 这是我的nginxconfiguration: server { listen 8081 default_server; #listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name localhost; location / { # First attempt to serve request as file, then # as directory, then fall back to […]
我有一个Nginx服务器(1.6),在我的本地服务器上有PHP-FPM。 我有我的“/ var / www /”文件夹中的多个webapps,如site01,site02 … 我的应用程序使用CodeIgniter。 我想在/ var / www / site01调用默认位置,并调用/ var / www / site02当我去: http://server/site02. 这里是我的nginx的default.conf: 服务器{听80; server_name localhost; access_logclosures; client_body_buffer_size 1M; proxy_max_temp_file_size 0; disable_symlinks off; # Site 01 location / { root /var/www/site01; index index.html index.php index.htm; try_files $uri $uri/ /index.php; location = /index.php { fastcgi_pass 127.0.0.1:9000; fastcgi_read_timeout 10000; […]
我在我的小型服务器(BeagleBoneBlack)上有一个文件,我想下载到另一台机器上。 因此,我尝试通过PHP从我的nginx-web服务器。 文件大小约为1.2 GB,下载总是停在大约410MB。 由于两台计算机在同一个交换机后面,我不会看到连接问题。 此外,我可以排除软件问题的可能性,因为我使用不同的PHP软件进行了testing,发生同样的问题。 通过SCP下载工作没有问题。 在通过PHP下载期间,我会看到/proc/loadavg值 3.15 1.17 0.46 1/95 1163 3.15 1.17 0.46 1/95 1164 3.14 1.20 0.48 1/95 1165 3.14 1.20 0.48 1/95 1166 3.21 1.25 0.50 1/95 1167 3.21 1.25 0.50 1/95 1168 3.21 1.25 0.50 1/95 1169 3.44 1.43 0.57 1/95 1172 3.42 1.52 0.61 2/95 1175 3.42 1.52 […]
我有另一个相关的问题,但我偏离它,因为我正在改变我的服务器使用nginx而不是Apache。 相关: 服务器问题,耗尽内存,真正的高负载平均 我仍然有问题,但现在更容易瞄准。 以下是我可以给予的详细情况: 我的妻子有一个WordPress站点,插入了很多插件,包括WooCommerce。 即使只是我们两个人不停地上网(我打开两个浏览器,一个浏览器),我们就能够停止服务器。 系统规格:Debian 7.7,512MB RAM,512MB交换,2个内核(速度未知),nginx,PHP5-FPM,MySQL服务器。 我的terminal窗口截图非常多,讲述了这个故事: 在冲浪期间,vmstat si / so值为0(大部分)。 当我们同时在网站上冲浪的时候,价值观已经变得越来越高了,而且htop显示出了一些严重的挣扎。 有了新的nginx / php-fpm设置,如果我只是运行sudo service php5-fpm restart ,一切都是固定的。 同样的问题也发生在Apache上,如果我们在同一时间浏览网站,si / so skyrockets,站点冻结,那么它要么在一段时间后自行恢复,要么我必须重新启动Apache。 我在这里不知所措 我宁愿向前移动我的nginx安装程序并对其进行故障排除。 在这种情况下,似乎php-fpm也许是问题。 但是只要我们点击服务器,这是非常不可接受的。 如果她一下子突然有20人来到现场,我们就会被拧紧。 如果这是一个失败的原因,试图在一个512MB的2核心服务器上运行WordPress网站,让我知道。 我可能需要升级到1024MB / 4核。