How to Install Drupal on Windows Using DDEV?

Install Drupal on Windows
  • 4 min. read
  • Dec 12th, 2024
  • Technology

Setting up Drupal on Windows can be a seamless process with the right tools at your disposal. DDEV, a powerful and user-friendly local development environment, makes it easier than ever to install Drupal on Windows

This step-by-step approach provides a clear and professional roadmap to get your Drupal site up and running effortlessly. 

Let’s dive in and simplify your development journey!

What is Drupal?

Drupal is a powerful tool for building websites and applications. What makes it special is its flexibility and scalability. While you can use Drupal’s core features for easy content management and robust security, the ability to extend and customize it sets it apart.

Drupal is designed to be modular. This means you can add extra features with thousands of available modules, tailor the look of your site with various themes, or use pre-packaged distributions as a starting point. 

Whether you’re looking to integrate it with other services or build a unique digital framework, Drupal’s flexibility lets you create a tailored experience that meets your needs. It’s a go-to choice for anyone needing a robust, adaptable content management system.

DDEV: An Introduction

DDEV is an open-source platform designed to simplify the development, testing, and deployment of PHP-based web applications, including Drupal.

Drupal development with XAMPP vs Docker: Which is Better?

When setting up a local development environment, you can choose between Docker with Windows Subsystem for Linux (WSL) or XAMPP for Drupal installation on Windows. 

Here’s a quick comparison:

 

WSL with Docker

XAMPP

         Pros

Consistent across different environments

Simple and easy to install

Isolates applications and dependencies

Provides an all-in-one package with Apache, MySQL, PHP, and Perl

Great for complex, scalable projects

Quick setup for smaller projects

         Cons

Steeper learning curve

Less flexible and scalable

More setup time

Can lead to conflicts with multiple projects

 

To install Drupal on Windows, your choice depends on your needs: Docker with WSL2 offers unmatched flexibility and scalability, while XAMPP provides a simpler, faster setup for quick deployment.

 

Installing DDEV on Windows Using WSL2

Note:- Please Enable HypervisorPlatform and Windows Subsystem for Linux Options by visiting Turn Windows features on or off.

Turn Windows Features on or Off

Step 1: Install WSL.

wsl install

Step 2: Verify that you have an Ubuntu distro set as default by running
wsl.exe -l -v  .If you have WSL2 but not an Ubuntu distro, install one by running  wsl.exe --install Ubuntu       

Step 3: Verify that your Ubuntu default distro is WSL v2 using wsl -l -v 

Step 4: In an administrative PowerShell, run this PowerShell script by executing:

Set- execution policy

 

In the Windows Update settings, navigate to Advanced Options and activate the option to Receive updates for other Microsoft products. 

 

This ensures your system stays up-to-date with the latest features and security patches beyond Windows itself.

 

Additionally, it's a good idea to periodically run the command wsl.exe --update to manually check for and apply any updates to the Windows Subsystem for Linux (WSL).

 

Once set up, you can access your Ubuntu distribution using either the Ubuntu terminal app or the Windows Terminal. 

 

Your Ubuntu distribution should have DDEV and Docker fully operational, providing a seamless development environment on your Windows machine.

 

Step 5: Check ddev and docker are working or not using:

ddev version

 

docker version

 

Drupal Installation on Windows Using DDEV

 

Step 1: Open terminal access WSL using the command:

wsl

 

Step 2: Create a folder and give that folder read and write permission using the sudo command:

For creating Drupal:

mkdir drupal

 

For checking permission:

sudo chmod

 

Step 3: Once the folder is created and permission is set, then download Drupal.

To download Drupal Core, its libraries, and other dependencies, run this command:

ddev composer create project drupal

 

Step 4: Now download one final component called Drush.

ddev composer require

 

Step 5: After Drupal installation on Windows, launch your Drupal site by running the following command, which will automatically open it in a browser:

ddev launch

 

You will come across the default Drupal installation wizard.

 

drupal installation process for profile selection

 

Step 6: Checking Your Permissions (if asked for permissions)

During the process to install Drupal on Windows or upon loading the welcome page, you may encounter a warning related to the permission settings of the /sites/default directory and the settings.php file inside it.

 

After the installation, Drupal will attempt to adjust the permissions of the /sites/default directory to make it readable and executable for all groups (permission mode 555)

 

Additionally, the system will try to set the settings.php file to read-only (permission mode 444)

 

If this warning appears, it is crucial to manually apply the necessary permissions using the following chmod commands from your project’s root directory:

 

Failure to correct these permissions could expose your site to security vulnerabilities. Make sure to execute these commands to ensure your site remains secure.

 

sudo chmod 555

 

With the above guide, it doesn’t have to be a daunting task to install Drupal on Windows using DDEV. By following these steps, you can set up a robust, local development environment that’s both efficient and reliable. Whether you’re a beginner or a seasoned developer, this approach will streamline your workflow and set the foundation for success. 


