| 117 | == PHP and Moshes == |
| 118 | |
| 119 | When upgrading to stretch, php5-fpm will remain and php7.0-fpm will be added. Both will exist at the same time. |
| 120 | |
| 121 | Normally, the proper step would be to purge php5 and carefully transition the php configuration from /etc/php5/fpm/pool.d/site.conf to /etc/php/7.0/fpm/pool.d/sites.conf. However, on moshes, we are keeping php5 to help with the transition of member web sites. |
| 122 | |
| 123 | Additionally, red will handle the transition by auto-converting all sites to the most recent version of PHP available, ''unless'' the following comment is present in the web configuration: |
| 124 | |
| 125 | {{{ |
| 126 | # mfplphpversion: 5 |
| 127 | }}} |
| 128 | |
| 129 | After upgrading a mosh, you must run `/usr/local/share/red/node/sbin/red-regenerate-web-config` |
| 130 | |
| 131 | If that comment is present, then the site will remain on PHP5 after `red-regenerate-web-config` is run. Otherwise the site will switch to using PHP7.0. |
| 132 | |