[{"data":1,"prerenderedAt":219},["Reactive",2],{"content-query-LIYccgOSQB":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"head":10,"layout":12,"body":13,"_type":214,"_id":215,"_source":216,"_file":217,"_extension":218},"/docs/guide/migrating-from-official-php-images","guide",false,"","Migrating from the official PHP images","Learn how easy it is to move from the official PHP docker images to serversideup/php.",{"title":11},"Migrating from official PHP Docker images - Docker PHP - Server Side Up","docs",{"type":14,"children":15,"toc":208},"root",[16,24,49,56,77,98,104,126,131,152,158,181,195],{"type":17,"tag":18,"props":19,"children":21},"element","h1",{"id":20},"migrating-from-the-official-php-images",[22],{"type":23,"value":8},"text",{"type":17,"tag":25,"props":26,"children":27},"lead-p",{},[28],{"type":17,"tag":29,"props":30,"children":31},"p",{},[32,39,41,47],{"type":17,"tag":33,"props":34,"children":36},"code",{"className":35},[],[37],{"type":23,"value":38},"serversideup/php",{"type":23,"value":40}," is based on the official PHP images, so you can be confident in changing the base image for your application. Simply prepend ",{"type":17,"tag":33,"props":42,"children":44},{"className":43},[],[45],{"type":23,"value":46},"serversideup/",{"type":23,"value":48}," to the image name and you're ready to go. 🚀",{"type":17,"tag":50,"props":51,"children":53},"h2",{"id":52},"changing-the-base-image",[54],{"type":23,"value":55},"Changing the base image",{"type":17,"tag":29,"props":57,"children":58},{},[59,61,67,69,75],{"type":23,"value":60},"We follow the same naming convention as the official PHP images, so you can easily switch to our images by changing the base image in your ",{"type":17,"tag":33,"props":62,"children":64},{"className":63},[],[65],{"type":23,"value":66},"Dockerfile",{"type":23,"value":68}," or ",{"type":17,"tag":33,"props":70,"children":72},{"className":71},[],[73],{"type":23,"value":74},"docker-compose.yml",{"type":23,"value":76}," file.",{"type":17,"tag":29,"props":78,"children":79},{},[80,82,88,90,96],{"type":23,"value":81},"For example: If you're running ",{"type":17,"tag":33,"props":83,"children":85},{"className":84},[],[86],{"type":23,"value":87},"php:8.3-cli-alpine",{"type":23,"value":89},", you can simply change it to ",{"type":17,"tag":33,"props":91,"children":93},{"className":92},[],[94],{"type":23,"value":95},"serversideup/php:8.3-cli-alpine",{"type":23,"value":97}," and you're ready to go. It's that easy!",{"type":17,"tag":50,"props":99,"children":101},{"id":100},"before-making-the-change",[102],{"type":23,"value":103},"Before making the change",{"type":17,"tag":29,"props":105,"children":106},{},[107,109,116,118,124],{"type":23,"value":108},"We encourage you to get familiar with our ",{"type":17,"tag":110,"props":111,"children":113},"a",{"href":112},"/docs/getting-started/default-configurations",[114],{"type":23,"value":115},"default configurations",{"type":23,"value":117}," and ",{"type":17,"tag":110,"props":119,"children":121},{"href":120},"/docs/reference/environment-variable-specification",[122],{"type":23,"value":123},"environment variable specifications",{"type":23,"value":125}," before making the switch. We've improved the developer experience in a number of ways, so be sure you're evaluating how certain customizations are provided by default and that you're not duplicating conflicting customizations.",{"type":17,"tag":29,"props":127,"children":128},{},[129],{"type":23,"value":130},"The best place to get this information is with the following pages:",{"type":17,"tag":132,"props":133,"children":134},"ul",{},[135,144],{"type":17,"tag":136,"props":137,"children":138},"li",{},[139],{"type":17,"tag":110,"props":140,"children":141},{"href":112},[142],{"type":23,"value":143},"Default Configurations",{"type":17,"tag":136,"props":145,"children":146},{},[147],{"type":17,"tag":110,"props":148,"children":149},{"href":120},[150],{"type":23,"value":151},"Environment Variable Specifications",{"type":17,"tag":50,"props":153,"children":155},{"id":154},"older-versions-of-php",[156],{"type":23,"value":157},"Older versions of PHP",{"type":17,"tag":29,"props":159,"children":160},{},[161,163,171,173,179],{"type":23,"value":162},"If you do run into a situation where an image tag is not found, it's likely because we may need to add that tag to our system. This is more common in older versions of PHP. We support ",{"type":17,"tag":110,"props":164,"children":168},{"href":165,"rel":166},"https://www.php.net/supported-versions.php",[167],"nofollow",[169],{"type":23,"value":170},"active versions of PHP",{"type":23,"value":172},", but also provide images for 7.4 and 8.0 for those who need it. We ",{"type":17,"tag":174,"props":175,"children":176},"em",{},[177],{"type":23,"value":178},"strongly encourage",{"type":23,"value":180}," you to run a supported version of PHP. We only offer these older versions to help you containerize and migrate your application to a newer version of PHP.",{"type":17,"tag":29,"props":182,"children":183},{},[184,186,193],{"type":23,"value":185},"If you are missing an image tag, you can ",{"type":17,"tag":110,"props":187,"children":190},{"href":188,"rel":189},"https://github.com/serversideup/docker-php/discussions/new?category=general",[167],[191],{"type":23,"value":192},"open a Discussion on GitHub",{"type":23,"value":194}," and we'll evaluate if we can get that added for you.",{"type":17,"tag":29,"props":196,"children":197},{},[198,200,206],{"type":23,"value":199},"To learn more how we tag our images, see our ",{"type":17,"tag":110,"props":201,"children":203},{"href":202},"/docs/getting-started/installation",[204],{"type":23,"value":205},"installation guide",{"type":23,"value":207},".",{"title":7,"searchDepth":209,"depth":209,"links":210},2,[211,212,213],{"id":52,"depth":209,"text":55},{"id":100,"depth":209,"text":103},{"id":154,"depth":209,"text":157},"markdown","content:docs:3.guide:1.migrating-from-official-php-images.md","content","docs/3.guide/1.migrating-from-official-php-images.md","md",1727889428217]