WordPress 6.2 fails with php8.0

I send you the URL privately, because I don’t want to publish it further. It is the homepage of my hunting club.

what is the gauge you use ?

What do you mean?

1 Like

I loved to shoot at 200 meters… I was 30 year old.

I placed 3rd in the state 300m precision shooting championships last year. My equipment I will not not publish here, so as not to scare anyone.

1 Like

Back to the topic: php-fpm8.1: segfault at ... ip ... sp ... error 4 in opcache.so · Issue #8149 · php/php-src · GitHub

Possibly the opcache is involved after all. How can I disable it?

For the moment I switched back to PHP 7.3

I bet it is an opcache setting issue

to test it could you drop a file to

add a file /etc/opt/remi/php80/php-fpm.d/opcache.ini

with the content

https://gist.githubusercontent.com/rohankhudedev/1a9c0a3c7fb375f295f9fc11aeb116fe/raw/fcc99c652aa6d06160d0472b64afca933b5751f1/opcache.ini

restart php-fpm

signal-event nethserver-remi-php80-php-fpm-update

to check if it is applied

[root@web ~]# scl enable php80 bash
[root@web ~]# php -v
PHP 8.0.28 (cli) (built: Feb 14 2023 11:05:44) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.28, Copyright (c) Zend Technologies
with Zend OPcache v8.0.28, Copyright (c), by Zend Technologies
[root@web ~]# php -r “phpinfo();” |grep opcache

Verify the new value you added figure at the good place

With PHP73 the site works again.

I created the ini-file, switched bacK tO php 8, the error occurs again.

php -v
PHP 8.0.28 (cli) (built: Feb 14 2023 11:05:44) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.28, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.28, Copyright (c), by Zend Technologies
php -r “phpinfo();” |grep opcache
bash: syntax error near unexpected token `('

php -r "phpinfo();" |grep opcache

php -r "phpinfo();" |grep opcache
Additional .ini files parsed => /etc/opt/remi/php80/php.d/10-opcache.ini,
opcache.blacklist_filename => /etc/opt/remi/php80/php.d/opcache*.blacklist => /etc/opt/remi/php80/php.d/opcache*.blacklist
opcache.consistency_checks => 0 => 0
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => On => On
opcache.enable_file_override => Off => Off
opcache.error_log => no value => no value
opcache.file_cache => no value => no value
opcache.file_cache_consistency_checks => On => On
opcache.file_cache_only => Off => Off
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.huge_code_pages => Off => Off
opcache.interned_strings_buffer => 8 => 8
opcache.jit => tracing => tracing
opcache.jit_bisect_limit => 0 => 0
opcache.jit_blacklist_root_trace => 16 => 16
opcache.jit_blacklist_side_trace => 8 => 8
opcache.jit_buffer_size => 0 => 0
opcache.jit_debug => 0 => 0
opcache.jit_hot_func => 127 => 127
opcache.jit_hot_loop => 64 => 64
opcache.jit_hot_return => 8 => 8
opcache.jit_hot_side_exit => 8 => 8
opcache.jit_max_exit_counters => 8192 => 8192
opcache.jit_max_loop_unrolls => 8 => 8
opcache.jit_max_polymorphic_calls => 2 => 2
opcache.jit_max_recursive_calls => 2 => 2
opcache.jit_max_recursive_returns => 2 => 2
opcache.jit_max_root_traces => 1024 => 1024
opcache.jit_max_side_traces => 128 => 128
opcache.jit_prof_threshold => 0.005 => 0.005
opcache.lockfile_path => /tmp => /tmp
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 10000 => 10000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
opcache.memory_consumption => 128 => 128
opcache.opt_debug_level => 0 => 0
opcache.optimization_level => 0x7FFEBFFF => 0x7FFEBFFF
opcache.preferred_memory_model => no value => no value
opcache.preload => no value => no value
opcache.preload_user => no value => no value
opcache.protect_memory => Off => Off
opcache.record_warnings => Off => Off
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 2 => 2
opcache.revalidate_path => Off => Off
opcache.save_comments => On => On
opcache.use_cwd => On => On
opcache.validate_permission => Off => Off
opcache.validate_root => Off => Off
opcache.validate_timestamps => On => On
[root@HHOL-NethServer php-fpm.d]#

it seems you do not have the changes accepted

could you move the file to /etc/opt/remi/php80/php.d/90-opcache.ini

and restart the service

1 Like

There was a former 90-opcache.ini. I replaced it and I have access to the backend again.
Thank god, or rather Stephane.

1 Like

Too late, I’m off!! :wink:

1 Like

ok We found the key of your issue probably, let’s wait if it won’t be back again ;D

1 Like