[{"data":1,"prerenderedAt":1520},["ShallowReactive",2],{"navigation":3,"/docs/guide/major-version-migrations":217,"/docs/guide/major-version-migrations-surround":1515},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","/docs","docs",[9,12,56,85,128,149,174,191,204],{"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,119],{"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],{"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},"Octane","/docs/framework-guides/laravel/octane","docs/3.framework-guides/1.laravel/octane",{"title":120,"icon":55,"defaultOpen":55,"path":121,"stem":122,"children":123,"page":55},"WordPress","/docs/framework-guides/wordpress","docs/3.framework-guides/2.wordpress",[124],{"title":125,"path":126,"stem":127},"Using Docker with WordPress","/docs/framework-guides/wordpress/using-wordpress-with-docker","docs/3.framework-guides/2.wordpress/4.using-wordpress-with-docker",{"title":129,"path":130,"stem":131,"children":132,"page":55},"Deployment And Production","/docs/deployment-and-production","docs/4.deployment-and-production",[133,137,141,145],{"title":134,"path":135,"stem":136},"Development to Production","/docs/deployment-and-production/development-to-production","docs/4.deployment-and-production/2.development-to-production",{"title":138,"path":139,"stem":140},"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":142,"path":143,"stem":144},"Configuring SSL","/docs/deployment-and-production/configuring-ssl","docs/4.deployment-and-production/4.configuring-ssl",{"title":146,"path":147,"stem":148},"Choosing a Host","/docs/deployment-and-production/choosing-a-host","docs/4.deployment-and-production/5.choosing-a-host",{"title":150,"icon":55,"defaultOpen":55,"path":151,"stem":152,"children":153,"page":55},"Advanced Guides","/docs/guide","docs/5.guide",[154,158,162,166,170],{"title":155,"path":156,"stem":157},"Migrating from official PHP images","/docs/guide/migrating-from-official-php-images","docs/5.guide/1.migrating-from-official-php-images",{"title":159,"path":160,"stem":161},"Using Healthchecks With Laravel","/docs/guide/using-healthchecks-with-laravel","docs/5.guide/2.using-healthchecks-with-laravel",{"title":163,"path":164,"stem":165},"Using S6 Overlay","/docs/guide/using-s6-overlay","docs/5.guide/2.using-s6-overlay",{"title":167,"path":168,"stem":169},"Understanding File Permissions","/docs/guide/understanding-file-permissions","docs/5.guide/3.understanding-file-permissions",{"title":171,"path":172,"stem":173},"Major version migrations","/docs/guide/major-version-migrations","docs/5.guide/5.major-version-migrations",{"title":175,"icon":55,"defaultOpen":55,"path":176,"stem":177,"children":178,"page":55},"Customization","/docs/customizing-the-image","docs/6.customizing-the-image",[179,183,187],{"title":180,"path":181,"stem":182},"Changing php.ini settings","/docs/customizing-the-image/changing-common-php-settings","docs/6.customizing-the-image/1.changing-common-php-settings",{"title":184,"path":185,"stem":186},"Installing PHP extensions","/docs/customizing-the-image/installing-additional-php-extensions","docs/6.customizing-the-image/2.installing-additional-php-extensions",{"title":188,"path":189,"stem":190},"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":192,"path":193,"stem":194,"children":195,"page":55},"Troubleshooting","/docs/troubleshooting","docs/7.troubleshooting",[196,200],{"title":197,"path":198,"stem":199},"Common Issues","/docs/troubleshooting/common-issues","docs/7.troubleshooting/1.common-issues",{"title":201,"path":202,"stem":203},"Getting Help","/docs/troubleshooting/getting-help","docs/7.troubleshooting/2.getting-help",{"title":205,"path":206,"stem":207,"children":208,"page":55},"Reference","/docs/reference","docs/8.reference",[209,213],{"title":210,"path":211,"stem":212},"Environment Variable Specification","/docs/reference/environment-variable-specification","docs/8.reference/1.environment-variable-specification",{"title":214,"path":215,"stem":216},"Command Reference","/docs/reference/command-reference","docs/8.reference/2.command-reference",{"id":218,"title":171,"body":219,"description":1507,"extension":1508,"links":1509,"meta":1510,"navigation":1184,"path":172,"redirect":1509,"seo":1513,"stem":173,"__hash__":1514},"docs/docs/5.guide/5.major-version-migrations.md",{"type":220,"value":221,"toc":1495},"minimark",[222,238,243,251,256,259,368,372,422,426,429,434,437,480,483,487,492,546,551,599,602,606,613,632,689,741,748,752,755,835,839,845,849,852,859,869,874,881,909,913,928,934,945,956,967,970,980,986,990,993,997,1048,1052,1055,1059,1064,1068,1093,1097,1131,1135,1156,1159,1450,1454,1479,1483,1491],[223,224,225],"lead-p",{},[226,227,228,229,233,234,237],"p",{},"When we ship a new major version of ",[230,231,232],"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 ",[235,236,40],"a",{"href":41}," instead.",[239,240,242],"h2",{"id":241},"version-3-version-4-migration","Version 3 → Version 4 Migration",[226,244,245,246,250],{},"Version 3 to Version 4 is a much easier migration compared to previous versions. There are ",[247,248,249],"strong",{},"no breaking changes",", so you can simply update your image tag to the latest version and take advantage of the new features.",[252,253,255],"h3",{"id":254},"new-features-in-version-4","New Features in Version 4",[226,257,258],{},"This release focused on expanding image variations, improving Laravel automations, and enhancing the developer experience. Here are the key features:",[260,261,262,269,275,297,306,320,341,355],"ul",{},[263,264,265,268],"li",{},[247,266,267],{},"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.",[263,270,271,274],{},[247,272,273],{},"Revamped documentation site"," - Completely rewritten documentation with improved navigation, better examples, and a modern user experience.",[263,276,277,280,281,284,285,288,289,292,293,296],{},[247,278,279],{},"Enhanced Laravel automations"," - Refactored to use ",[230,282,283],{},"php artisan optimize"," by default (following Laravel best practices), with support for migration modes (",[230,286,287],{},"fresh",", ",[230,290,291],{},"refresh","), database connection selection, seeding options, and easier debugging with ",[230,294,295],{},"AUTORUN_DEBUG",".",[263,298,299,302,303],{},[247,300,301],{},"Expanded environment variables"," - 25+ new environment variables for fine-tuning PHP, NGINX, Apache, and FrankenPHP configurations. ",[235,304,305],{"href":211},"See the full list of environment variables →",[263,307,308,311,312,315,316,319],{},[247,309,310],{},"Improved health checks"," - Better container startup detection using ",[230,313,314],{},"start-period"," and ",[230,317,318],{},"start-interval"," for more accurate health readings.",[263,321,322,325,326,329,330,288,333,336,337,340],{},[247,323,324],{},"IPv6 support for NGINX"," - Control IP listening protocols with ",[230,327,328],{},"NGINX_LISTEN_IP_PROTOCOL"," (supports ",[230,331,332],{},"ipv4",[230,334,335],{},"ipv6",", or ",[230,338,339],{},"all",").",[263,342,343,346,347,350,351,354],{},[247,344,345],{},"Enhanced file permissions script"," - ",[230,348,349],{},"docker-php-serversideup-set-file-permissions"," now includes automated service detection and support for multiple directories with the ",[230,352,353],{},"--dir"," flag.",[263,356,357,360,361,315,364,367],{},[247,358,359],{},"Quieter logs"," - Health check requests no longer appear in access logs for ",[230,362,363],{},"fpm-nginx",[230,365,366],{},"fpm-apache"," variations.",[252,369,371],{"id":370},"quality-of-life-improvements","Quality of Life Improvements",[260,373,374,384,398,404],{},[263,375,376,379,380,383],{},[247,377,378],{},"Startup scripts"," - Improved handling of ",[230,381,382],{},"entrypoint.d"," scripts with better error handling and a redesigned container startup info display.",[263,385,386,389,390,393,394,315,396,367],{},[247,387,388],{},"FPM process control"," - Default changed to ",[230,391,392],{},"ondemand"," for even lower resource usage in ",[230,395,363],{},[230,397,366],{},[263,399,400,403],{},[247,401,402],{},"Better Apache logs"," - Access logs now include \"Referer\" and \"User Agent\" for better debugging.",[263,405,406,409,410,413,414,417,418,421],{},[247,407,408],{},"NGINX improvements"," - Added ",[230,411,412],{},"absolute_redirect off;"," for better proxy compatibility, fixed ",[230,415,416],{},"svgz"," handling with Symfony's asset mapper, and allowed ",[230,419,420],{},"robots.txt"," to be dynamically generated by PHP.",[252,423,425],{"id":424},"v4-migration-checklist","V4 Migration Checklist",[226,427,428],{},"Since there are no breaking changes, the migration is straightforward:",[430,431,433],"h4",{"id":432},"update-your-images","Update Your Images",[226,435,436],{},"Simply update your image tags to the latest version. For example:",[438,439,444],"pre",{"className":440,"code":441,"filename":442,"language":443,"meta":10,"style":10},"language-yml shiki shiki-themes github-dark","services:\n  php:\n    image: serversideup/php:8.5-fpm-nginx\n","compose.yml","yml",[230,445,446,459,467],{"__ignoreMap":10},[447,448,451,455],"span",{"class":449,"line":450},"line",1,[447,452,454],{"class":453},"s4JwU","services",[447,456,458],{"class":457},"s95oV",":\n",[447,460,462,465],{"class":449,"line":461},2,[447,463,464],{"class":453},"  php",[447,466,458],{"class":457},[447,468,470,473,476],{"class":449,"line":469},3,[447,471,472],{"class":453},"    image",[447,474,475],{"class":457},": ",[447,477,479],{"class":478},"sU2Wk","serversideup/php:8.5-fpm-nginx\n",[226,481,482],{},"No other changes are required unless you want to take advantage of new features.",[430,484,486],{"id":485},"optional-leverage-new-features","Optional: Leverage New Features",[226,488,489],{},[247,490,491],{},"Consider enabling Laravel optimizations (if using Laravel):",[438,493,495],{"className":440,"code":494,"filename":442,"language":443,"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",[230,496,497,503,509,517,525,536],{"__ignoreMap":10},[447,498,499,501],{"class":449,"line":450},[447,500,454],{"class":453},[447,502,458],{"class":457},[447,504,505,507],{"class":449,"line":461},[447,506,464],{"class":453},[447,508,458],{"class":457},[447,510,511,513,515],{"class":449,"line":469},[447,512,472],{"class":453},[447,514,475],{"class":457},[447,516,479],{"class":478},[447,518,520,523],{"class":449,"line":519},4,[447,521,522],{"class":453},"    environment",[447,524,458],{"class":457},[447,526,528,531,533],{"class":449,"line":527},5,[447,529,530],{"class":453},"      AUTORUN_ENABLED",[447,532,475],{"class":457},[447,534,535],{"class":478},"\"true\"\n",[447,537,539,542,544],{"class":449,"line":538},6,[447,540,541],{"class":453},"      AUTORUN_LARAVEL_OPTIMIZE",[447,543,475],{"class":457},[447,545,535],{"class":478},[226,547,548],{},[247,549,550],{},"Try the new FrankenPHP variation:",[438,552,554],{"className":440,"code":553,"filename":442,"language":443,"meta":10,"style":10},"services:\n  php:\n    image: serversideup/php:8.5-frankenphp\n    ports:\n      - 80:8080\n      - 443:8443\n",[230,555,556,562,568,577,584,592],{"__ignoreMap":10},[447,557,558,560],{"class":449,"line":450},[447,559,454],{"class":453},[447,561,458],{"class":457},[447,563,564,566],{"class":449,"line":461},[447,565,464],{"class":453},[447,567,458],{"class":457},[447,569,570,572,574],{"class":449,"line":469},[447,571,472],{"class":453},[447,573,475],{"class":457},[447,575,576],{"class":478},"serversideup/php:8.5-frankenphp\n",[447,578,579,582],{"class":449,"line":519},[447,580,581],{"class":453},"    ports",[447,583,458],{"class":457},[447,585,586,589],{"class":449,"line":527},[447,587,588],{"class":457},"      - ",[447,590,591],{"class":478},"80:8080\n",[447,593,594,596],{"class":449,"line":538},[447,595,588],{"class":457},[447,597,598],{"class":478},"443:8443\n",[226,600,601],{},"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.",[239,603,605],{"id":604},"version-2-version-3-migration","Version 2 → Version 3 Migration",[226,607,608,609,612],{},"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 ",[230,610,611],{},"v2.2.1"," tag. This will ensure that you're not automatically upgraded to the v3 images.",[226,614,615,616,619,620,622,623,631],{},"For example, if you are using ",[230,617,618],{},"8.2-fpm-nginx",", you would change your ",[230,621,442],{}," file to use the ",[235,624,629],{"href":625,"rel":626,"target":628},"https://hub.docker.com/r/serversideup/php/tags?page=1&name=2.2.1",[627],"nofollow","_blank",[230,630,611],{}," tag:",[438,633,636],{"className":440,"code":634,"filename":442,"highlights":635,"language":443,"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",[469],[230,637,638,644,650,661,667,674,681],{"__ignoreMap":10},[447,639,640,642],{"class":449,"line":450},[447,641,454],{"class":453},[447,643,458],{"class":457},[447,645,646,648],{"class":449,"line":461},[447,647,464],{"class":453},[447,649,458],{"class":457},[447,651,654,656,658],{"class":652,"line":469},[449,653],"highlight",[447,655,472],{"class":453},[447,657,475],{"class":457},[447,659,660],{"class":478},"serversideup/php:8.2-fpm-nginx\n",[447,662,663,665],{"class":449,"line":519},[447,664,581],{"class":453},[447,666,458],{"class":457},[447,668,669,671],{"class":449,"line":527},[447,670,588],{"class":457},[447,672,673],{"class":478},"80:80\n",[447,675,676,679],{"class":449,"line":538},[447,677,678],{"class":453},"    volumes",[447,680,458],{"class":457},[447,682,684,686],{"class":449,"line":683},7,[447,685,588],{"class":457},[447,687,688],{"class":478},".:/var/www/html\n",[438,690,693],{"className":440,"code":691,"filename":442,"highlights":692,"language":443,"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",[469],[230,694,695,701,707,717,723,729,735],{"__ignoreMap":10},[447,696,697,699],{"class":449,"line":450},[447,698,454],{"class":453},[447,700,458],{"class":457},[447,702,703,705],{"class":449,"line":461},[447,704,464],{"class":453},[447,706,458],{"class":457},[447,708,710,712,714],{"class":709,"line":469},[449,653],[447,711,472],{"class":453},[447,713,475],{"class":457},[447,715,716],{"class":478},"serversideup/php:8.2-fpm-nginx-v2.2.1\n",[447,718,719,721],{"class":449,"line":519},[447,720,581],{"class":453},[447,722,458],{"class":457},[447,724,725,727],{"class":449,"line":527},[447,726,588],{"class":457},[447,728,673],{"class":478},[447,730,731,733],{"class":449,"line":538},[447,732,678],{"class":453},[447,734,458],{"class":457},[447,736,737,739],{"class":449,"line":683},[447,738,588],{"class":457},[447,740,688],{"class":478},[226,742,743,744,747],{},"All you need to do is add ",[230,745,746],{},"-v2.2.1"," to the end of the image tag. This will ensure that you're not automatically upgraded to the v3 images.",[252,749,751],{"id":750},"new-features-in-version-3","New Features in Version 3",[226,753,754],{},"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:",[260,756,757,763,769,775,788,798,823,829],{},[263,758,759,762],{},[247,760,761],{},"Based on official PHP Images"," - We're now building an improved developer experience on top of the official PHP Docker images.",[263,764,765,768],{},[247,766,767],{},"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.",[263,770,771,774],{},[247,772,773],{},"PHP 8.4 support"," - We're now shipping the latest and greatest.",[263,776,777,780,781,784,785,296],{},[247,778,779],{},"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 ",[230,782,783],{},"8.2.12"," instead of ",[230,786,787],{},"8.2",[263,789,790,793,794,797],{},[247,791,792],{},"Easier start up script customization"," - We now have a folder called ",[230,795,796],{},"/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.",[263,799,800,803,804,288,807,288,810,288,813,288,816,819,820],{},[247,801,802],{},"Expanded Laravel Automations"," - We added automations to run ",[230,805,806],{},"config:cache",[230,808,809],{},"route:cache",[230,811,812],{},"view:cache",[230,814,815],{},"event:cache",[230,817,818],{},"migrate --force --isolated",", and ",[230,821,822],{},"storage:link",[263,824,825,828],{},[247,826,827],{},"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.",[263,830,831,834],{},[247,832,833],{},"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.",[252,836,838],{"id":837},"breaking-changes-in-version-3","Breaking changes in Version 3",[840,841,842],"caution",{},[226,843,844],{},"The following changes are considered to be \"breaking changes\" and will require you to make changes to your application.",[430,846,848],{"id":847},"ubuntu-is-no-longer-used-as-a-base-image","Ubuntu is no longer used as a base image",[226,850,851],{},"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.",[430,853,855,858],{"id":854},"ppaondrejphp-is-no-longer-used",[230,856,857],{},"ppa:ondrej/php"," is no longer used",[226,860,861,862,864,865,868],{},"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 ",[230,863,857],{}," repository. If you're using things like ",[230,866,867],{},"apt-get install php-redis"," you will need to change your method of installing PHP extensions.",[226,870,871],{},[235,872,873],{"href":185},"Learn how to install your own PHP extension →",[430,875,877,880],{"id":876},"webuser-is-no-longer-being-used",[230,878,879],{},"webuser"," is no longer being used",[226,882,883,884,886,887,890,891,894,895,898,899,901,902,905,906,296],{},"We used to add a user called ",[230,885,879],{}," with the UID of ",[230,888,889],{},"9999"," with shell permissions. To increase security, we're now using the ",[230,892,893],{},"www-data"," user and group that is built into the official PHP images. If you have mounted volumes, you will need to ",[230,896,897],{},"chown"," the files to match the ID of the ",[230,900,893],{}," user and groups. For Debian, this is ",[230,903,904],{},"33:33"," and for Alpine, this is ",[230,907,908],{},"82:82",[430,910,912],{"id":911},"nginx-and-apache-listen-on-8080-http-and-8443-https-by-default","NGINX and Apache listen on 8080 (HTTP) and 8443 (HTTPS) by default",[226,914,915,916,315,919,784,922,315,925,296],{},"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 ",[230,917,918],{},"8080",[230,920,921],{},"8443",[230,923,924],{},"80",[230,926,927],{},"443",[226,929,930],{},[235,931,933],{"href":932},"/docs/getting-started/default-configurations#unprivileged-by-default","Learn more about this change →",[430,935,937,938,315,941,944],{"id":936},"s6-overlay-is-only-used-in-fpm-apache-and-fpm-nginx-images","S6 Overlay is only used in ",[230,939,940],{},"*-fpm-apache",[230,942,943],{},"*-fpm-nginx"," images",[226,946,947,948,315,950,952,953,955],{},"Due to compatibility issues, we only use S6 Overlay in our ",[230,949,940],{},[230,951,943],{}," 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 ",[230,954,796],{}," folder.",[430,957,959,962,963,966],{"id":958},"ssl_mode-is-now-set-to-off-by-default-http-only",[230,960,961],{},"SSL_MODE"," is now set to ",[230,964,965],{},"off"," by default (HTTP only)",[226,968,969],{},"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.",[430,971,973,962,976,979],{"id":972},"autorun_enabled-is-now-set-to-false-by-default",[230,974,975],{},"AUTORUN_ENABLED",[230,977,978],{},"false"," by default.",[226,981,982,983,296],{},"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 ",[230,984,985],{},"true",[430,987,989],{"id":988},"msmtp-is-no-longer-included-in-the-images","MSMTP is no longer included in the images",[226,991,992],{},"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.",[430,994,996],{"id":995},"variable-deprecations","Variable deprecations",[260,998,999,1008,1017,1030,1039],{},[263,1000,1001,1004,1005],{},[230,1002,1003],{},"WEB_APP_DIRECTORY"," has now been renamed to ",[230,1006,1007],{},"APP_BASE_DIR",[263,1009,1010,1013,1014],{},[230,1011,1012],{},"DEBUG_OUTPUT"," has been removed for in favor of ",[230,1015,1016],{},"LOG_OUTPUT_LEVEL=debug",[263,1018,1019,1022,1023,1026,1027],{},[230,1020,1021],{},"PUID"," & ",[230,1024,1025],{},"PGID"," are no longer used because it requires root privileges. See the ",[235,1028,1029],{"href":168},"new way to set the UID and GID →",[263,1031,1032,1022,1035,1038],{},[230,1033,1034],{},"MSMTP_RELAY_SERVER_HOSTNAME",[230,1036,1037],{},"MSMTP_RELAY_SERVER_PORT"," are no longer used because MSMTP is no longer included in the images.",[263,1040,1041,1044,1045],{},[230,1042,1043],{},"PHP_POOL_NAME"," has been renamed to ",[230,1046,1047],{},"PHP_FPM_POOL_NAME",[252,1049,1051],{"id":1050},"v3-migration-checklist","V3 Migration Checklist",[226,1053,1054],{},"Here is a good list to perform the V3 migration.",[430,1056,1058],{"id":1057},"repository","Repository",[260,1060,1061],{},[263,1062,1063],{},"Ensure you're committing to a test environment",[430,1065,1067],{"id":1066},"docker-compose","Docker Compose",[260,1069,1070,1073,1078,1086],{},[263,1071,1072],{},"Update the image name (if applicable)",[263,1074,1075,1076],{},"Check each environment variable exists and is set to a proper value ",[235,1077,305],{"href":211},[263,1079,1080,1081,315,1083,1085],{},"Ensure you updated the ports to ",[230,1082,918],{},[230,1084,921],{}," for NGINX, Apache, and Unit",[263,1087,1088,1089,1092],{},"Consider adding ",[230,1090,1091],{},"PHP_OPCACHE_ENABLE=1"," to your production environment for increased performance",[430,1094,1096],{"id":1095},"dockerfile","Dockerfile",[260,1098,1099,1102,1108,1111,1120],{},[263,1100,1101],{},"Update the base image name (if applicable)",[263,1103,1104,1105,1107],{},"Remove any ",[230,1106,857],{}," references",[263,1109,1110],{},"Remove any Ubuntu specific commands",[263,1112,1113,1114,1117,1118],{},"Ensure all extensions are installed with the ",[230,1115,1116],{},"install-php-extensions"," command ",[235,1119,873],{"href":185},[263,1121,1122,1123,1126,1127,1130],{},"Ensure your ",[230,1124,1125],{},"COPY"," commands are copying with the correct permissions (i.e. ",[230,1128,1129],{},"--chown=www-data:www-data",")",[430,1132,1134],{"id":1133},"cicd","CI/CD",[226,1136,1137,1138,1140,1141,1144,1145,315,1148,1151,1152,1155],{},"If you're running ",[230,1139,363],{}," (or similar) on a runner that's running as your builds as ",[230,1142,1143],{},"root",", you may need to add ",[230,1146,1147],{},"user = www-data",[230,1149,1150],{},"group = www-data"," to your ",[230,1153,1154],{},"php-fpm.conf"," file so you can bring FPM up correctly.",[226,1157,1158],{},"If you have to run things as root in CI, you can do this with a multi stage build and set the targets:",[438,1160,1163],{"className":1161,"code":1162,"filename":1096,"language":1095,"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",[230,1164,1165,1171,1176,1180,1186,1191,1196,1211,1216,1222,1228,1234,1239,1244,1250,1255,1268,1273,1279,1285,1291,1300,1308,1313,1319,1328,1337,1343,1351,1356,1361,1367,1372,1384,1389,1395,1402,1407,1412,1418,1423,1435,1443],{"__ignoreMap":10},[447,1166,1167],{"class":449,"line":450},[447,1168,1170],{"class":1169},"sAwPA","############################################\n",[447,1172,1173],{"class":449,"line":461},[447,1174,1175],{"class":1169},"# Base Image\n",[447,1177,1178],{"class":449,"line":469},[447,1179,1170],{"class":1169},[447,1181,1182],{"class":449,"line":519},[447,1183,1185],{"emptyLinePlaceholder":1184},true,"\n",[447,1187,1188],{"class":449,"line":527},[447,1189,1190],{"class":1169},"# Learn more about the Server Side Up PHP Docker Images at:\n",[447,1192,1193],{"class":449,"line":538},[447,1194,1195],{"class":1169},"# https://serversideup.net/open-source/docker-php/\n",[447,1197,1198,1202,1205,1208],{"class":449,"line":683},[447,1199,1201],{"class":1200},"snl16","FROM",[447,1203,1204],{"class":457}," serversideup/php:8.4-fpm-nginx ",[447,1206,1207],{"class":1200},"AS",[447,1209,1210],{"class":457}," base\n",[447,1212,1214],{"class":449,"line":1213},8,[447,1215,1185],{"emptyLinePlaceholder":1184},[447,1217,1219],{"class":449,"line":1218},9,[447,1220,1221],{"class":1169},"## Uncomment if you need to install additional PHP extensions\n",[447,1223,1225],{"class":449,"line":1224},10,[447,1226,1227],{"class":1169},"# USER root\n",[447,1229,1231],{"class":449,"line":1230},11,[447,1232,1233],{"class":1169},"# RUN install-php-extensions bcmath gd\n",[447,1235,1237],{"class":449,"line":1236},12,[447,1238,1185],{"emptyLinePlaceholder":1184},[447,1240,1242],{"class":449,"line":1241},13,[447,1243,1170],{"class":1169},[447,1245,1247],{"class":449,"line":1246},14,[447,1248,1249],{"class":1169},"# Development Image\n",[447,1251,1253],{"class":449,"line":1252},15,[447,1254,1170],{"class":1169},[447,1256,1258,1260,1263,1265],{"class":449,"line":1257},16,[447,1259,1201],{"class":1200},[447,1261,1262],{"class":457}," base ",[447,1264,1207],{"class":1200},[447,1266,1267],{"class":457}," development\n",[447,1269,1271],{"class":449,"line":1270},17,[447,1272,1185],{"emptyLinePlaceholder":1184},[447,1274,1276],{"class":449,"line":1275},18,[447,1277,1278],{"class":1169},"# We can pass USER_ID and GROUP_ID as build arguments\n",[447,1280,1282],{"class":449,"line":1281},19,[447,1283,1284],{"class":1169},"# to ensure the www-data user has the same UID and GID\n",[447,1286,1288],{"class":449,"line":1287},20,[447,1289,1290],{"class":1169},"# as the user running Docker.\n",[447,1292,1294,1297],{"class":449,"line":1293},21,[447,1295,1296],{"class":1200},"ARG",[447,1298,1299],{"class":457}," USER_ID\n",[447,1301,1303,1305],{"class":449,"line":1302},22,[447,1304,1296],{"class":1200},[447,1306,1307],{"class":457}," GROUP_ID\n",[447,1309,1311],{"class":449,"line":1310},23,[447,1312,1185],{"emptyLinePlaceholder":1184},[447,1314,1316],{"class":449,"line":1315},24,[447,1317,1318],{"class":1169},"# Switch to root so we can set the user ID and group ID\n",[447,1320,1322,1325],{"class":449,"line":1321},25,[447,1323,1324],{"class":1200},"USER",[447,1326,1327],{"class":457}," root\n",[447,1329,1331,1334],{"class":449,"line":1330},26,[447,1332,1333],{"class":1200},"RUN",[447,1335,1336],{"class":457}," docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID  && \\\n",[447,1338,1340],{"class":449,"line":1339},27,[447,1341,1342],{"class":457},"    docker-php-serversideup-set-file-permissions --owner $USER_ID:$GROUP_ID\n",[447,1344,1346,1348],{"class":449,"line":1345},28,[447,1347,1324],{"class":1200},[447,1349,1350],{"class":457}," www-data\n",[447,1352,1354],{"class":449,"line":1353},29,[447,1355,1185],{"emptyLinePlaceholder":1184},[447,1357,1359],{"class":449,"line":1358},30,[447,1360,1170],{"class":1169},[447,1362,1364],{"class":449,"line":1363},31,[447,1365,1366],{"class":1169},"# CI image\n",[447,1368,1370],{"class":449,"line":1369},32,[447,1371,1170],{"class":1169},[447,1373,1375,1377,1379,1381],{"class":449,"line":1374},33,[447,1376,1201],{"class":1200},[447,1378,1262],{"class":457},[447,1380,1207],{"class":1200},[447,1382,1383],{"class":457}," ci\n",[447,1385,1387],{"class":449,"line":1386},34,[447,1388,1185],{"emptyLinePlaceholder":1184},[447,1390,1392],{"class":449,"line":1391},35,[447,1393,1394],{"class":1169},"# Sometimes CI images need to run as root\n",[447,1396,1398,1400],{"class":449,"line":1397},36,[447,1399,1324],{"class":1200},[447,1401,1327],{"class":457},[447,1403,1405],{"class":449,"line":1404},37,[447,1406,1185],{"emptyLinePlaceholder":1184},[447,1408,1410],{"class":449,"line":1409},38,[447,1411,1170],{"class":1169},[447,1413,1415],{"class":449,"line":1414},39,[447,1416,1417],{"class":1169},"# Production Image\n",[447,1419,1421],{"class":449,"line":1420},40,[447,1422,1170],{"class":1169},[447,1424,1426,1428,1430,1432],{"class":449,"line":1425},41,[447,1427,1201],{"class":1200},[447,1429,1262],{"class":457},[447,1431,1207],{"class":1200},[447,1433,1434],{"class":457}," deploy\n",[447,1436,1438,1440],{"class":449,"line":1437},42,[447,1439,1125],{"class":1200},[447,1441,1442],{"class":457}," --chown=www-data:www-data . /var/www/html\n",[447,1444,1446,1448],{"class":449,"line":1445},43,[447,1447,1324],{"class":1200},[447,1449,1350],{"class":457},[430,1451,1453],{"id":1452},"productionstaging-servers","Production/Staging Servers",[260,1455,1456,1471],{},[263,1457,1458,1459,1461,1462,1464,1465,1467,1468],{},"Update all host volume file permissions to match the ",[230,1460,893],{}," UID/GID (",[230,1463,904],{}," for Debian, ",[230,1466,908],{}," for Alpine) ",[235,1469,1470],{"href":168},"Learn how to manage file permissions",[263,1472,1473,1474,1130],{},"If you're running Docker Swarm with host volume mounts, we created a script that could potentially help (",[235,1475,1478],{"href":1476,"rel":1477},"https://github.com/serversideup/docker-volume-change-permission-script",[627],"change-volume-permissions.sh",[430,1480,1482],{"id":1481},"deployment","Deployment",[260,1484,1485,1488],{},[263,1486,1487],{},"CI/CD with valid tests is always encouraged",[263,1489,1490],{},"After completing all steps above, you're now ready to deploy the new images",[1492,1493,1494],"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":461,"depth":461,"links":1496},[1497,1502],{"id":241,"depth":461,"text":242,"children":1498},[1499,1500,1501],{"id":254,"depth":469,"text":255},{"id":370,"depth":469,"text":371},{"id":424,"depth":469,"text":425},{"id":604,"depth":461,"text":605,"children":1503},[1504,1505,1506],{"id":750,"depth":469,"text":751},{"id":837,"depth":469,"text":838},{"id":1050,"depth":469,"text":1051},"Step-by-step guides for migrating between major versions of the serversideup/php Docker images.","md",null,{"head":1511,"layout":7},{"title":1512},"Major version migrations - Docker PHP - Server Side Up",{"title":171,"description":1507},"QG4aBV8yGm3zotgwscR4P46ZETY0CGyoYZyCjJ0IGqI",[1516,1518],{"title":167,"path":168,"stem":169,"description":1517,"children":-1},"Eliminate the headache of file permissions when working with PHP + Docker.",{"title":180,"path":181,"stem":182,"description":1519,"children":-1},"Learn how to change common PHP settings with environment variables or your own php.ini file.",1778794875562]