Php, resources and Apache errors related

Keywords: WordPress - Google Cloud Platform - Technical issue - Other

bnsupport ID: 178cd43c-bd3c-c9ea-fcef-2231c16a1aaa

bndiagnostic output:

? Php: Found possible issues
? Resources: Found possible issues
? Apache: Found possible issues
https://docs.bitnami.com/general/apps/akeneo/administration/increase-memory-limit/
https://docs.bitnami.com/installer/faq/linux-faq/administration/increase-memory-linux/
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

bndiagnostic failure reason: The documentation did not make any significant change

Description:
? Php: Found possible issues
? Resources: Found possible issues
? Apache: Found possible issues
[Php]
The following error appears in the /opt/bitnami/php/logs/php-fpm.log:

[17-Nov-2021 10:39:21] ERROR: fork() failed: Cannot allocate memory (12)

This error indicates there is a problem with the memory limit in PHP. Please
check the following guide to increase the number of PHP-FPM child processes:

[Resources]
Your instance has little available RAM memory.

 total used free shared buff/cache available Mem: 1693 807 268 97 617 620 Swap: 
0 0 0

You could try to increase your instance’s memory. Please check your cloud
provider’s documentation for more information.
You can also enable swap memory to improve performance.

[Apache]
Found recent error or warning messages in the Apache error log.

Press [Enter] to continue:
[Thu Nov 18 06:12:35.880066 2021] [proxy_fcgi:error] [pid 2196:tid 
139897922828032] [client **ip_address**:59724] AH01071: Got error 'PHP message: 
PHP Warning: strstr() expects parameter 1 to be string, object given in 
/opt/bitnami/wordpress/wp-includes/functions.php on line 1105PHP message: PHP 
Warning: stripos() expects parameter 1 to be string, object given in 
/opt/bitnami/wordpress/wp-includes/functions.php on line 1112PHP message: PHP 
Warning: stripos() expects parameter 1 to be string, [Thu Nov 18 06:12:39.852514 
2021] [proxy_fcgi:error] [pid 2196:tid 139898031933184] [client 
**ip_address**:59724] AH01071: Got error 'PHP message: PHP Warning: strstr() 
expects parameter 1 to be string, object given in 
/opt/bitnami/wordpress/wp-includes/functions.php on line 1105PHP message: PHP 
Warning: stripos() expects parameter 1 to be string, object given in 
/opt/bitnami/wordpress/wp-includes/functions.php on line 1112PHP message: PHP 
Warning: stripos() expects parameter 1 to be string, [Thu Nov 18 06:12:42.998921 
2021] [proxy_fcgi:error] [pid 2196:tid 139897998362368] [client 
**ip_address**:59724] AH01071: Got error 'PHP message: PHP Warning: strstr() 
expects parameter 1 to be string, object given in 
/opt/bitnami/wordpress/wp-includes/functions.php on line 1105PHP message: PHP 
Warning: stripos() expects parameter 1 to be string, object given in 
/opt/bitnami/wordpress/wp-includes/functions.php on line 1112PHP message: PHP 
Warning: stripos() expects parameter 1 to be string,

Already increase php memory-limit and vars by using nano /opt/bitnami/php/etc/php.ini but it shows memory limit problem. please help me sir.
And what are these errors sir? how can i solve this? I read by given document urls but i dont understand. Please guide me.

Hi @shopeevivi173,

The Cannot allocate memory error message means that the machine doesn’t have enough RAM memory to run the process. Instead of increasing the PHP’s memory limit, you should increase your instance’s RAM memory, that was another suggestion of our tool.

https://docs.bitnami.com/google/faq/administration/change-server-type/

Happy to help!


Was my answer helpful? Click on :heart:

1 Like

Thank you Sir,
What about Apache error sir?
[Apache]
Found recent error or warning messages in the Apache error log. can you help me?

Hi @shopeevivi173,

They are some warnings related to WP. It may be produced by a theme or a plugin. You could try to disable them and check if the error persists. For example:

wp plugin deactivate soo-demo-importer

If you continue facing issues, we recommend asking on WP support forums.

https://wordpress.com/forums/

Regards

1 Like

Ok sir. Thank you for your support @davidg