Saturday, August 27, 2022

Fix "Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. AH00013: Pre-configuration failed"

The below steps apply for PHP8:
1. Go to /etc/httpd/conf.modules.d

2. Edit 00-mpm.conf

3. Uncomment following line:
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

4. Comment both the following:
#LoadModule mpm_worker_module modules/mod_mpm_worker.so
#LoadModule mpm_event_module modules/mod_mpm_event.so


5. Start Apache
service httpd start

No comments:

Post a Comment