我试图安装pecl_http作为php的扩展。 phpise工作正常,因为我得到configuration文件了。 当我去键入./configure时,我得到以下错误信息; … checking openssl/crypto.h usability… yes checking openssl/crypto.h presence… yes checking for openssl/crypto.h… yes checking for gnutls support in libcurl… no checking for ares support in libcurl… no checking for bundled SSL CA info… /etc/ssl/certs/ca-certificates.crt checking for event2/event.h… found in /usr checking for libevent version, roughly… 2.0.19-stable checking for ext/raphf support… no configure: […]
我使用Nginx的Php-fpm(php 5.5 +操作码)为一个非常高的stream量网站,php-fpm状态端点来监视正在发生的事情。 经过一个大的交通高峰期,200个“活跃的过程”仍然运行,尽pipe没有更多的stream量。 这里我的php-fpm池configuration: pm.max_children = 1024 pm.start_servers = 32 pm.min_spare_servers = 32 pm.max_spare_servers = 64 pm.max_requests = 500 这里的“永远运行”过程的php-fpm状态的结果是: { pid: 24223, state: "Running", start time: 1415881336, start since: 1307629, requests: 186, request duration: 1306169216849, request method: "GET", request uri: "/index.php?loca…..", content length: 0, user: "-", script: "/home/ebuildy/app/index.php", last request cpu: 0, last […]
我在/usr/local/apps/php54/ Webuzo(centos-6-x86_64.openvz)上有一个php实例。 它已经在/usr/local/apps/php54/bin/有pecl和phpize。 用命令安装igbinary `/usr/local/apps/php54/bin/pecl install igbinary` 我得到这个警告: "WARNING: php_bin /usr/local/apps/php54/bin/php appears to have a suffix 54/bin/php, but config variable php_suffix does not match" 完整的日志 # /usr/local/apps/php54/bin/pecl install igbinary downloading igbinary-1.2.1.tar … Starting to download igbinary-1.2.1.tar (Unknown size) ……………………..done: 229,376 bytes 9 source files, building WARNING: php_bin /usr/local/apps/php54/bin/php appears to have a suffix 54/bin/php, but […]
我有两条路线,我想通过两个节点进程(websocket路由,angular度的应用程序),而第三条路线需要传递给一个PHP应用程序,充当angular应用程序的restAPI。 我不是非常精通nginx 这是我的尝试: user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; default_type application/octet-stream; ## # Logging Settings ## access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; ## # Gzip Settings ## […]
的背景 最近我已经改变了php5-fpm而hhvm ,那真是他们所说的,“holly performance grialed” 我已经安装hhvm删除php5-fpm(真的是一个后备需要??)按照此说明: https : hhvm 。 我在这个VPS里有多个网站(域),其中大多数是wordpress + nginx + W3TC + Ubuntu 12.0.4p + MariaDB 10ish 主要问题 由于变化,随机hhvm突然停止运行。 不知道为什么,所以我决定按照本教程的最后一步,安装ps-watcher并检测服务是否未运行,并每5秒检查一次以重新启动它。 configuration hhvm.conf: location ~ \.(hh|php)$ { proxy_intercept_errors on; #error_page 502=@fallback; try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_keep_conn on; fastcgi_buffer_size 128k; fastcgi_buffers 256 16k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; include fastcgi_params; fastcgi_index index.php; fastcgi_param […]
我得到了cygwin和sshd工作正常。 使用腻子时根本没有问题。 即使对于多个命令,它也如预期那样响应。 但是,当使用phpseclib时,只有第一个命令才会收到响应。 随后的命令给出了一个空白的答复。 这是我正在执行的脚本 – http://pastebin.com/msMCef8q 这是phpseclib- http://pastebin.com/ff3sfux7的日志输出
我有以下的Apacheconfiguration: ServerName localhost UseCanonicalName Off LogLevel debug <VirtualHost *:8080> ServerName _default_ VirtualDocumentRoot /Users/alex/Sites/op3/cms/account/%-2/domain/%-3+/webroot DirectoryIndex index.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L,PT] LogLevel rewrite:trace6 LogLevel proxy:trace6 ProxyPassMatch ^/(.+\.php)(\?.*)?$ fcgi://127.0.0.1:9000/Users/alex/Sites/op3/cms/$1$2 <Directory /Users/alex/Sites/op3/cms> Options +Indexes Require all granted </Directory> </VirtualHost> ProxyPassMatch的path不正确,但我不知道如何构buildpath。 在ProxyPassMatch中使用相同的%-2和%-3+令牌似乎不起作用。 我试图用我find的另一种解决scheme ,但这是我能想到的最好的解决scheme : ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/var/run/php5-fpm.sock|fcgi://localhost:9000/Users/alex/Sites/op3/cms/account/%-2/domain/%-3+/webroot/$1 …这也没有工作。 有任何想法吗?
我在属于Windows域的Windows机器上安装了PHP,Apache 2.4和PostgreSQL 9.4.1。 我的pg_hba.conf : hostnossl all postgres 127.0.0.1/32 md5 hostnossl all all 127.0.0.1/32 sspi hostssl all all 127.0.0.1/32 sspi hostnossl all postgres ::1/128 md5 hostnossl all soescript ::1/128 md5 hostnossl all all ::1/128 sspi hostssl all all ::1/128 sspi hostssl all postgres .mydomain.com md5 hostssl all all .mydomain.com sspi PostgreSQL服务器在具有ServicePrincipalName特权的AD帐户下运行(如此处所述)。 我在PostgreSQL中创build了与我的AD帐户同名的用户帐户。 如上所述,我在同一台机器上安装了PHP和Apache。 我安装了PHPPGAdmin – […]
我在我的Debian服务器上运行PHP-FPM。 我的问题是关于内存使用情况。 我只能在PHP中设置memory_limit,对于某些请求来说不应该太低。 我也只能在PHP-FPM中设置进程的数量,也不能太低,因为我运行了很多PHP请求。 在大多数情况下,进程只能使用大约2-20mb。 进程限制是512,所以这大概是5-10GB的RAM。 但是,由于一些PHP脚本可以使用更多的内存,最大允许的内存大约是1TB(512进程* 2048mb)。 如果出现问题,Debian OOM Killer将会随机杀死进程。 有什么办法来限制php-fpm的总内存使用量吗? 像php-fpm不会产生更多的进程,因为它超出了所有的RAM。
我在CentOS 7上使用FastCGI和suEXEC for PHP。我的包装器脚本如下所示: #!/bin/sh PHPRC=/home/ben/etc/ export PHPRC export TMPDIR=/home/ben/tmp/ exec /usr/bin/php-cgi -c /home/ben/etc/php.ini PHPRCvariables被设置,phpinfo显示它,但是不会使用自定义的php.ini。 Phpinfo只是说: Configuration File (php.ini) Path /etc Loaded Configuration File (none) 有谁知道如何解决这一问题?