Skip to content

Instantly share code, notes, and snippets.

@mapesa
Created June 22, 2016 08:48
Show Gist options
  • Save mapesa/9d165eef751019ca715567f5923d8056 to your computer and use it in GitHub Desktop.
Save mapesa/9d165eef751019ca715567f5923d8056 to your computer and use it in GitHub Desktop.
Running PHP 7.0 and Apache2 mpm-prefork on Mint 17
The default apache2 from the Mint 17 repos (ubuntu-trusty) uses the recommended and much faster `mpm-event`.
Trying to install PHP7.0 on this repo throw the following error:
Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP
Apache won't restart.
`mpm-prefork` will work with the *unthreadsafe* PHP7.0
To install it run the following commands:
```
sudo apt install apache2-mpm-prefork
sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo a2enmod php7.0
sudo service apache2 restart
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment