Articles of php7

ISPConfiglogin与Firefox兼容,但不适用于Chrome

问题 Chrome会login到ISPConfig,但只有在使用IP地址的情况下。 当使用FQDN时它会静默失败。 注意: ispconfig没有标签,我没有足够的信誉来创build它。 细节 我刚刚使用Matteo Temporini等人创build的bash脚本,在 Ubuntu 16.04.3的全新安装中设置了ISPConfig。 我接受了所有的默认设置。 DNSlogging由Cloudflare DNS维护,它提供了一个caching的代理服务。 我禁用了caching。 当我在Firefox或Chrome浏览器访问https://xxx.xxx.xxx.xxx:8080/时,我可以使用默认密码以pipe理员身份login。 但是,如果我访问https://sub.domain.com:8080允许我login,但Chrome只是清空用户名和密码字段。 它不认为用户名和密码错误,它只是忽略它们,login失败。 注:该网站使用自签名证书,并且Firefox和Chrome都首先要求我接受“不安全”证书。 我认为行为上的差异是由于Chrome和Firefox将login参数发送到服务器的方式不同所致。 我试图在/var/logs/apache2/error.log和/access.log跟踪这个,但是没有太多logging。 以下是Apache在重新启动时logging的一些错误: [Thu Nov 09 10:30:22.608038 2017] [:error] [pid 1421] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [Thu Nov 09 10:30:22.608055 2017] [:notice] [pid 1421] mod_python: Creating 8 session mutexes based on 150 max processes and 0 […]

Apache没有特殊原因停止运行

Ubuntu 16.04&LAMP堆栈已经有一年的时间了。 基本上服务器sorting在几个月的使用后发出。 在检查了服务器上的所有日志之后,没有任何问题显示,只是50%的时间停止工作。 它不是内存不足 在日志中没有错误 大量的磁盘空间和inode Apparmor不挡道路 服务器未加载 它使用Apache2运行PHP 7.0,现成的东西,没有什么奇特的。 几个月后一直发生。 不知道确切的持续时间,因为它的工作正常,那么有一天只是去干。 我会在这里把phpinfo(),但我甚至无法加载:| 除了显而易见的syslog / apache logs / etc之外,任何input或者其他我可以检查的东西都将受到极大的赞赏。

空白页Nginx 1.10 WordPress PHP7.0-FPM

我一直在寻找几个小时。 我发现了很多类似的情况,不知道我为什么不匹配。 当我去我的url时,我得到一个502错误的网关错误。 现在使用当前的设置,这只是一个空白页面。 我猜一个文件无法find,但我一直没能find任何错误或遗漏的东西。 我在Ubuntu 16.04 LTS,Nginx 1.10,PHP 7.0 FPM,MySQL。 我需要分享其他东西吗? 感谢大家的帮助。 nginx.conf user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; client_body_buffer_size 128k; ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; […]

在读取来自上游的响应头时,FastCGI在stderr中发送

我最近在我的VPS上安装了Nginx(已编译)+ PHP7-fpm + MariaDB! 而我看到我所有的nginx /日志文件这个错误: 2017/11/17 17:45:15 [error] 23573#23573: *7 FastCGI sent in stderr: "PHP message: verify error, responseINVALID" while reading response header from upstream, client: 151.xxx.xxx.xxx, server: example.com, request: "GET /wp-admin/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.1-example.sock:", host: "www.example.com", referrer: "https://www.example.com/wp-admin/index.php" 2017/11/17 17:45:18 [error] 23573#23573: *13 FastCGI sent in stderr: "PHP message: verify error, responseINVALID" while […]

在Websphere上安装Angular / Lumen 5应用程序(许可证或社区)

我有一个使用Angular 4和Lumen 5.5开发的Web应用程序,MariaDB数据库有望在Apache HTTP服务器上运行。 客户端现在想要探索在Websphere Application Server上运行应用程序的可能性,因为他拥有相同的许可证。 如何在WAS上安装Lumen和Angular应用程序? 我试过的 – 我安装了WAS社区的Liberty服务器,并尝试部署一个从示例php应用程序构build的示例phar文件,但Liberty服务器拒绝phar文件。 有关WAS上PHP应用程序部署的教程很难find。 有没有人成功地在WAS上部署了一个PHP应用程序,如果是的话,可以请指导我如何去做? 感谢帮助。 谢谢!

