[{"data":1,"prerenderedAt":2007},["ShallowReactive",2],{"navigation":3,"/docs/guide/major-version-migrations":229,"/docs/guide/major-version-migrations-surround":2002},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","/docs","docs",[9,12,56,85,132,153,186,203,216],{"title":10,"path":6,"stem":11},"","docs/index",{"title":13,"path":14,"stem":15,"children":16,"icon":55},"Getting Started","/docs/getting-started","docs/1.getting-started/1.index",[17,19,23,27,31,35,39,43,47,51],{"title":18,"path":14,"stem":15},"Introduction",{"title":20,"path":21,"stem":22},"Container Basics","/docs/getting-started/container-basics","docs/1.getting-started/2.container-basics",{"title":24,"path":25,"stem":26},"Installation","/docs/getting-started/installation","docs/1.getting-started/3.installation",{"title":28,"path":29,"stem":30},"These Images vs Others","/docs/getting-started/these-images-vs-others","docs/1.getting-started/4.these-images-vs-others",{"title":32,"path":33,"stem":34},"Choosing an Image","/docs/getting-started/choosing-an-image","docs/1.getting-started/5.choosing-an-image",{"title":36,"path":37,"stem":38},"Default Configurations","/docs/getting-started/default-configurations","docs/1.getting-started/6.default-configurations",{"title":40,"path":41,"stem":42},"Upgrade Guide","/docs/getting-started/upgrade-guide","docs/1.getting-started/7.upgrade-guide",{"title":44,"path":45,"stem":46},"Changelog","/docs/getting-started/changelog","docs/1.getting-started/8.changelog",{"title":48,"path":49,"stem":50},"About","/docs/getting-started/about","docs/1.getting-started/9.about",{"title":52,"path":53,"stem":54},"Contributing","/docs/getting-started/contributing","docs/1.getting-started/99.contributing",false,{"title":57,"path":58,"stem":59,"children":60,"page":55},"Image Variations","/docs/image-variations","docs/2.image-variations",[61,65,69,73,77,81],{"title":62,"path":63,"stem":64},"CLI","/docs/image-variations/cli","docs/2.image-variations/cli",{"title":66,"path":67,"stem":68},"FPM","/docs/image-variations/fpm","docs/2.image-variations/fpm",{"title":70,"path":71,"stem":72},"FPM-Apache","/docs/image-variations/fpm-apache","docs/2.image-variations/fpm-apache",{"title":74,"path":75,"stem":76},"FPM-NGINX","/docs/image-variations/fpm-nginx","docs/2.image-variations/fpm-nginx",{"title":78,"path":79,"stem":80},"FrankenPHP","/docs/image-variations/frankenphp","docs/2.image-variations/frankenphp",{"title":82,"path":83,"stem":84},"Unit (Deprecated)","/docs/image-variations/unit","docs/2.image-variations/unit",{"title":86,"path":87,"stem":88,"children":89,"page":55},"Framework Guides","/docs/framework-guides","docs/3.framework-guides",[90,123],{"title":91,"icon":55,"defaultOpen":55,"path":92,"stem":93,"children":94,"page":55},"Laravel","/docs/framework-guides/laravel","docs/3.framework-guides/1.laravel",[95,99,103,107,111,115,119],{"title":96,"path":97,"stem":98},"Automations","/docs/framework-guides/laravel/automations","docs/3.framework-guides/1.laravel/1.automations",{"title":100,"path":101,"stem":102},"Task Scheduler","/docs/framework-guides/laravel/task-scheduler","docs/3.framework-guides/1.laravel/2.task-scheduler",{"title":104,"path":105,"stem":106},"Queue","/docs/framework-guides/laravel/queue","docs/3.framework-guides/1.laravel/3.queue",{"title":108,"path":109,"stem":110},"Horizon","/docs/framework-guides/laravel/horizon","docs/3.framework-guides/1.laravel/4.horizon",{"title":112,"path":113,"stem":114},"Reverb","/docs/framework-guides/laravel/reverb","docs/3.framework-guides/1.laravel/4.reverb",{"title":116,"path":117,"stem":118},"Nightwatch","/docs/framework-guides/laravel/nightwatch","docs/3.framework-guides/1.laravel/5.nightwatch",{"title":120,"path":121,"stem":122},"Octane","/docs/framework-guides/laravel/octane","docs/3.framework-guides/1.laravel/octane",{"title":124,"icon":55,"defaultOpen":55,"path":125,"stem":126,"children":127,"page":55},"WordPress","/docs/framework-guides/wordpress","docs/3.framework-guides/2.wordpress",[128],{"title":129,"path":130,"stem":131},"Using Docker with WordPress","/docs/framework-guides/wordpress/using-wordpress-with-docker","docs/3.framework-guides/2.wordpress/4.using-wordpress-with-docker",{"title":133,"path":134,"stem":135,"children":136,"page":55},"Deployment And Production","/docs/deployment-and-production","docs/4.deployment-and-production",[137,141,145,149],{"title":138,"path":139,"stem":140},"Development to Production","/docs/deployment-and-production/development-to-production","docs/4.deployment-and-production/2.development-to-production",{"title":142,"path":143,"stem":144},"Packaging Your App for Deployment","/docs/deployment-and-production/packaging-your-app-for-deployment","docs/4.deployment-and-production/3.packaging-your-app-for-deployment",{"title":146,"path":147,"stem":148},"Configuring SSL","/docs/deployment-and-production/configuring-ssl","docs/4.deployment-and-production/4.configuring-ssl",{"title":150,"path":151,"stem":152},"Choosing a Host","/docs/deployment-and-production/choosing-a-host","docs/4.deployment-and-production/5.choosing-a-host",{"title":154,"icon":55,"defaultOpen":55,"path":155,"stem":156,"children":157,"page":55},"Advanced Guides","/docs/guide","docs/5.guide",[158,162,166,170,174,178,182],{"title":159,"path":160,"stem":161},"Migrating from official PHP images","/docs/guide/migrating-from-official-php-images","docs/5.guide/1.migrating-from-official-php-images",{"title":163,"path":164,"stem":165},"Using Healthchecks With Laravel","/docs/guide/using-healthchecks-with-laravel","docs/5.guide/2.using-healthchecks-with-laravel",{"title":167,"path":168,"stem":169},"Using S6 Overlay","/docs/guide/using-s6-overlay","docs/5.guide/2.using-s6-overlay",{"title":171,"path":172,"stem":173},"Understanding File Permissions","/docs/guide/understanding-file-permissions","docs/5.guide/3.understanding-file-permissions",{"title":175,"path":176,"stem":177},"Configuring Trusted Proxies","/docs/guide/configuring-trusted-proxies","docs/5.guide/4.configuring-trusted-proxies",{"title":179,"path":180,"stem":181},"Major version migrations","/docs/guide/major-version-migrations","docs/5.guide/5.major-version-migrations",{"title":183,"path":184,"stem":185},"Production performance tuning","/docs/guide/production-performance-tuning","docs/5.guide/6.production-performance-tuning",{"title":187,"icon":55,"defaultOpen":55,"path":188,"stem":189,"children":190,"page":55},"Customization","/docs/customizing-the-image","docs/6.customizing-the-image",[191,195,199],{"title":192,"path":193,"stem":194},"Changing php.ini settings","/docs/customizing-the-image/changing-common-php-settings","docs/6.customizing-the-image/1.changing-common-php-settings",{"title":196,"path":197,"stem":198},"Installing PHP extensions","/docs/customizing-the-image/installing-additional-php-extensions","docs/6.customizing-the-image/2.installing-additional-php-extensions",{"title":200,"path":201,"stem":202},"Adding Start Up Scripts","/docs/customizing-the-image/adding-your-own-start-up-scripts","docs/6.customizing-the-image/3.adding-your-own-start-up-scripts",{"title":204,"path":205,"stem":206,"children":207,"page":55},"Troubleshooting","/docs/troubleshooting","docs/7.troubleshooting",[208,212],{"title":209,"path":210,"stem":211},"Common Issues","/docs/troubleshooting/common-issues","docs/7.troubleshooting/1.common-issues",{"title":213,"path":214,"stem":215},"Getting Help","/docs/troubleshooting/getting-help","docs/7.troubleshooting/2.getting-help",{"title":217,"path":218,"stem":219,"children":220,"page":55},"Reference","/docs/reference","docs/8.reference",[221,225],{"title":222,"path":223,"stem":224},"Environment Variable Specification","/docs/reference/environment-variable-specification","docs/8.reference/1.environment-variable-specification",{"title":226,"path":227,"stem":228},"Command Reference","/docs/reference/command-reference","docs/8.reference/2.command-reference",{"id":230,"title":179,"body":231,"description":1994,"extension":1995,"links":1996,"meta":1997,"navigation":1662,"path":180,"redirect":1996,"seo":2000,"stem":181,"__hash__":2001},"docs/docs/5.guide/5.major-version-migrations.md",{"type":232,"value":233,"toc":1973},"minimark",[234,250,255,258,317,328,353,357,364,371,417,422,442,446,454,465,468,479,505,512,516,532,536,551,650,654,688,693,697,701,727,731,750,754,761,765,768,871,875,925,929,932,936,939,965,968,972,977,1031,1036,1084,1087,1091,1098,1115,1171,1223,1230,1234,1237,1317,1321,1326,1330,1333,1340,1350,1355,1362,1390,1394,1409,1415,1426,1437,1448,1451,1461,1467,1471,1474,1478,1529,1533,1536,1540,1545,1548,1572,1575,1609,1613,1634,1637,1928,1932,1957,1961,1969],[235,236,237],"lead-p",{},[238,239,240,241,245,246,249],"p",{},"When we ship a new major version of ",[242,243,244],"code",{},"serversideup/php",", we collect the breaking changes, new features, and migration checklists in this guide. Use it whenever you're crossing a major version boundary — for example, V3 → V4 or V2 → V3. For day-to-day patches and security updates, see the ",[247,248,40],"a",{"href":41}," instead.",[251,252,254],"h2",{"id":253},"dropped-php-versions","Dropped PHP versions",[238,256,257],{},"We stop building a PHP version once there is no longer a base image we can produce a patched build from. The tags stay pullable, but they freeze at their last successful build and receive no further security updates.",[259,260,261,277],"table",{},[262,263,264],"thead",{},[265,266,267,271,274],"tr",{},[268,269,270],"th",{},"Version",[268,272,273],{},"Last built",[268,275,276],{},"Why",[278,279,280,296,307],"tbody",{},[265,281,282,286,289],{},[283,284,285],"td",{},"PHP 8.1",[283,287,288],{},"2025-12-16",[283,290,291,292,295],{},"Reached end of security support and upstream removed the ",[242,293,294],{},"8.1"," branch.",[265,297,298,301,304],{},[283,299,300],{},"PHP 8.0",[283,302,303],{},"2026-09-03",[283,305,306],{},"Only ever shipped on Debian Bullseye and Alpine 3.16, both now EOL. Upstream stopped building it in November 2023.",[265,308,309,312,314],{},[283,310,311],{},"PHP 7.4",[283,313,303],{},[283,315,316],{},"Same bases as 8.0. Upstream stopped building it in November 2022.",[238,318,319,320,323,324,327],{},"Debian Bullseye and Alpine 3.16 were dropped at the same time. Debian 11 reached end of LTS on 2026-08-31, and its final ",[242,321,322],{},"bullseye-security"," release file expired on 2026-09-07, so ",[242,325,326],{},"apt-get update"," no longer succeeds inside a build.",[238,329,330,331,334,335,334,338,341,342,345,346,352],{},"If you are on one of these, move to PHP 8.2 or newer on ",[242,332,333],{},"bookworm",", ",[242,336,337],{},"trixie",[242,339,340],{},"alpine3.23",", or ",[242,343,344],{},"alpine3.24",". See ",[247,347,351],{"href":348,"rel":349},"https://github.com/serversideup/docker-php/blob/main/SECURITY.md#eol-versions-and-the-legacy-modernization-path",[350],"nofollow","EOL versions and the legacy-modernization path",".",[251,354,356],{"id":355},"version-4-version-5-migration","Version 4 → Version 5 Migration",[238,358,359,360,363],{},"Version 5 is about OPcache. Setting ",[242,361,362],{},"PHP_OPCACHE_ENABLE=1"," now gives you tuned defaults instead of PHP's stock values. There is one breaking change, and it only affects you if you run with OPcache enabled while your code is mounted as a volume.",[238,365,366,367,352],{},"If you want to stay on Version 4 while you review the changes, pin your image tag to the last v4 release. Version-pinned tags are never rebuilt, so you will not receive security updates until you move to v5. See ",[247,368,370],{"href":369},"/docs/getting-started/upgrade-guide#how-our-releases-work","how our releases work",[372,373,380],"pre",{"className":374,"code":375,"filename":376,"highlights":377,"language":379,"meta":10,"style":10},"language-yml shiki shiki-themes github-dark","services:\n  php:\n    image: serversideup/php:8.5-fpm-nginx-v4.5.1\n","compose.yml",[378],3,"yml",[242,381,382,395,403],{"__ignoreMap":10},[383,384,387,391],"span",{"class":385,"line":386},"line",1,[383,388,390],{"class":389},"s4JwU","services",[383,392,394],{"class":393},"s95oV",":\n",[383,396,398,401],{"class":385,"line":397},2,[383,399,400],{"class":389},"  php",[383,402,394],{"class":393},[383,404,407,410,413],{"class":405,"line":378},[385,406],"highlight",[383,408,409],{"class":389},"    image",[383,411,412],{"class":393},": ",[383,414,416],{"class":415},"sU2Wk","serversideup/php:8.5-fpm-nginx-v4.5.1\n",[418,419,421],"h3",{"id":420},"why-we-changed-opcache","Why we changed OPcache",[238,423,424,425,431,432,437,438],{},"Most people start with these images in development, so OPcache stays off by default to keep your edits showing up instantly. But when you flip it on for production, the settings behind it should be the ones you would have picked yourself after reading the docs. They were not. Version 4 checked every cached file for changes every two seconds, shipped PHP's stock memory sizes, and documented an environment variable that did nothing. Version 5 fixes all of that with the values from ",[247,426,430],{"href":427,"rel":428,"target":429},"https://symfony.com/doc/current/performance.html#configure-opcache-for-maximum-performance",[350],"_blank","Symfony's performance guide",", which says \"The default OPcache configuration is not suited for Symfony applications.\" ",[247,433,436],{"href":434,"rel":435,"target":429},"https://frankenphp.dev/docs/performance/",[350],"FrankenPHP's performance guide"," points to the same page \"even if you don't use Symfony.\" ",[247,439,441],{"href":440},"/docs/guide/production-performance-tuning#php-opcache","Read the production performance tuning guide →",[418,443,445],{"id":444},"breaking-changes-in-version-5","Breaking changes in Version 5",[447,448,449],"caution",{},[238,450,451,452,352],{},"The following change alters behavior for existing configurations that set ",[242,453,362],{},[455,456,458,461,462],"h4",{"id":457},"php_opcache_validate_timestamps-now-defaults-to-0",[242,459,460],{},"PHP_OPCACHE_VALIDATE_TIMESTAMPS"," now defaults to ",[242,463,464],{},"0",[238,466,467],{},"With OPcache enabled, PHP files are now cached until the container restarts. PHP no longer checks the filesystem for changes on every request. This is the correct setting for code that is built into the image, which is how we recommend deploying.",[238,469,470,471,473,474,478],{},"You are affected if you set ",[242,472,362],{}," ",[475,476,477],"strong",{},"and"," any of these apply:",[480,481,482,486,498],"ul",{},[483,484,485],"li",{},"Your code is mounted as a volume and you edit it in place",[483,487,488,489,493,494,497],{},"You follow the ",[247,490,492],{"href":491},"/docs/framework-guides/wordpress/using-wordpress-with-docker#volume-based-approach-traditional","volume-based WordPress approach"," and update with ",[242,495,496],{},"git pull",", WP-CLI, or SFTP",[483,499,500,501,504],{},"You run commands like ",[242,502,503],{},"docker exec php artisan optimize"," against a live container and expect the web workers to pick up the new files",[238,506,507,508,511],{},"The fix is one of two things: restart the container after code changes (recommended), or set ",[242,509,510],{},"PHP_OPCACHE_VALIDATE_TIMESTAMPS=1"," to restore the Version 4 behavior.",[418,513,515],{"id":514},"fixes","Fixes",[480,517,518],{},[483,519,520,523,524,527,528,531],{},[242,521,522],{},"PHP_OPCACHE_FORCE_RESTART_TIMEOUT"," existed in Version 4 but never reached ",[242,525,526],{},"php.ini",". It now works. The default of ",[242,529,530],{},"180"," matches PHP's own default, so nothing changes unless you had set it to something else.",[418,533,535],{"id":534},"changed-defaults","Changed defaults",[238,537,538,539,541,542,545,546,352],{},"The OPcache values apply only when ",[242,540,362],{},", and the memory is only used as files are cached. ",[242,543,544],{},"PHP_REALPATH_CACHE_TTL"," is not an OPcache setting and applies whether OPcache is on or off. It comes from the same ",[247,547,550],{"href":548,"rel":549,"target":429},"https://symfony.com/doc/current/performance.html#configure-the-php-realpath-cache",[350],"Symfony recommendation",[259,552,553,566],{},[262,554,555],{},[265,556,557,560,563],{},[268,558,559],{},"Variable",[268,561,562],{},"Version 4",[268,564,565],{},"Version 5",[278,567,568,583,600,617,634],{},[265,569,570,574,579],{},[283,571,572],{},[242,573,460],{},[283,575,576],{},[242,577,578],{},"1",[283,580,581],{},[242,582,464],{},[265,584,585,590,595],{},[283,586,587],{},[242,588,589],{},"PHP_OPCACHE_MEMORY_CONSUMPTION",[283,591,592],{},[242,593,594],{},"128",[283,596,597],{},[242,598,599],{},"256",[265,601,602,607,612],{},[283,603,604],{},[242,605,606],{},"PHP_OPCACHE_INTERNED_STRINGS_BUFFER",[283,608,609],{},[242,610,611],{},"8",[283,613,614],{},[242,615,616],{},"32",[265,618,619,624,629],{},[283,620,621],{},[242,622,623],{},"PHP_OPCACHE_MAX_ACCELERATED_FILES",[283,625,626],{},[242,627,628],{},"10000",[283,630,631],{},[242,632,633],{},"32531",[265,635,636,640,645],{},[283,637,638],{},[242,639,544],{},[283,641,642],{},[242,643,644],{},"120",[283,646,647],{},[242,648,649],{},"600",[418,651,653],{"id":652},"new-variables","New variables",[480,655,656,671,682],{},[483,657,658,661,662,664,665,667,668,670],{},[242,659,660],{},"PHP_OPCACHE_ENABLE_CLI"," - Whether CLI commands use OPcache when ",[242,663,362],{},". Defaults to ",[242,666,578],{},", which is what Version 4 did. Set it to ",[242,669,464],{}," to keep OPcache on for the web server only.",[483,672,673,676,677,352],{},[242,674,675],{},"PHP_OPCACHE_PRELOAD"," - Path to a preload script. Symfony generates one for you and ",[247,678,681],{"href":679,"rel":680,"target":429},"https://symfony.com/doc/current/performance.html#use-the-opcache-class-preloading",[350],"recommends it",[483,683,684,687],{},[242,685,686],{},"PHP_OPCACHE_PRELOAD_USER"," - The user to preload as when the container runs as root.",[238,689,690],{},[247,691,692],{"href":223},"See the full list of environment variables →",[418,694,696],{"id":695},"v5-migration-checklist","V5 Migration Checklist",[455,698,700],{"id":699},"docker-compose","Docker Compose",[480,702,703,706,714,720],{},[483,704,705],{},"Update the image tag",[483,707,708,709,711,712],{},"If your code is mounted as a volume with ",[242,710,362],{},", either turn OPcache off for that environment or add ",[242,713,510],{},[483,715,716,717,719],{},"If you deploy WordPress on a volume, add ",[242,718,510],{}," or restart the container after updates made outside the WordPress admin",[483,721,722,723,726],{},"Replace any ",[242,724,725],{},"docker exec ... artisan optimize"," style deployment steps with a container restart",[455,728,730],{"id":729},"dockerfile","Dockerfile",[480,732,733,736],{},[483,734,735],{},"Nothing is required",[483,737,738,739,741,742,745,746,749],{},"If you add ",[242,740,675],{},", prefer setting it on the running service rather than as an ",[242,743,744],{},"ENV"," in the Dockerfile, so build steps like ",[242,747,748],{},"RUN composer install"," do not depend on the preload script",[251,751,753],{"id":752},"version-3-version-4-migration","Version 3 → Version 4 Migration",[238,755,756,757,760],{},"Version 3 to Version 4 is a much easier migration compared to previous versions. There are ",[475,758,759],{},"no breaking changes",", so you can simply update your image tag to the latest version and take advantage of the new features.",[418,762,764],{"id":763},"new-features-in-version-4","New Features in Version 4",[238,766,767],{},"This release focused on expanding image variations, improving Laravel automations, and enhancing the developer experience. Here are the key features:",[480,769,770,776,782,802,810,824,844,858],{},[483,771,772,775],{},[475,773,774],{},"FrankenPHP variation"," - A new production-ready FrankenPHP variation with intelligent defaults, flexible environment configuration, native health checks, and support for Debian and Alpine operating systems.",[483,777,778,781],{},[475,779,780],{},"Revamped documentation site"," - Completely rewritten documentation with improved navigation, better examples, and a modern user experience.",[483,783,784,787,788,791,792,334,795,798,799,352],{},[475,785,786],{},"Enhanced Laravel automations"," - Refactored to use ",[242,789,790],{},"php artisan optimize"," by default (following Laravel best practices), with support for migration modes (",[242,793,794],{},"fresh",[242,796,797],{},"refresh","), database connection selection, seeding options, and easier debugging with ",[242,800,801],{},"AUTORUN_DEBUG",[483,803,804,807,808],{},[475,805,806],{},"Expanded environment variables"," - 25+ new environment variables for fine-tuning PHP, NGINX, Apache, and FrankenPHP configurations. ",[247,809,692],{"href":223},[483,811,812,815,816,819,820,823],{},[475,813,814],{},"Improved health checks"," - Better container startup detection using ",[242,817,818],{},"start-period"," and ",[242,821,822],{},"start-interval"," for more accurate health readings.",[483,825,826,829,830,833,834,334,837,341,840,843],{},[475,827,828],{},"IPv6 support for NGINX"," - Control IP listening protocols with ",[242,831,832],{},"NGINX_LISTEN_IP_PROTOCOL"," (supports ",[242,835,836],{},"ipv4",[242,838,839],{},"ipv6",[242,841,842],{},"all",").",[483,845,846,849,850,853,854,857],{},[475,847,848],{},"Enhanced file permissions script"," - ",[242,851,852],{},"docker-php-serversideup-set-file-permissions"," now includes automated service detection and support for multiple directories with the ",[242,855,856],{},"--dir"," flag.",[483,859,860,863,864,819,867,870],{},[475,861,862],{},"Quieter logs"," - Health check requests no longer appear in access logs for ",[242,865,866],{},"fpm-nginx",[242,868,869],{},"fpm-apache"," variations.",[418,872,874],{"id":873},"quality-of-life-improvements","Quality of Life Improvements",[480,876,877,887,901,907],{},[483,878,879,882,883,886],{},[475,880,881],{},"Startup scripts"," - Improved handling of ",[242,884,885],{},"entrypoint.d"," scripts with better error handling and a redesigned container startup info display.",[483,888,889,892,893,896,897,819,899,870],{},[475,890,891],{},"FPM process control"," - Default changed to ",[242,894,895],{},"ondemand"," for even lower resource usage in ",[242,898,866],{},[242,900,869],{},[483,902,903,906],{},[475,904,905],{},"Better Apache logs"," - Access logs now include \"Referer\" and \"User Agent\" for better debugging.",[483,908,909,912,913,916,917,920,921,924],{},[475,910,911],{},"NGINX improvements"," - Added ",[242,914,915],{},"absolute_redirect off;"," for better proxy compatibility, fixed ",[242,918,919],{},"svgz"," handling with Symfony's asset mapper, and allowed ",[242,922,923],{},"robots.txt"," to be dynamically generated by PHP.",[418,926,928],{"id":927},"v4-migration-checklist","V4 Migration Checklist",[238,930,931],{},"Since there are no breaking changes, the migration is straightforward:",[455,933,935],{"id":934},"update-your-images","Update Your Images",[238,937,938],{},"Simply update your image tags to the latest version. For example:",[372,940,942],{"className":374,"code":941,"filename":376,"language":379,"meta":10,"style":10},"services:\n  php:\n    image: serversideup/php:8.5-fpm-nginx\n",[242,943,944,950,956],{"__ignoreMap":10},[383,945,946,948],{"class":385,"line":386},[383,947,390],{"class":389},[383,949,394],{"class":393},[383,951,952,954],{"class":385,"line":397},[383,953,400],{"class":389},[383,955,394],{"class":393},[383,957,958,960,962],{"class":385,"line":378},[383,959,409],{"class":389},[383,961,412],{"class":393},[383,963,964],{"class":415},"serversideup/php:8.5-fpm-nginx\n",[238,966,967],{},"No other changes are required unless you want to take advantage of new features.",[455,969,971],{"id":970},"optional-leverage-new-features","Optional: Leverage New Features",[238,973,974],{},[475,975,976],{},"Consider enabling Laravel optimizations (if using Laravel):",[372,978,980],{"className":374,"code":979,"filename":376,"language":379,"meta":10,"style":10},"services:\n  php:\n    image: serversideup/php:8.5-fpm-nginx\n    environment:\n      AUTORUN_ENABLED: \"true\"\n      AUTORUN_LARAVEL_OPTIMIZE: \"true\"\n",[242,981,982,988,994,1002,1010,1021],{"__ignoreMap":10},[383,983,984,986],{"class":385,"line":386},[383,985,390],{"class":389},[383,987,394],{"class":393},[383,989,990,992],{"class":385,"line":397},[383,991,400],{"class":389},[383,993,394],{"class":393},[383,995,996,998,1000],{"class":385,"line":378},[383,997,409],{"class":389},[383,999,412],{"class":393},[383,1001,964],{"class":415},[383,1003,1005,1008],{"class":385,"line":1004},4,[383,1006,1007],{"class":389},"    environment",[383,1009,394],{"class":393},[383,1011,1013,1016,1018],{"class":385,"line":1012},5,[383,1014,1015],{"class":389},"      AUTORUN_ENABLED",[383,1017,412],{"class":393},[383,1019,1020],{"class":415},"\"true\"\n",[383,1022,1024,1027,1029],{"class":385,"line":1023},6,[383,1025,1026],{"class":389},"      AUTORUN_LARAVEL_OPTIMIZE",[383,1028,412],{"class":393},[383,1030,1020],{"class":415},[238,1032,1033],{},[475,1034,1035],{},"Try the new FrankenPHP variation:",[372,1037,1039],{"className":374,"code":1038,"filename":376,"language":379,"meta":10,"style":10},"services:\n  php:\n    image: serversideup/php:8.5-frankenphp\n    ports:\n      - 80:8080\n      - 443:8443\n",[242,1040,1041,1047,1053,1062,1069,1077],{"__ignoreMap":10},[383,1042,1043,1045],{"class":385,"line":386},[383,1044,390],{"class":389},[383,1046,394],{"class":393},[383,1048,1049,1051],{"class":385,"line":397},[383,1050,400],{"class":389},[383,1052,394],{"class":393},[383,1054,1055,1057,1059],{"class":385,"line":378},[383,1056,409],{"class":389},[383,1058,412],{"class":393},[383,1060,1061],{"class":415},"serversideup/php:8.5-frankenphp\n",[383,1063,1064,1067],{"class":385,"line":1004},[383,1065,1066],{"class":389},"    ports",[383,1068,394],{"class":393},[383,1070,1071,1074],{"class":385,"line":1012},[383,1072,1073],{"class":393},"      - ",[383,1075,1076],{"class":415},"80:8080\n",[383,1078,1079,1081],{"class":385,"line":1023},[383,1080,1073],{"class":393},[383,1082,1083],{"class":415},"443:8443\n",[238,1085,1086],{},"That's it! Version 4 is designed to be a smooth, non-breaking upgrade that gives you more flexibility and features when you need them.",[251,1088,1090],{"id":1089},"version-2-version-3-migration","Version 2 → Version 3 Migration",[238,1092,1093,1094,1097],{},"If you're an existing user of our v2 images, be sure that your current configurations are NOT set to use the latest images. To do this, you can lock your images into the ",[242,1095,1096],{},"v2.2.1"," tag. This will ensure that you're not automatically upgraded to the v3 images.",[238,1099,1100,1101,1104,1105,1107,1108,1114],{},"For example, if you are using ",[242,1102,1103],{},"8.2-fpm-nginx",", you would change your ",[242,1106,376],{}," file to use the ",[247,1109,1112],{"href":1110,"rel":1111,"target":429},"https://hub.docker.com/r/serversideup/php/tags?page=1&name=2.2.1",[350],[242,1113,1096],{}," tag:",[372,1116,1119],{"className":374,"code":1117,"filename":376,"highlights":1118,"language":379,"meta":10,"style":10},"services:\n  php:\n    image: serversideup/php:8.2-fpm-nginx\n    ports:\n      - 80:80\n    volumes:\n      - .:/var/www/html\n",[378],[242,1120,1121,1127,1133,1143,1149,1156,1163],{"__ignoreMap":10},[383,1122,1123,1125],{"class":385,"line":386},[383,1124,390],{"class":389},[383,1126,394],{"class":393},[383,1128,1129,1131],{"class":385,"line":397},[383,1130,400],{"class":389},[383,1132,394],{"class":393},[383,1134,1136,1138,1140],{"class":1135,"line":378},[385,406],[383,1137,409],{"class":389},[383,1139,412],{"class":393},[383,1141,1142],{"class":415},"serversideup/php:8.2-fpm-nginx\n",[383,1144,1145,1147],{"class":385,"line":1004},[383,1146,1066],{"class":389},[383,1148,394],{"class":393},[383,1150,1151,1153],{"class":385,"line":1012},[383,1152,1073],{"class":393},[383,1154,1155],{"class":415},"80:80\n",[383,1157,1158,1161],{"class":385,"line":1023},[383,1159,1160],{"class":389},"    volumes",[383,1162,394],{"class":393},[383,1164,1166,1168],{"class":385,"line":1165},7,[383,1167,1073],{"class":393},[383,1169,1170],{"class":415},".:/var/www/html\n",[372,1172,1175],{"className":374,"code":1173,"filename":376,"highlights":1174,"language":379,"meta":10,"style":10},"services:\n  php:\n    image: serversideup/php:8.2-fpm-nginx-v2.2.1\n    ports:\n      - 80:80\n    volumes:\n      - .:/var/www/html\n",[378],[242,1176,1177,1183,1189,1199,1205,1211,1217],{"__ignoreMap":10},[383,1178,1179,1181],{"class":385,"line":386},[383,1180,390],{"class":389},[383,1182,394],{"class":393},[383,1184,1185,1187],{"class":385,"line":397},[383,1186,400],{"class":389},[383,1188,394],{"class":393},[383,1190,1192,1194,1196],{"class":1191,"line":378},[385,406],[383,1193,409],{"class":389},[383,1195,412],{"class":393},[383,1197,1198],{"class":415},"serversideup/php:8.2-fpm-nginx-v2.2.1\n",[383,1200,1201,1203],{"class":385,"line":1004},[383,1202,1066],{"class":389},[383,1204,394],{"class":393},[383,1206,1207,1209],{"class":385,"line":1012},[383,1208,1073],{"class":393},[383,1210,1155],{"class":415},[383,1212,1213,1215],{"class":385,"line":1023},[383,1214,1160],{"class":389},[383,1216,394],{"class":393},[383,1218,1219,1221],{"class":385,"line":1165},[383,1220,1073],{"class":393},[383,1222,1170],{"class":415},[238,1224,1225,1226,1229],{},"All you need to do is add ",[242,1227,1228],{},"-v2.2.1"," to the end of the image tag. This will ensure that you're not automatically upgraded to the v3 images.",[418,1231,1233],{"id":1232},"new-features-in-version-3","New Features in Version 3",[238,1235,1236],{},"We've been busy overhauling our PHP Docker Images to make them more production-ready and easier to use. Here are some of the new features we've added:",[480,1238,1239,1245,1251,1257,1270,1280,1305,1311],{},[483,1240,1241,1244],{},[475,1242,1243],{},"Based on official PHP Images"," - We're now building an improved developer experience on top of the official PHP Docker images.",[483,1246,1247,1250],{},[475,1248,1249],{},"Unprivileged by default"," - We're now running our images as an unprivileged user by default. This is a huge step forward in security and compatibility.",[483,1252,1253,1256],{},[475,1254,1255],{},"PHP 8.4 support"," - We're now shipping the latest and greatest.",[483,1258,1259,1262,1263,1266,1267,352],{},[475,1260,1261],{},"Pin to the exact minor version"," - Pin your app to the exact minor version of PHP that you want to use. This means you can pin to ",[242,1264,1265],{},"8.2.12"," instead of ",[242,1268,1269],{},"8.2",[483,1271,1272,1275,1276,1279],{},[475,1273,1274],{},"Easier start up script customization"," - We now have a folder called ",[242,1277,1278],{},"/etc/entrypoint.d"," that allows you to easily customize your container with scripts. Just put them in numerical order and we'll execute any shell script you want. No S6 Overlay knowledge required.",[483,1281,1282,1285,1286,334,1289,334,1292,334,1295,334,1298,1301,1302],{},[475,1283,1284],{},"Expanded Laravel Automations"," - We added automations to run ",[242,1287,1288],{},"config:cache",[242,1290,1291],{},"route:cache",[242,1293,1294],{},"view:cache",[242,1296,1297],{},"event:cache",[242,1299,1300],{},"migrate --force --isolated",", and ",[242,1303,1304],{},"storage:link",[483,1306,1307,1310],{},[475,1308,1309],{},"NGINX Unit Support"," - We're offering NGINX Unit as a variation as an alternative to PHP-FPM. This allows you to run PHP applications without the need for a webserver like NGINX or Apache to run with PHP-FPM.",[483,1312,1313,1316],{},[475,1314,1315],{},"Available on GitHub Packages"," - We're now publishing our images to GitHub Packages. This means you can use our images without needing to authenticate with Docker Hub.",[418,1318,1320],{"id":1319},"breaking-changes-in-version-3","Breaking changes in Version 3",[447,1322,1323],{},[238,1324,1325],{},"The following changes are considered to be \"breaking changes\" and will require you to make changes to your application.",[455,1327,1329],{"id":1328},"ubuntu-is-no-longer-used-as-a-base-image","Ubuntu is no longer used as a base image",[238,1331,1332],{},"We now use Debian or Alpine as our base OS (because we're using the official PHP images as a base). This is a huge change, but we're confident this will be the best direction moving forward.",[455,1334,1336,1339],{"id":1335},"ppaondrejphp-is-no-longer-used",[242,1337,1338],{},"ppa:ondrej/php"," is no longer used",[238,1341,1342,1343,1345,1346,1349],{},"Since we're using PHP.net as the \"official source of truth\" for getting our PHP versions, this means we're also dropping support for the ",[242,1344,1338],{}," repository. If you're using things like ",[242,1347,1348],{},"apt-get install php-redis"," you will need to change your method of installing PHP extensions.",[238,1351,1352],{},[247,1353,1354],{"href":197},"Learn how to install your own PHP extension →",[455,1356,1358,1361],{"id":1357},"webuser-is-no-longer-being-used",[242,1359,1360],{},"webuser"," is no longer being used",[238,1363,1364,1365,1367,1368,1371,1372,1375,1376,1379,1380,1382,1383,1386,1387,352],{},"We used to add a user called ",[242,1366,1360],{}," with the UID of ",[242,1369,1370],{},"9999"," with shell permissions. To increase security, we're now using the ",[242,1373,1374],{},"www-data"," user and group that is built into the official PHP images. If you have mounted volumes, you will need to ",[242,1377,1378],{},"chown"," the files to match the ID of the ",[242,1381,1374],{}," user and groups. For Debian, this is ",[242,1384,1385],{},"33:33"," and for Alpine, this is ",[242,1388,1389],{},"82:82",[455,1391,1393],{"id":1392},"nginx-and-apache-listen-on-8080-http-and-8443-https-by-default","NGINX and Apache listen on 8080 (HTTP) and 8443 (HTTPS) by default",[238,1395,1396,1397,819,1400,1266,1403,819,1406,352],{},"Our images are now unprivileged by default. This is a major step forward in security and compatibility. Since we are unprivileged by default, we lose the ability to mount on ports less than 1024. If you're using NGINX or Apache, you will need to update your port mappings to use ",[242,1398,1399],{},"8080",[242,1401,1402],{},"8443",[242,1404,1405],{},"80",[242,1407,1408],{},"443",[238,1410,1411],{},[247,1412,1414],{"href":1413},"/docs/getting-started/default-configurations#unprivileged-by-default","Learn more about this change →",[455,1416,1418,1419,819,1422,1425],{"id":1417},"s6-overlay-is-only-used-in-fpm-apache-and-fpm-nginx-images","S6 Overlay is only used in ",[242,1420,1421],{},"*-fpm-apache",[242,1423,1424],{},"*-fpm-nginx"," images",[238,1427,1428,1429,819,1431,1433,1434,1436],{},"Due to compatibility issues, we only use S6 Overlay in our ",[242,1430,1421],{},[242,1432,1424],{}," images. If you were using S6 Overlay for our other variations (cli, fpm, etc), you will need to migrate your scripts to use the new ",[242,1435,1278],{}," folder.",[455,1438,1440,1443,1444,1447],{"id":1439},"ssl_mode-is-now-set-to-off-by-default-http-only",[242,1441,1442],{},"SSL_MODE"," is now set to ",[242,1445,1446],{},"off"," by default (HTTP only)",[238,1449,1450],{},"Running end-to-end SSL by default created more problems than good. By default, we're now shipping HTTP-only by default with the option for people to turn this on.",[455,1452,1454,1443,1457,1460],{"id":1453},"autorun_enabled-is-now-set-to-false-by-default",[242,1455,1456],{},"AUTORUN_ENABLED",[242,1458,1459],{},"false"," by default.",[238,1462,1463,1464,352],{},"Having this set to \"true\" by default also created more problems than good. If you want to use any of the Laravel Automation Scripts, be sure to set this to ",[242,1465,1466],{},"true",[455,1468,1470],{"id":1469},"msmtp-is-no-longer-included-in-the-images","MSMTP is no longer included in the images",[238,1472,1473],{},"For security and image size reasons, we removed MSMTP from the images. If you need to send emails, use an external SMTP service like Postmark/Sendgrid/Mailgun. You can also extend the image yourself to include MSMTP specifically for your use case.",[455,1475,1477],{"id":1476},"variable-deprecations","Variable deprecations",[480,1479,1480,1489,1498,1511,1520],{},[483,1481,1482,1485,1486],{},[242,1483,1484],{},"WEB_APP_DIRECTORY"," has now been renamed to ",[242,1487,1488],{},"APP_BASE_DIR",[483,1490,1491,1494,1495],{},[242,1492,1493],{},"DEBUG_OUTPUT"," has been removed for in favor of ",[242,1496,1497],{},"LOG_OUTPUT_LEVEL=debug",[483,1499,1500,1503,1504,1507,1508],{},[242,1501,1502],{},"PUID"," & ",[242,1505,1506],{},"PGID"," are no longer used because it requires root privileges. See the ",[247,1509,1510],{"href":172},"new way to set the UID and GID →",[483,1512,1513,1503,1516,1519],{},[242,1514,1515],{},"MSMTP_RELAY_SERVER_HOSTNAME",[242,1517,1518],{},"MSMTP_RELAY_SERVER_PORT"," are no longer used because MSMTP is no longer included in the images.",[483,1521,1522,1525,1526],{},[242,1523,1524],{},"PHP_POOL_NAME"," has been renamed to ",[242,1527,1528],{},"PHP_FPM_POOL_NAME",[418,1530,1532],{"id":1531},"v3-migration-checklist","V3 Migration Checklist",[238,1534,1535],{},"Here is a good list to perform the V3 migration.",[455,1537,1539],{"id":1538},"repository","Repository",[480,1541,1542],{},[483,1543,1544],{},"Ensure you're committing to a test environment",[455,1546,700],{"id":1547},"docker-compose-1",[480,1549,1550,1553,1558,1566],{},[483,1551,1552],{},"Update the image name (if applicable)",[483,1554,1555,1556],{},"Check each environment variable exists and is set to a proper value ",[247,1557,692],{"href":223},[483,1559,1560,1561,819,1563,1565],{},"Ensure you updated the ports to ",[242,1562,1399],{},[242,1564,1402],{}," for NGINX, Apache, and Unit",[483,1567,1568,1569,1571],{},"Consider adding ",[242,1570,362],{}," to your production environment for increased performance",[455,1573,730],{"id":1574},"dockerfile-1",[480,1576,1577,1580,1586,1589,1598],{},[483,1578,1579],{},"Update the base image name (if applicable)",[483,1581,1582,1583,1585],{},"Remove any ",[242,1584,1338],{}," references",[483,1587,1588],{},"Remove any Ubuntu specific commands",[483,1590,1591,1592,1595,1596],{},"Ensure all extensions are installed with the ",[242,1593,1594],{},"install-php-extensions"," command ",[247,1597,1354],{"href":197},[483,1599,1600,1601,1604,1605,1608],{},"Ensure your ",[242,1602,1603],{},"COPY"," commands are copying with the correct permissions (i.e. ",[242,1606,1607],{},"--chown=www-data:www-data",")",[455,1610,1612],{"id":1611},"cicd","CI/CD",[238,1614,1615,1616,1618,1619,1622,1623,819,1626,1629,1630,1633],{},"If you're running ",[242,1617,866],{}," (or similar) on a runner that's running as your builds as ",[242,1620,1621],{},"root",", you may need to add ",[242,1624,1625],{},"user = www-data",[242,1627,1628],{},"group = www-data"," to your ",[242,1631,1632],{},"php-fpm.conf"," file so you can bring FPM up correctly.",[238,1635,1636],{},"If you have to run things as root in CI, you can do this with a multi stage build and set the targets:",[372,1638,1641],{"className":1639,"code":1640,"filename":730,"language":729,"meta":10,"style":10},"language-dockerfile shiki shiki-themes github-dark","############################################\n# Base Image\n############################################\n\n# Learn more about the Server Side Up PHP Docker Images at:\n# https://serversideup.net/open-source/docker-php/\nFROM serversideup/php:8.4-fpm-nginx AS base\n\n## Uncomment if you need to install additional PHP extensions\n# USER root\n# RUN install-php-extensions bcmath gd\n\n############################################\n# Development Image\n############################################\nFROM base AS development\n\n# We can pass USER_ID and GROUP_ID as build arguments\n# to ensure the www-data user has the same UID and GID\n# as the user running Docker.\nARG USER_ID\nARG GROUP_ID\n\n# Switch to root so we can set the user ID and group ID\nUSER root\nRUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID  && \\\n    docker-php-serversideup-set-file-permissions --owner $USER_ID:$GROUP_ID\nUSER www-data\n\n############################################\n# CI image\n############################################\nFROM base AS ci\n\n# Sometimes CI images need to run as root\nUSER root\n\n############################################\n# Production Image\n############################################\nFROM base AS deploy\nCOPY --chown=www-data:www-data . /var/www/html\nUSER www-data\n",[242,1642,1643,1649,1654,1658,1664,1669,1674,1689,1694,1700,1706,1712,1717,1722,1728,1733,1746,1751,1757,1763,1769,1778,1786,1791,1797,1806,1815,1821,1829,1834,1839,1845,1850,1862,1867,1873,1880,1885,1890,1896,1901,1913,1921],{"__ignoreMap":10},[383,1644,1645],{"class":385,"line":386},[383,1646,1648],{"class":1647},"sAwPA","############################################\n",[383,1650,1651],{"class":385,"line":397},[383,1652,1653],{"class":1647},"# Base Image\n",[383,1655,1656],{"class":385,"line":378},[383,1657,1648],{"class":1647},[383,1659,1660],{"class":385,"line":1004},[383,1661,1663],{"emptyLinePlaceholder":1662},true,"\n",[383,1665,1666],{"class":385,"line":1012},[383,1667,1668],{"class":1647},"# Learn more about the Server Side Up PHP Docker Images at:\n",[383,1670,1671],{"class":385,"line":1023},[383,1672,1673],{"class":1647},"# https://serversideup.net/open-source/docker-php/\n",[383,1675,1676,1680,1683,1686],{"class":385,"line":1165},[383,1677,1679],{"class":1678},"snl16","FROM",[383,1681,1682],{"class":393}," serversideup/php:8.4-fpm-nginx ",[383,1684,1685],{"class":1678},"AS",[383,1687,1688],{"class":393}," base\n",[383,1690,1692],{"class":385,"line":1691},8,[383,1693,1663],{"emptyLinePlaceholder":1662},[383,1695,1697],{"class":385,"line":1696},9,[383,1698,1699],{"class":1647},"## Uncomment if you need to install additional PHP extensions\n",[383,1701,1703],{"class":385,"line":1702},10,[383,1704,1705],{"class":1647},"# USER root\n",[383,1707,1709],{"class":385,"line":1708},11,[383,1710,1711],{"class":1647},"# RUN install-php-extensions bcmath gd\n",[383,1713,1715],{"class":385,"line":1714},12,[383,1716,1663],{"emptyLinePlaceholder":1662},[383,1718,1720],{"class":385,"line":1719},13,[383,1721,1648],{"class":1647},[383,1723,1725],{"class":385,"line":1724},14,[383,1726,1727],{"class":1647},"# Development Image\n",[383,1729,1731],{"class":385,"line":1730},15,[383,1732,1648],{"class":1647},[383,1734,1736,1738,1741,1743],{"class":385,"line":1735},16,[383,1737,1679],{"class":1678},[383,1739,1740],{"class":393}," base ",[383,1742,1685],{"class":1678},[383,1744,1745],{"class":393}," development\n",[383,1747,1749],{"class":385,"line":1748},17,[383,1750,1663],{"emptyLinePlaceholder":1662},[383,1752,1754],{"class":385,"line":1753},18,[383,1755,1756],{"class":1647},"# We can pass USER_ID and GROUP_ID as build arguments\n",[383,1758,1760],{"class":385,"line":1759},19,[383,1761,1762],{"class":1647},"# to ensure the www-data user has the same UID and GID\n",[383,1764,1766],{"class":385,"line":1765},20,[383,1767,1768],{"class":1647},"# as the user running Docker.\n",[383,1770,1772,1775],{"class":385,"line":1771},21,[383,1773,1774],{"class":1678},"ARG",[383,1776,1777],{"class":393}," USER_ID\n",[383,1779,1781,1783],{"class":385,"line":1780},22,[383,1782,1774],{"class":1678},[383,1784,1785],{"class":393}," GROUP_ID\n",[383,1787,1789],{"class":385,"line":1788},23,[383,1790,1663],{"emptyLinePlaceholder":1662},[383,1792,1794],{"class":385,"line":1793},24,[383,1795,1796],{"class":1647},"# Switch to root so we can set the user ID and group ID\n",[383,1798,1800,1803],{"class":385,"line":1799},25,[383,1801,1802],{"class":1678},"USER",[383,1804,1805],{"class":393}," root\n",[383,1807,1809,1812],{"class":385,"line":1808},26,[383,1810,1811],{"class":1678},"RUN",[383,1813,1814],{"class":393}," docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID  && \\\n",[383,1816,1818],{"class":385,"line":1817},27,[383,1819,1820],{"class":393},"    docker-php-serversideup-set-file-permissions --owner $USER_ID:$GROUP_ID\n",[383,1822,1824,1826],{"class":385,"line":1823},28,[383,1825,1802],{"class":1678},[383,1827,1828],{"class":393}," www-data\n",[383,1830,1832],{"class":385,"line":1831},29,[383,1833,1663],{"emptyLinePlaceholder":1662},[383,1835,1837],{"class":385,"line":1836},30,[383,1838,1648],{"class":1647},[383,1840,1842],{"class":385,"line":1841},31,[383,1843,1844],{"class":1647},"# CI image\n",[383,1846,1848],{"class":385,"line":1847},32,[383,1849,1648],{"class":1647},[383,1851,1853,1855,1857,1859],{"class":385,"line":1852},33,[383,1854,1679],{"class":1678},[383,1856,1740],{"class":393},[383,1858,1685],{"class":1678},[383,1860,1861],{"class":393}," ci\n",[383,1863,1865],{"class":385,"line":1864},34,[383,1866,1663],{"emptyLinePlaceholder":1662},[383,1868,1870],{"class":385,"line":1869},35,[383,1871,1872],{"class":1647},"# Sometimes CI images need to run as root\n",[383,1874,1876,1878],{"class":385,"line":1875},36,[383,1877,1802],{"class":1678},[383,1879,1805],{"class":393},[383,1881,1883],{"class":385,"line":1882},37,[383,1884,1663],{"emptyLinePlaceholder":1662},[383,1886,1888],{"class":385,"line":1887},38,[383,1889,1648],{"class":1647},[383,1891,1893],{"class":385,"line":1892},39,[383,1894,1895],{"class":1647},"# Production Image\n",[383,1897,1899],{"class":385,"line":1898},40,[383,1900,1648],{"class":1647},[383,1902,1904,1906,1908,1910],{"class":385,"line":1903},41,[383,1905,1679],{"class":1678},[383,1907,1740],{"class":393},[383,1909,1685],{"class":1678},[383,1911,1912],{"class":393}," deploy\n",[383,1914,1916,1918],{"class":385,"line":1915},42,[383,1917,1603],{"class":1678},[383,1919,1920],{"class":393}," --chown=www-data:www-data . /var/www/html\n",[383,1922,1924,1926],{"class":385,"line":1923},43,[383,1925,1802],{"class":1678},[383,1927,1828],{"class":393},[455,1929,1931],{"id":1930},"productionstaging-servers","Production/Staging Servers",[480,1933,1934,1949],{},[483,1935,1936,1937,1939,1940,1942,1943,1945,1946],{},"Update all host volume file permissions to match the ",[242,1938,1374],{}," UID/GID (",[242,1941,1385],{}," for Debian, ",[242,1944,1389],{}," for Alpine) ",[247,1947,1948],{"href":172},"Learn how to manage file permissions",[483,1950,1951,1952,1608],{},"If you're running Docker Swarm with host volume mounts, we created a script that could potentially help (",[247,1953,1956],{"href":1954,"rel":1955},"https://github.com/serversideup/docker-volume-change-permission-script",[350],"change-volume-permissions.sh",[455,1958,1960],{"id":1959},"deployment","Deployment",[480,1962,1963,1966],{},[483,1964,1965],{},"CI/CD with valid tests is always encouraged",[483,1967,1968],{},"After completing all steps above, you're now ready to deploy the new images",[1970,1971,1972],"style",{},"html pre.shiki code .s4JwU, html code.shiki .s4JwU{--shiki-default:#85E89D}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}",{"title":10,"searchDepth":397,"depth":397,"links":1974},[1975,1976,1984,1989],{"id":253,"depth":397,"text":254},{"id":355,"depth":397,"text":356,"children":1977},[1978,1979,1980,1981,1982,1983],{"id":420,"depth":378,"text":421},{"id":444,"depth":378,"text":445},{"id":514,"depth":378,"text":515},{"id":534,"depth":378,"text":535},{"id":652,"depth":378,"text":653},{"id":695,"depth":378,"text":696},{"id":752,"depth":397,"text":753,"children":1985},[1986,1987,1988],{"id":763,"depth":378,"text":764},{"id":873,"depth":378,"text":874},{"id":927,"depth":378,"text":928},{"id":1089,"depth":397,"text":1090,"children":1990},[1991,1992,1993],{"id":1232,"depth":378,"text":1233},{"id":1319,"depth":378,"text":1320},{"id":1531,"depth":378,"text":1532},"Step-by-step guides for migrating between major versions of the serversideup/php Docker images.","md",null,{"head":1998,"layout":7},{"title":1999},"Major version migrations - Docker PHP - Server Side Up",{"title":179,"description":1994},"tbsuuwwMnoEPztHzqjIZ8Zewikcsxch0gNSpfHWVd-4",[2003,2005],{"title":175,"path":176,"stem":177,"description":2004,"children":-1},"Learn how to configure trusted proxies to get accurate client IP addresses when running behind load balancers, CDNs, or reverse proxies.",{"title":183,"path":184,"stem":185,"description":2006,"children":-1},"The settings that matter for PHP performance in production, where our defaults come from, and how to measure and tune them for your application.",1789148873205]