Tags

  • Drupal
  • Windows
  • DDEV
  • Local Development
  • Web Development

Related Blogs

sundew

Blog

Top 5 E-commerce Web Designing Trends in 2020

Online shopping habits are undergoing noticeable evolution constantly with a fast-paced life. Eventually, the designers also need to bring change in their design at regular intervals to make sure the online shoppers have a satisfying shopping experience.Whether you are an e-commerce website owner or a web designer, you cannot afford to lose your customers for amateurish e-commerce design. Right?The latest e-commerce web designing trends 2020 highlights the cutting-edge technologies like-Artificial intelligence and VR to provide better UICreative marketing techniques with more customization features for better UXScroll down to check out the top 5 e-commerce designing trends of 2020 that you must follow to design a head-turning, personalized e-commerce site and draw more online shoppers.1. Mobile-friendly layoutsEarlier, the designers used to create the e-commerce website designs primarily for web pages that are responsive and adaptive to mobile devices. In 2020, the idea has just flipped. A significant percentage of online shoppers find it easier and more time-saving to shop from their mobiles.Catering to this need of the customers, the web designers are now framing the layouts of the e-commerce stores first for mobile devices like iPads, tablets, and smartphones. Then they make sure the design also fits for the larger screen.Hence, this year, more mobile-friendly features happen to be incorporated in many e-commerce websites themes like-Card-like layoutsEasy navigationLong-scrolling pagesFinger-friendly icons2. Motion design for product imagesMotion design will play a pivotal role in e-commerce web designing this year. Static product images are no-longer appealing enough to grab the attention of online shoppers and trigger their greed to buy the product. Moreover, a dynamic and moving picture will help the shoppers to estimate how it will look from every dimension. The products having a different texture, patterns, cutting on different sides must be showcased in motion images.Though, we have seen the elements of motion design and videos in the last couple of years, more animation, micro-interactions, videos, cinemagraphs are taking the driver’s seat in 2020 e-commerce design trends.3. Rule of the advanced AI ChatbotsE-commerce web designing trends are now focusing more on the personalization approach to address the buyers. With the evolution of AI, chatbots have made their way to e-commerce in recent years. Chatbots are primarily generated to respond to the customer’s queries about payment, delivery, and products.But the chatbots of 2020 are more advanced to go beyond this limit by providing the shoppers with a customized shopping experience. They reflect shipping details and offer discount codes. Added to that, the round-the-clock virtual availability of this sales assistant guides the customers to land on purchasing decisions. So, those online shoppers who always feel guilty about their impulsive shopping decision will get a shopping companion even at the wee hours.4. Heterogeneous grid layoutsDo you want to stand out from most of the other e-commerce sites? Then think out of the box layouts and take your design out of the comfort zone. No doubt, that similar-sized, square, and homogenous grid layouts keep the website structured and make browsing user-friendly.But some brands, especially the fashion industries and brands particularly for the youngsters rely upon this new trend of unconventional grid design for their e-commerce sites to give an edgy feel. With this new layout, you can also highlight your best-selling products without explicitly categorizing them.5. Display of authentic imagesAre you tired of finding suitable images to design an e-commerce website? Many companies have professional photographers in their team to capture authentic, and top-notch quality images for their brand.Stock images have been back footed this year as the brands want to evoke their stories and sell their unique products. E-commerce designing trends are leaning towards Custom photography to enhance the visual aesthetics of the e-commerce sites as well as to be transparent to their customers with the original pictures of their products.What are the other e-commerce website designing trends you think will reign in 2020? Share your views with us.Besides, if you need bespoke website designing for your e-commerce site, feel free to Email us or talk to us at +91-98367-81929

Read More
sundew

Blog

A Few Merits & Demerits of WordPress for Your Business

