[{"data":1,"prerenderedAt":505},["ShallowReactive",2],{"navigation":3,"/docs/reference/command-reference":221,"/docs/reference/command-reference-surround":502},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","/docs","docs",[9,12,56,85,132,153,178,195,208],{"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],{"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,"icon":55,"defaultOpen":55,"path":180,"stem":181,"children":182,"page":55},"Customization","/docs/customizing-the-image","docs/6.customizing-the-image",[183,187,191],{"title":184,"path":185,"stem":186},"Changing php.ini settings","/docs/customizing-the-image/changing-common-php-settings","docs/6.customizing-the-image/1.changing-common-php-settings",{"title":188,"path":189,"stem":190},"Installing PHP extensions","/docs/customizing-the-image/installing-additional-php-extensions","docs/6.customizing-the-image/2.installing-additional-php-extensions",{"title":192,"path":193,"stem":194},"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":196,"path":197,"stem":198,"children":199,"page":55},"Troubleshooting","/docs/troubleshooting","docs/7.troubleshooting",[200,204],{"title":201,"path":202,"stem":203},"Common Issues","/docs/troubleshooting/common-issues","docs/7.troubleshooting/1.common-issues",{"title":205,"path":206,"stem":207},"Getting Help","/docs/troubleshooting/getting-help","docs/7.troubleshooting/2.getting-help",{"title":209,"path":210,"stem":211,"children":212,"page":55},"Reference","/docs/reference","docs/8.reference",[213,217],{"title":214,"path":215,"stem":216},"Environment Variable Specification","/docs/reference/environment-variable-specification","docs/8.reference/1.environment-variable-specification",{"title":218,"path":219,"stem":220},"Command Reference","/docs/reference/command-reference","docs/8.reference/2.command-reference",{"id":222,"title":218,"body":223,"description":493,"extension":494,"links":495,"meta":496,"navigation":499,"path":219,"redirect":495,"seo":500,"stem":220,"__hash__":501},"docs/docs/8.reference/2.command-reference.md",{"type":224,"value":225,"toc":481},"minimark",[226,242,252,257,268,271,274,302,305,308,325,328,331,334,337,356,359,362,367,388,391,394,401,405,425,428,431,437,440,443,446,453,461,464,477],[227,228,229],"lead-p",{},[230,231,232,233,237,238,241],"p",{},"We included a few commands in the ",[234,235,236],"code",{},"/usr/local/bin"," directory to help you with your development experience. These commands are available in the ",[234,239,240],{},"serversideup/php"," image.",[243,244,245],"note",{},[230,246,247,248,251],{},"Since our images are unprivileged by default, you'll need to switch to the ",[234,249,250],{},"root"," user to run these commands. This is a security feature that ensures that your container is as secure as possible.",[253,254,256],"h2",{"id":255},"official-php-docker-commands","Official PHP Docker Commands",[230,258,259,260,267],{},"Since our images are based off the official PHP Docker images, any commands from the Official PHP Docker images are available in our images. You can find the full list of commands on the ",[261,262,266],"a",{"href":263,"rel":264},"https://hub.docker.com/_/php",[265],"nofollow","official PHP Docker images documentation",".",[253,269,270],{"id":270},"docker-php-serversideup-dep-install-alpine",[230,272,273],{},"This command will detect the operating system and install packages if it is an Alpine based system. This is helpful if you're building multiple operating systems from the same Dockerfile.",[275,276,281],"pre",{"className":277,"code":278,"filename":279,"language":280,"meta":10,"style":10},"language-bash shiki shiki-themes github-dark","# Usage: docker-php-serversideup-dep-install-alpine [alpine-packages]\ndocker-php-serversideup-dep-install-alpine git\n","Example - Installing the git package on Alpine","bash",[234,282,283,292],{"__ignoreMap":10},[284,285,288],"span",{"class":286,"line":287},"line",1,[284,289,291],{"class":290},"sAwPA","# Usage: docker-php-serversideup-dep-install-alpine [alpine-packages]\n",[284,293,295,298],{"class":286,"line":294},2,[284,296,270],{"class":297},"svObZ",[284,299,301],{"class":300},"sU2Wk"," git\n",[253,303,304],{"id":304},"docker-php-serversideup-dep-install-debian",[230,306,307],{},"This command will detect the operating system and install packages if it is a Debian based system. This is helpful if you're building multiple operating systems from the same Dockerfile.",[275,309,312],{"className":277,"code":310,"filename":311,"language":280,"meta":10,"style":10},"# Usage: docker-php-serversideup-dep-install-debian [debian-packages]\ndocker-php-serversideup-dep-install-debian git\n","Example - Installing the git package on Debian",[234,313,314,319],{"__ignoreMap":10},[284,315,316],{"class":286,"line":287},[284,317,318],{"class":290},"# Usage: docker-php-serversideup-dep-install-debian [debian-packages]\n",[284,320,321,323],{"class":286,"line":294},[284,322,304],{"class":297},[284,324,301],{"class":300},[253,326,327],{"id":327},"docker-php-serversideup-entrypoint",[230,329,330],{},"Our default entrypoint script that is used for all images.",[253,332,333],{"id":333},"docker-php-serversideup-install-php-ext-installer",[230,335,336],{},"This is an internal helper script to shorten up the syntax for the installation of the PHP extension installer.",[275,338,341],{"className":277,"code":339,"filename":340,"language":280,"meta":10,"style":10},"# Usage: docker-php-serversideup-install-php-ext-installer [version]\ndocker-php-serversideup-install-php-ext-installer 2.2.0\n","Example - Installing the PHP extension installer",[234,342,343,348],{"__ignoreMap":10},[284,344,345],{"class":286,"line":287},[284,346,347],{"class":290},"# Usage: docker-php-serversideup-install-php-ext-installer [version]\n",[284,349,350,352],{"class":286,"line":294},[284,351,333],{"class":297},[284,353,355],{"class":354},"sDLfK"," 2.2.0\n",[253,357,358],{"id":358},"docker-php-serversideup-set-file-permissions",[230,360,361],{},"This command is used to set the file permissions of a service in the container. This is useful for development environments where you want to match the user and group ID of the host machine.",[230,363,364],{},[261,365,366],{"href":172},"Learn more about working with file permissions →",[275,368,371],{"className":277,"code":369,"filename":370,"language":280,"meta":10,"style":10},"# Usage: docker-php-serversideup-set-file-permissions --owner USER:GROUP\ndocker-php-serversideup-set-file-permissions --owner 1000:1000\n","Example - Setting the file permissions of the NGINX service",[234,372,373,378],{"__ignoreMap":10},[284,374,375],{"class":286,"line":287},[284,376,377],{"class":290},"# Usage: docker-php-serversideup-set-file-permissions --owner USER:GROUP\n",[284,379,380,382,385],{"class":286,"line":294},[284,381,358],{"class":297},[284,383,384],{"class":354}," --owner",[284,386,387],{"class":300}," 1000:1000\n",[230,389,390],{},"The above command will automatically detect the service and update the file permissions accordingly.",[253,392,393],{"id":393},"docker-php-serversideup-set-id",[230,395,396,397,400],{},"This command is used to set the user and group ID of the ",[234,398,399],{},"www-data"," user in the container. This is useful for development environments where you want to match the user and group ID of the host machine.",[230,402,403],{},[261,404,366],{"href":172},[275,406,409],{"className":277,"code":407,"filename":408,"language":280,"meta":10,"style":10},"#  docker-php-serversideup-set-id [username] [uid]:[gid]\ndocker-php-serversideup-set-id www-data 1000:1000\n","Example - Setting the user and group ID of the www-data user",[234,410,411,416],{"__ignoreMap":10},[284,412,413],{"class":286,"line":287},[284,414,415],{"class":290},"#  docker-php-serversideup-set-id [username] [uid]:[gid]\n",[284,417,418,420,423],{"class":286,"line":294},[284,419,393],{"class":297},[284,421,422],{"class":300}," www-data",[284,424,387],{"class":300},[253,426,427],{"id":427},"docker-php-serversideup-s6-init",[230,429,430],{},"This command is used to copy our entrypoint scripts into the S6 Overlay scripts directory. This is useful if you're using S6 Overlay and want to ensure your scripts are executed in the correct order.",[230,432,433],{},[261,434,436],{"href":435},"/docs/customizing-the-image/adding-your-own-start-up-scripts#advanced-scenarios-s6-overlay-dependencies","Learn more about using S6 Overlay dependencies →",[253,438,439],{"id":439},"docker-php-serversideup-s6-install",[230,441,442],{},"This is a command used at build time to install a specific version of S6 Overlay.",[253,444,445],{"id":445},"install-php-extensions",[230,447,448,449,452],{},"This command is a wrapper around the ",[234,450,451],{},"docker-php-ext-install"," command that comes with the official PHP Docker images. This command allows you to install PHP extensions with a single command.",[230,454,455],{},[261,456,460],{"href":457,"rel":458,"target":459},"https://github.com/mlocati/docker-php-extension-installer",[265],"_blank","Check out the docker-php-extension-installer project on GitHub →",[230,462,463],{},"Here's an example of how you can use this command:",[275,465,468],{"className":277,"code":466,"filename":467,"language":280,"meta":10,"style":10},"install-php-extensions intl\n","Example - Installing the \"intl\" extension",[234,469,470],{"__ignoreMap":10},[284,471,472,474],{"class":286,"line":287},[284,473,445],{"class":297},[284,475,476],{"class":300}," intl\n",[478,479,480],"style",{},"html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}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 .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}",{"title":10,"searchDepth":294,"depth":294,"links":482},[483,484,485,486,487,488,489,490,491,492],{"id":255,"depth":294,"text":256},{"id":270,"depth":294,"text":270},{"id":304,"depth":294,"text":304},{"id":327,"depth":294,"text":327},{"id":333,"depth":294,"text":333},{"id":358,"depth":294,"text":358},{"id":393,"depth":294,"text":393},{"id":427,"depth":294,"text":427},{"id":439,"depth":294,"text":439},{"id":445,"depth":294,"text":445},"Learn about all the commands available within the serversideup/php image to improve your developer experience.","md",null,{"head":497,"layout":7},{"title":498},"Command reference - Docker PHP - Server Side Up",true,{"title":218,"description":493},"HdIKCUTlv1FpAEGs4mhhT9O3QezxJAHdjwSum1W5btw",[503,495],{"title":214,"path":215,"stem":216,"description":504,"children":-1},"View the complete reference for environment variables available in the Docker PHP images.",1776367056481]