PHP页面未加载使用PHP启用

我已经在我的网站上启用php7.1,如下所示,但似乎没有PHP网页加载在我的网站上,他们只是所有的默认代码。 我曾尝试启用php5.6和禁用7.1,但不会改变任何东西。 我很困惑,为什么它不工作。

我在apache2.4和Ubuntu 16.04上

这是我在我的apache error.log文件中看到的

[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' 

而当我跑步

 apache2 -e debug 

我明白了

 [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}