In case you own a business, it’s imperative for you to have a website for the same in order to withstand the competition and to grow your business. But how to actually create a website in the first place? If you do not have any clue about the intricacies of the same, you will have a lot of queries in your mind, which is natural! You might think which platform to use to create one and even if you have an old website, you might need to know the ways of revamping it for escalating your business growth and to make sure that it doesn’t become obsolete in the coming months.There are numerous platforms available on the web which will promise you to provide free websites for your business. However, you must always choose the right one and WordPress is the most common of all. In order to create a website on WordPress, you need to get in touch with a website development company or individual developers who specialise in WordPress website creation. However, before you do so, you must learn the merits and demerits of having a WordPress website for your business.But before that, here are a few facts about WordPress:1. More than 75 million websites depend on WordPress.2. WordPress powers 23% of the entire websites, almost.3. In WordPress, there are more than 45,000 plugins.Now, here are a few advantages of using WordPress platform:1. It’s Open-Source: The best part of WordPress is that it’s an open –source platform which means that the developers can make use of the code written or used already without modifying the same or having to start from the beginning. This is quite a relief, isn’t it? Also, there are large communities of developers available for WordPress and they can share codes among themselves thereby saving the time for writing new ones and implementing the same.2. It’s Easy to Operate: Websites need to be refurbished occasionally to be on track with the technological advancements happening over the web. So, to do this in your WordPress website, you do not need to get in touch with designers or developers to modify your website. This is because you can make all the changes yourself without having to write a single code. This will save you a lot of time as well as money!3. It’s Simple with Higher Usability: With other frameworks, you will need to have some kind of understanding of the technicalities and knowledge but this isn’t true for WordPress. Even with zero technical background, you can still use it and that too, quite effortlessly. So, with WordPress, there’s no need to be aware of the programming languages like PHP, HTML, CSS, and so on.Here are a few demerits of WordPress:1. It’s Open-Source: An advantage can also be a disadvantage at times! So, when we said that it’s open-source and hence, it doesn’t need any code, it can also be a reason for your website’s downfall. It is being used widely and therefore, is an easy target for the hackers. Your website can be vulnerable to cyber-attacks as the code that you would have used for your website can be written by someone else and so, there can be a possibility of your website carrying malicious bugs which can hinder its overall functionalities.2. Excessive Plugins: Usually, plugins are meant for enhancing the functionality of a website but too many plugins can work differently as well! Too many plugins can also affect the overall performance of your website and make it slower with a decreased response time. Hence, it’s better to refrain from using such plugins and with every new update, try and uninstall the ones which are not in use anymore.3. Decreased Speed of the Website: As the WordPress websites need numerous generic codes and plugins for uniting the several functionalities into the website, the website is more likely to respond slowly and the loading time can also get decreased. So, when users will find that your website isn’t responding well to their command, they might consider going for other alternatives!4. Security is what matters: As the most popular CMS for websites WordPress is easy target for hackers and spammers. WordPress is though being one of the most user-friendly website development platform available to us, it is terribly vulnerable to attacks. A study says that more than 70% installations that happen are vulnerable as the developers do not practice proper security protocols for the platform.Although, it’s not at all easy to outline every single merit and demerit of using WordPress framework and to know firmly whether you should go for it or not, the above-mentioned points are the most common ones that every business owner must consider while thinking about making use of WordPress for building a website. Also, this blog is just a general informative one which is meant for letting the readers know about this particular framework in detail. This write-up doesn’t provide an argument for or against the usage of WordPress. It’s for you to read this and decide whether or not you should make use of WordPress for creating a website for your brand / business. The decision and choice is yours completely.

Read More
sundew

Blog

How to Maintain Your Website’s SEO After a Redesign

A total site redesign is a tricky thing. At some point, you must redesign your site, but when you do, you run the risk of your traffic dropping off. Redesigning a site is one of the biggest SEO challenges that a company can face.If you are currently redesigning your site or planning on a full site renovation in the future, here’s what you need to identify:What should you do during the redesign process?While you are redesigning your site, you need to keep a few things in mind. Some of these things may not seem important to you, but leaving any of them out is an easy way to cause a huge traffic drop.Never take down your siteAt no point should you pull your old site offline unless it needs to go under for a few minutes as you launch the new design. When visitors encounter a website that says “sorry, we’re under construction” for several weeks, traffic declines before the new site goes live.Re-examine your keyword strategyRedesigning is the perfect time to evaluate your existing keyword strategy. Take a look at your organic keyword traffic, and find out if your site could be gaining traffic from any new long tail keywords.Optimize all content with right keywordsYou should also be reviewing content on each page prior to your site redesign. Sometimes things can get changed in the process. Titles are altered; meta descriptions are dropped; and SEO gets marginalized. Don’t let this happen to you. Instead, pay close attention to optimizing all content on all pages.Maintain the same URL structure as much as possibleIf you can, keep your URL structure the same. Whenever you change a site’s URL structure, you lose vast amounts of traffic from inbound links.Create a comprehensive 301 URL redirect mapping strategyNearly every site redesign will have some pages that will be mapped to a new location. It’s important to have a complete plan in place for redirecting every such page. Every single rewritten URL must have a 301-permanent redirect.Create an effective customized 404 error pageSince the new site will probably experience a few 404s, you should have an optimized 404 page in place.Create new sitemaps (HTML and XML)You should always have an up-to-date sitemap, but it’s especially important for a site launch or redesign. If any content has moved to new URLs, the sitemap can help the search engine discover these new locations.Put tracking codes in placeWhen you’re sure everything is ready, place your analytics tracking code in the page source. Any conversion landing pages should also be tracked with the relevant codes.Watch the Google index statusKeep an eye on how things are indexing in Google. You want to make sure that Google is indexing your entire site.Watch your trafficTraffic is a critical metric for measuring the success of your new site’s SEO. Keep close tabs on everything that happens with your traffic patterns.A redesign should be an opportunity to improve your SEO and conversion rates. However, for sites with strong organic search traffic, this should be undertaken with care to preserve your SEO. Following the instructions in this article should ensure you only see positive improvements. For further information, get in touch with us at +91-98367-81929.

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged