FastCGI sent in stderr: "PHP message: PHP Warning: After migrating wordpress - php

I just migrate my old site from another vps to the new one. New vps is running easyengine v3.8 on a fresh debian 8 instalation.
The migration is done via rsync command. The steps of migration process are :
Create new wordpress site in new vps
Pointing DNS to new IP, new site running well.
Remove all wordpress files in /var/www/mydomain.com/htdocs
Dump mydomain.com's database in old vps
Migrating data ( including dumped database ) from old vps to new vps via rsync
Import database in new vps.
Edit wp-config.php
Unfortenately, my new site wasn't live at all. Instead, it gives a HTTP 500 error with blank white screen. Even after i enable WP_DEBUG, the screen still white with no message on it.
I've tried to deactivate all plugins, still no change. Then i look to error log ini /var/www/mydomain.com/logs/error.log, it show message like this :
2019/01/16 01:03:37 [error] 8811#0: *849 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
PHP message: PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
PHP message: PHP Fatal error: Unknown: Failed opening required '/var/www/html/mydomain.com/wordfence-waf.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0" while reading response header from upstream, client: 167.248.155.196, server: mydomain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomain.com"
From this message, I notice there is a different webroot location, old webroot is located under /var/www/html/mydomain.com , while new webroot is located under /var/www/mydomain/htdocs.
is there any suggest? Thank you.

Related

Why is searching not returning results in Magento 1.9 with error messages appearing in nginx logs for FastCGI and Elastica?

I'm running Magento 1.9.4 on Ubuntu 18.04, PHP 7.2 with nginx 1.14 fronting it all. The shopping site is loading and navigable. However, when I search for a term, it does not list the matches in the drop-down and shows the no results page.
I can see the following message in the nginx error logs:
2020/05/22 14:54:51 [error] 1213#1213: *270 FastCGI sent in stderr: "PHP message: PHP Warning: array_keys() expects parameter 1 to be array, null given in /var/www/example.com/lib/Elastica/Status.php on line 69
PHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/example.com/lib/Elastica/Status.php on line 81
PHP message: PHP Notice: Undefined index: version in /var/www/example.com/lib/Elastica/Client.php on line 108" while reading response header from upstream, client: 72.71.71.72, server: www.example.com, request: "GET /catalogsearch/result/?q=trouser HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com", referrer: "https://www.example.com/boutique/"
This was working prior to upgrading from Ubuntu 14.04 and PHP 7.0.
I need to find another job.
Magento is using Elastica client which in turn is pointing to AWS ElasticSearch service. I had to whitelist the host (Magento site) in the AWS ElasticSearch access policy in order for it to access the service.

Tuleap: cannot not attach file in Tracker

Trying to attach a file (image) to an artifact in Tracker I've got an error:
2018/07/11 13:16:04 [error] 3553#0: *1299 FastCGI sent in stderr: "PHP message: PHP Warning: mkdir(): Permission denied in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 955
PHP message: PHP Warning: chown(): Operation not permitted in /usr/share/tuleap/src/common/backend/Backend.class.php on line 185
PHP message: PHP Warning: chgrp(): Operation not permitted in /usr/share/tuleap/src/common/backend/Backend.class.php on line 222
PHP message: PHP Warning: move_uploaded_file(/var/lib/tuleap/tracker/447/105): failed to open stream: No such file or directory in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 966
PHP message: PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpinBdbP' to '/var/lib/tuleap/tracker/447/105' in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php on line 966" while reading response header from upstream, client: 10.73.12.147, server: tuleap, request: "POST /plugins/tracker/?aid=4&func=artifact-update HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "tuleap", referrer: "https://tuleap/plugins/tracker/?aid=4"
The artifact is updated without visible errors in GUI, but the changeset is empty, the image is not displayed.
I followed the full installation process when set up Tuleap (no Docker).
SELinux is disabled as suggested in this guide.
CentOS 7, Tuleap™ 10.1.99.104
It seems to have been a bug in this particular build of Tuleap.
Workaround:
chown -R codendiadm:codendiadm /var/lib/tuleap/tracker/
More info in the official bugtracker:
https://tuleap.net/plugins/tracker/?aid=11821

