You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
How do I change the configuration of apache and PHP or Can I do ignore the setup of apache?
Thanks,
================================================================================
Error executing action `restart` on resource 'service[apache2]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of sleep 1 && /etc/init.d/apache2 restart && sleep 1 ----
STDOUT: * Restarting web server apache2
...fail!
* The apache2 configtest failed.
STDERR: Output of config test was:
[Thu Jan 07 13:04:43.154180 2016] [:crit] [pid 18547:tid 140585416689536] 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
Action 'configtest' failed.
The Apache error log may have more information.
---- End output of sleep 1 && /etc/init.d/apache2 restart && sleep 1 ----
Ran sleep 1 && /etc/init.d/apache2 restart && sleep 1 returned 1
Resource Declaration:
---------------------
# In /var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_ganglia/recipes/configure-server.rb
86: service "apache2" do
87: action :restart
88: end
Compiled Resource:
------------------
# Declared in /var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_ganglia/recipes/configure-server.rb:86:in `from_file'
service("apache2") do
provider Chef::Provider::Service::Debian
action [:restart]
supports {:restart=>true, :reload=>true, :status=>true, :start=>true}
retries 0
retry_delay 2
service_name "apache2"
enabled true
pattern "apache2"
restart_command "sleep 1 && /etc/init.d/apache2 restart && sleep 1"
reload_command "sleep 1 && /etc/init.d/apache2 reload && sleep 1"
cookbook_name "opsworks_ganglia"
recipe_name "configure-server"
end
The text was updated successfully, but these errors were encountered:
Thanks for the reply.
On ubuntu 12.04 with Chef 11.10.4, the recipe works as well. But on ubuntu 14.04 with Chef 11.10.4, The apache/PHP issue was raised. I don't use any custom cookbooks.
Hmmm, Ubuntu 12.04 and 14.04 works for me on ganglia layer. Can you still reproduce it by launching a new instance? Can you send me your instance id I may can help to take a look?
How do I change the configuration of apache and PHP or Can I do ignore the setup of apache?
Thanks,
The text was updated successfully, but these errors were encountered: