I have enabled php7.1 on my website as shown here but no php pages seem to load on my website, they just all come up as default code. I have tried enabling php5.6 and disabling 7.1 but that does not change anything. I am very confused why it doesnt work.
I am on apache2.4 and ubuntu 16.04
This is what I see in my apache error.log file
[Fri Feb 10 11:14:46.817334 2017] [mpm_prefork:notice] [pid 3144] AH00169: caught SIGTERM, shutting down
[Fri Feb 10 11:14:47.725712 2017] [mpm_prefork:notice] [pid 3464] AH00163: Apache/2.4.18 (Ubuntu) PHP/7.1.1-1+deb.sury.org~xenial+1 configured -- resuming normal operations
[Fri Feb 10 11:14:47.725854 2017] [core:notice] [pid 3464] AH00094: Command line: '/usr/sbin/apache2'
And when I run
apache2 -e debug
I get this
[Fri Feb 10 11:16:32.582974 2017] [core:warn] [pid 3511] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Fri Feb 10 11:16:32.583330 2017] [core:warn] [pid 3511] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Fri Feb 10 11:16:32.583403 2017] [core:warn] [pid 3511] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}