diff --git a/software/apache/instance.cfg b/software/apache/instance.cfg
index f9ceea533aedafc3f5f9249e47a145a105b39ec4..fecc536ddae08643a9b55bb2f92277fb695321c9 100644
--- a/software/apache/instance.cfg
+++ b/software/apache/instance.cfg
@@ -14,5 +14,5 @@ dcrond_binary = ${dcron:location}/sbin/crond
 varnishd_binary = ${varnish-2.1:location}/sbin/varnishd
 stunnel_binary = ${stunnel:location}/bin/stunnel
 rdiff_backup_binary = ${buildout:bin-directory}/rdiff-backup
-gcc_binary = ${gcc-java:location}/bin/gcc
+gcc_binary = ${gcc-java-minimal:location}/bin/gcc
 binutils_directory = ${binutils:location}/bin/
diff --git a/software/apache/software.cfg b/software/apache/software.cfg
index fe7045d933a54faa1b2cc5d1dd51c4c7b409d7a6..fc8db39ccdbb5a3ed22c0b073f0e97bf891af4b0 100644
--- a/software/apache/software.cfg
+++ b/software/apache/software.cfg
@@ -32,9 +32,9 @@ egg = slapos.cookbook
 module = apache
 
 [template]
-# Default template for erp5 instance.
+# Default template for apache instance.
 recipe = slapos.recipe.template
 url = ${:_profile_base_location_}/instance.cfg
-md5sum = 1c6eb98e8e9e9ed7f4b26eb9244f9f34
+md5sum = 17180caef7d1c477fbb037d28b705e8b
 output = ${buildout:directory}/template.cfg
 mode = 0644
diff --git a/stack/apache.cfg b/stack/apache.cfg
index d4419d05ca96792e76e43f0e6cb0fbc7f84fc8ec..63cea651ee776b5f49d50be79b0e0d095558040b 100644
--- a/stack/apache.cfg
+++ b/stack/apache.cfg
@@ -24,7 +24,7 @@ versions = versions
 
 parts =
   binutils
-  gcc-java
+  gcc-java-minimal
   apache
   apache-antiloris