Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gentoo:separated-php [2024/03/12 08:40] – willy | gentoo:separated-php [2025/03/13 13:27] (current) – [Using independent PHP for different services] willy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Using independent PHP for different services ====== | + | ====== |
| Ideally, you want to run each PHP-based service within the boundaries of it's own PHP instance. The advantages of such a solution would be that each PHP instance can run as the service user which guarantee service isolation and more protection in data access. | Ideally, you want to run each PHP-based service within the boundaries of it's own PHP instance. The advantages of such a solution would be that each PHP instance can run as the service user which guarantee service isolation and more protection in data access. | ||
| Line 21: | Line 21: | ||
| <code bash> | <code bash> | ||
| cp -a / | cp -a / | ||
| + | rm / | ||
| </ | </ | ||
| Choose your preferred (or required) PHP version for service1. | Choose your preferred (or required) PHP version for service1. | ||
| + | Your PHP FPM will still use the **php.ini** from the original setup folder, so delete the copied one or you will get confused! | ||
| Then, you need the following edit to your **/ | Then, you need the following edit to your **/ | ||