fail to open file in laravel.The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500

When I try to run my project, I am getting this error in terminal.
[Fri Mar 30 14:36:23 2018] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Fri Mar 30 14:36:23 2018] PHP Fatal error: Unknown: Failed opening required '/var/www/html/imporeexcel/public/server.php' (include_path='.:/usr/share/php') in Unknown on line 0
I confirmed the issue, it seems a bug in laravel 5.6.12 installer. It deletes the server.php upon the first artisan serve.
A temporary solution will be to create another project then copy that newly created server.php this will solve it.
EDIT:
If your anti-virus is avast, you need to add exception there, I have a response in GitHub that avast considers it as a threat.

Browsing to phpMyAdmin Fatal Error: Failed opening Message.class.php

Today when I turned on my XAMPP I started Apache and MySQL. When I browsed to localhost my site worked.
But when I visited localhost/phpmyadmin I got this error in my browser:
Warning: require_once(./libraries/Message.class.php): failed to open stream: No such file or directory in G:\xampp\phpMyAdmin\libraries\Error.class.php on line 16`page
Fatal error: require_once(): Failed opening required './libraries/Message.class.php' (include_path='G:\xampp\php\PEAR') in G:\xampp\phpMyAdmin\libraries\Error.class.php on line 16
I can't start phpMyAdmin, but Apache is working properly. Does anybody know what the problem is?
By the comments:
Your phpmyadmin install is corrupted since one file is missing, try to download this file for your specific version of phpmyadmin.
Or (recommended option) download the entire phpmyadmin new version at https://github.com/phpmyadmin/phpmyadmin

Yosemite Nginx PHP crashes on curl_exec

I have OSX 10.10 Yosemite with Nginx and PHP installed using Homebrew. I am trying some stuff with Symfony, but I have discovered that when I run my scripts, as soon as they reach the method call curl_exec, all execution is aborted and the server throws a 502 Bad Gateway error.
I created a separate script outside the Symfony scope and ran it with the PHP version I installed via Homebrew, and it worked perfectly fine. It is my assumption that there is an issue with PHP-FPM, however, as opposed to most other posts on StackOverflow, it's not like all PHP scripts are crashing, or that the curl extension isn't installed. Because all PHP scripts work, and curl method calls work, except for curl_exec.
Also, when the curl_exec function is called via Nginx, this is the line that is added to the error log:
2015/06/02 23:01:43 [error] 13355#0: *10 upstream prematurely closed
connection while reading response header from upstream, client:
127.0.0.1, server: mysubdomain.localhost, request: "GET /app_dev.php/users/create?XDEBUG_SESSION_START=19867 HTTP/1.1",
upstream: "fastcgi://127.0.0.1:9000", host: "mysubdomain.localhost:8080"
EDIT: As per nifr's request, here's what appears in my PHP error log:
[04-Jun-2015 09:25:58 America/Los_Angeles] PHP Warning: PHP Startup:
mcrypt: Unable to initialize module Module compiled with build
ID=API20131226,NTS PHP compiled with build ID=API20131226,NTS,debug
These options need to match in Unknown on line 0 [04-Jun-2015
09:26:03 America/Los_Angeles] PHP Warning: PHP Startup: mcrypt:
Unable to initialize module Module compiled with build
ID=API20131226,NTS PHP compiled with build ID=API20131226,NTS,debug
These options need to match in Unknown on line 0
However, this appears regardless of whether I use curl or not. It appears even when I so much as do a echo 'Hello World';, so I'm pretty sure this has nothing to do with curl_exec.
EDIT 2: I found another person who seems to have the same issue: php-fpm crashed when curl or file_get_contents request a https url
However, it is even more severe for them, because on my side, file_get_contents does not cause any crashes.
EDIT 3: nginx log:
[21-Oct-2015 11:39:39] WARNING: [pool www] child 73043 exited on
signal 11 (SIGSEGV) after 201.232240 seconds from start [21-Oct-2015
11:39:39] NOTICE: [pool www] child 73216 started

Categories