diff --git a/install.sh b/install.sh
index 9b58901e9513b96b55aab683e99603d350584f98..faac1e39ee93d5fba576ce2a4c4a7996a3136b46 100755
--- a/install.sh
+++ b/install.sh
@@ -64,7 +64,7 @@ systemctl enable mongod
 yum install -y MySQL-python python-sqlalchemy
 
 # Install PHP
-yum install -y php php-fpm php-apc php-pdo php-mcrypt php-mbstring php-pecl-runkit phpmyadmin
+yum install -y php php-fpm php-apc php-pdo php-mcrypt php-mbstring php-pecl-runkit phpmyadmin phpize
 
 # We install normal PHP *then* replace with php7 packages because phpmyadmin
 # wants original PHP, by replacing with php7 after the phpMA package doesn't
diff --git a/php-d-fpm.ini b/php-d-fpm.ini
index 250146f50d57394aab1411add7f6ca4707f38329..e0033d806912963af5b231a63a5d26624ec67f4c 100644
--- a/php-d-fpm.ini
+++ b/php-d-fpm.ini
@@ -1,2 +1,3 @@
-cgi.fix_pathinfo=0
+cgi.fix_pathinfo = 0
 date.timezone = 'UTC'
+apc.shm_size = 256M