<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amila Kalansooriya</title>
    <description>The latest articles on DEV Community by Amila Kalansooriya (@its_amila).</description>
    <link>https://dev.to/its_amila</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1145514%2Ff45081ee-a389-4ee4-8841-1c40971757d3.jpg</url>
      <title>DEV Community: Amila Kalansooriya</title>
      <link>https://dev.to/its_amila</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/its_amila"/>
    <language>en</language>
    <item>
      <title>Server options for your PHP development environment</title>
      <dc:creator>Amila Kalansooriya</dc:creator>
      <pubDate>Thu, 24 Aug 2023 15:19:57 +0000</pubDate>
      <link>https://dev.to/its_amila/server-options-for-your-php-development-environment-hj6</link>
      <guid>https://dev.to/its_amila/server-options-for-your-php-development-environment-hj6</guid>
      <description>&lt;p&gt;In this post I am trying to share with you some of my insights into what are the available server options we have when it comes to setting up our PHP development environment.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;The most straightforward one is, PHP's built-in web server (php -S localhost:port). While this is a very handy option for quickly running a website, it may not be suitable in some cases as it is prone to hang up when the app is trying to perform a resource intensive tasks. If you don't know that fact, you may left wondering what on earth going wrong there. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Traditional Nginx/php-fpm stack or Apache/php-fpm combination. Also available as WAMP/XAMPP. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Vagrant&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And there's &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Docker&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Vagrant and Docker are both resource intensive so it can become a concern if you have many sites running simultaneously on your low/average hardware (CPU/Ram). &lt;/p&gt;

&lt;p&gt;I've used all of the above options during my career and personally for me, it comes down to choosing between Nginx/php-fpm vs Apache/php-fpm. And I prefer to go with Nginx/php-fpm combination as Nginx scores high in many areas (including performance) over Apache. Another thing I like about Nginx is its lack of per-directory configuration. While there maybe disadvantages to it when compared to Apache, I've never been a fan of Apache's .htaccess rules. That reason alone is good enough for me to appreciate and stick with Nginx and it has been a very comfortable experience so far.&lt;/p&gt;

</description>
      <category>php</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