服务php-fpm没有获得用户权限

我有一个php-fpm的问题。 它实际上是php7版本。 我有Drupal,它会抱怨某些目录不可写。 只有当我启动php-fpm作为这样的服务: #service php-fpm start 我使用nginx作为web服务器和php-fpm,在端口127.0.0.1:9000。 这是我在/etc/php-fpm.d/www.conf中的conf: ; Start a new pool named 'www'. [www] user = nginx group = nginx listen = 127.0.0.1:9000 web的所有文档 – drupal – 属于nginx:nginx。 如果我开始服务,也是 #service php-fpm start 要么 #systemctl启动php-fpm 它会抱怨权限,即使ps显示(ps aux | grep php-fpm): root 1591 0.0 0.8 528916 31260 ? Ss 07:49 0:00 php-fpm: master process […]

Zend Framework在PHP 7上

我最近升级了我的服务器使用PHP 7.0。 但是,在此升级之后,我注意到我的Web应用程序无法正常工作。 我看着我的apache2 error.log文件,发现这个错误: PHP致命错误:未捕获错误:未find类“Zend_Loader_Autoloader” 当我在命令行上input'php -v'时,显示如下: PHP 7.0.0-5 + deb.sury.org〜trusty + 1(cli)(NTS)版权所有(c)1997-2015 PHP集团Zend引擎v3.0.0,版权所有(c)1998-2015 Zend技术与Zend OPcache版本号(c)1999-2015,由Zend Technologies提供 它看起来像框架安装,但只为cli(不是Apache)。 有谁知道如何启用它的Apache? 谢谢。

无效的变数名称:`–with-jpeg-dir'在CentOS7上编译PHP7时

我试图configurationPHP7,我得到这个错误,即使./configure –help说variables名是–with-jpeg-dir 。 我错过了什么? 这是我的命令: ./configure –with-apxs2=/usr/bin/apxs –with-mysqli –with-imap –with-imap-ssl –with-kerberos — with-pdo-mysql –with-openssl –with-curl –enable-pcntl libdir=lib64 –with-zlib –enable-zip –enable-mbstring –enable-intl –with-readline –with-xsl –with-gd –with-jpeg-dir=/usr/lib64 –with-png-dir=/usr/lib64 –with-gmp –enable-bcmath –enable-opcache –with-config-file-path=/etc –with-config-file-scan-dir=/etc/php.d 确切的错误响应是: configure: error: invalid variable name: '–with-jpeg-dir'

Nginx内存configuration文件

我在Docker容器中使用nginx 1.9.2(使用pagespeed和geoIP),在Google容器引擎上运行。 它作为运行php-fpm(php7)的另一个容器的代理。 我也使用fastcgi代理。 我觉得它很慢,所以我开始看着不同的可用graphics,我看到这个内存图: 有人见过这样的事吗? 这是一种常见的模式吗? 实际上是否可以说一个nginxconfiguration文件是“正常的”或不? 如果你是我,你会怎么做? 这是顶部: Mem: 1352376K used, 392976K free, 0K shrd, 29581464K buff, 29581520K cached CPU: 4% usr 1% sys 0% nic 94% idle 0% io 0% irq 0% sirq Load average: 0.04 0.08 0.10 2/278 55 PID PPID USER STAT VSZ %VSZ %CPU COMMAND 7 1 www-data S […]

在centos 6上安装apache 2.4和php7

我需要安装/编译Apache 2.4和PHP7在Centos 6(特别是6.5)上一起工作。 我已经尝试过ius包,但是当apache 2.4正常工作时,似乎php7仍然依赖于apache 2.2。 通过尝试自己编译php7,如果我通过用–with-apxs2标记来configuration构build,我得到的是: Configuring SAPI modules checking for Apache 2.0 handler-module support via DSO through APXS… Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using –with-apxs2=/path/to/apxs 3. Apache was not built using –enable-so (the apxs usage […]