I am new to ubuntu and would appreciate help overcoming a block setting up LAMP with software versions in this post's title (current I believe as of 11/2016). The problem seems to be an inability to configure Apache 2 with php7 mods.
I am using default packages installed using "tasksel install lamp-server", but the downloaded Apache2 package did not seem to install as configured for php7 mods. For example, the files "php7.0conf" and "php7.0load" were not copied into the folder "etc/apache2/mods-enabled". Using "libapache2-mod-php7.0" also does not seem to enable php7.0 mods. The only instruction I have found to enable php7.0 mods is "a2enmodphp7.0," which does copy the php7 "conf" and "load" files into Apache2's "mods-enabled" folder, but then Apache2 fails to restart with the following error:
"Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP. AH00013: Pre-configuration failed
httpd.service: control process exited, code=exited status=1"
I get the same result downloading Apache2 individually (using "apt-get install apache2") followed by "apt-get libapache2-mod-php7.0" and "a2enmodphp7.0".
My research shows this to be a known incompatibility between Apache2 and php7. A wiki on Apache says that Apache runs a threaded MPM while PHP7 is not compiled to be threadsafe. It suggests a workaround using manual changes to Apache configuration files. See Section 4.3 of https://wiki.archlinux.org/index.php/LAMP#PHP.
Before I start tinkering under the hood, I would like to ask the community whether there is a more preferred solution? My trust in the people who put together the default packages leads me to hope they built in something that stitches them together.