# How to enable Short Open Tag in DevKinsta on Docker in Win10?

**URL:** <https://community.kinsta.com/t/how-to-enable-short-open-tag-in-devkinsta-on-docker-in-win10/3369>\
**Category:** Questions\
**Created:** [April 28, 2024, 9:23am UTC](https://community.kinsta.com/t/how-to-enable-short-open-tag-in-devkinsta-on-docker-in-win10/3369 "2024-04-28T09:23:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kittenofd00m](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kittenofd00m/32/3338_2.png) [@kittenofd00m](https://community.kinsta.com/u/kittenofd00m)\
**Post date:** [April 28, 2024, 9:23am UTC](https://community.kinsta.com/t/how-to-enable-short-open-tag-in-devkinsta-on-docker-in-win10/3369/1 "2024-04-28T09:23:49Z")

</div>

On Cloudways there is a simple switch to enable support for PHP Short Open Tags (a relic from older PHP code). You can also change the php.ini file to allow this manually by adding “short\_open\_tag=On” and restarting the server - but I cannot find the php.ini file to do this manually.

Where is the php.ini file in the DevKinsta files, using Docker Desktop on Windows 10 Pro?

---

<div class="post-metadata">

**Author:** ![Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andrew/32/2792_2.png) [@Andrew](https://community.kinsta.com/u/Andrew)\
**Post date:** [April 28, 2024, 9:12pm UTC](https://community.kinsta.com/t/how-to-enable-short-open-tag-in-devkinsta-on-docker-in-win10/3369/2 "2024-04-28T21:12:19Z")

</div>

Hi @kittenofd00m! Welcome to the Kinsta community!

Thank you for reaching out to us on the forum! There are a couple of ways to enable the short\_open\_tag directive in PHP in DevKinsta. One will enable it at the local level on a per site basis, and the other will enable it globally.

To enable this option on the local/site level you may open the DevKinsta window and select the site to navigate to the site info page. Once you are on the site info page you may select the “Site configurations” tab from the left side bar in the window (the icon will look like a wrench).

Once you are on the “Site configurations” page in the DevKinsta window please locate the “PHP.ini editor” section. In the text box below the default comment present you may enter **short\_open\_tag = On;** and select the “Save changes” button. This will then enable short\_open\_tag on the site.

 ![Screenshot 2024-04-28 at 2.36.41 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/d/d279dae6e6d18f2e516bee0717e4ec0929c11bf3.jpeg)

If you would like to enable this option globally you will need to modify the php.ini file within the devkinsta\_fpm Docker container.

To do this first open the Docker Desktop application and ensure you are on the “Containers” tab. From this page please select the devkinsta\_fpm Docker container. This should take you to the Logs page for the container.

 ![Screenshot 2024-04-28 at 5.09.32 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/b/b8497067294d758667b4dbef89811e7dd9453b6c.jpeg)

 ![Screenshot 2024-04-28 at 2.35.40 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/0b148f512f78f3c4c4d2dba32167c92aabb1ae6b.png)

Above the log output window you will see tabs for the various functions to interact with the container. You will now select the “Files” tab and locate the php.ini file located under **/etc/php/x.x/fpm/php.ini** where x.x is the version of PHP your site is running.

 ![Screenshot 2024-04-28 at 5.10.32 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/ff7426b6d132677e48a60386a1a4ef09f289b2f1.jpeg)

 ![Screenshot 2024-04-28 at 5.05.35 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/5/589fa8898029624e64defd76b3b550f890e0a380.jpeg)

Next, right click the php.ini file and choose to edit it. Within the editor that appears locate the short\_open\_tag option that is by default set to Off, and change it to read as On. Then, select the button to save the changes.

You will next switch to the “Exec” tab from the bar towards the top and run the command **service phpx.x-fpm restart** again x.x is the version of PHP your site is configured to use. This will restart the PHP-FPM service and enable the short\_open\_tag directive globally.

Please note however that in the event the devkinsta\_fpm Docker container is updated or deleted and recreated for any reason this change will be reverted and these steps will need to be completed again to enable the short\_open\_tag directive globally.

Please let us know if this has helped or if you have any questions! We are standing by and happy to help!

Best regard
