diff --git a/recipes/default.rb b/recipes/default.rb
index 5f4e1f7e6696894f8847e74477f71fb5d621e1a1..fe7bef38b9626ca4f3eef6ca6e5bd8320c5d28a9 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -22,7 +22,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 
-package 'php-xdebug' do
+package 'php' + node['ubuntu_base']['php_version'] + '-xdebug' do
 	action 'upgrade'
 end