How to Install Drupal on Windows Using DDEV?

  • Sundew
    Sundew
  • sundew
    4 min.read
  • sundew
    December 12th, 2024
  • Technology
sundew

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. 

Thoughts and Trends
Across Our Focus Areas

sundew

Blog

Digital Transformation in Travel: Navigating the Future

Modern travelers seek personalized, efficient, and innovative experiences, needs that digital transformation in travel fulfills. This shift is not just improving how businesses operate but also helping them stay competitive in a fast-changing market.Technological advancements in the travel industry have evolved rapidly over the past few years, especially after the COVID-19 crisis, propelling industries to thrive digitally.Digital transformation integrates technology to improve operations and customer engagement. For example, mobile apps streamline check-ins and boarding, while AI chatbots handle traveler queries, improving efficiency and enhancing the overall customer experience.Travel brands willing to establish or enhance their niche in the sector must understand how digital transformation technologies work to tap into their immense potential further.What is digital transformation in travel, and why is it important?Digital transformation in the travel industry integrates technology into every area of business. This helps simplify processes and reshape all aspects of tourism.The primary goal of incorporating digitization in the travel and tourism sector is to refine the customer experience while keeping up with the constant evolution. It also includes reshaping the operational frameworks of travel businesses to enhance efficiency and streamline processes.Digital transformation in travel industry is important to stay competitive in the fast-evolving technological landscape. Here’s why your travel business should prioritize this transformation:Keeping Up With Customer ExpectationsIn the travel sector, customer expectations have shifted towards seamless, tech-driven experiences. Travelers now demand smooth interactions across multiple channels. For instance, travel agencies with web platforms should also offer mobile apps to simplify bookings and enhance customer loyalty.Improved Efficiency Digital transformation helps travel businesses streamline operations by automating processes and reducing manual errors. For example, online systems enable staff to access booking data and collaborate in real-time, ensuring smoother trip management and quicker customer responses.Cost SavingsAdopting digital tools can reduce costs in the travel industry by automating repetitive tasks and optimizing resources. For instance, using cloud storage eliminates the need for physical servers, saving on maintenance while improving data accessibility and scalability.Enhanced SecurityTravel businesses handle vast amounts of sensitive customer data, from personal information to payment details. Digital transformation enables advanced security measures like encryption and multifactor authentication to protect data and reduce the risk of breaches.Influence of Digital Technologies on the Travel and Tourism IndustryAccording to the latest reports by Statista, more than 50% of travelers worldwide resort to online travel apps when planning every detail of a trip in 2023. From a simple online hotel review search to a complete virtual destination tour, the reliance on travel apps can be observed now more than ever.Travel agencies also report a significant rise in the demand for personalized tours and exclusivity. Global customization and personalization in the tourism market are expected to grow at a CAGR of 17.8% over the next decade, with data analytics, AI, and IoT going beyond precision in understanding and predicting customer behavior.The 'Revenue By Segment' in the 'Travel' segment of the app market is projected to grow by 0.8 billion U.S. dollars (+64%) from 2023 to 2027, reaching a new peak of 2 billion U.S. dollars in 2027. This marks the tenth consecutive year of growth for this indicator.Travel brands willing to establish or enhance their niche in the sector must understand how these technologies in digital transformation work to tap into their immense potential further.How Does Digital Transformation in Travel Industry Drive Growth?The travel industry is fast-paced and highly competitive. Digital transformation in travel industry allows businesses to adapt quickly to changing market demands, such as sudden shifts in travel trends or new customer preferences, giving them a critical edge in the market.Data AnalyticsUsing data analytics and visualization to identify patterns in a customer’s journey helps companies better understand their customers' needs. Travel businesses can use data analytics as part of their digital transformation strategy to offer personalized recommendations and offers based on a user’s behavior history. This is done by automatically tracking and storing real-time data, such as purchase history and customer interactions, to operate web analytics.Businesses can also use data mining to understand and implement the most effective pricing strategies and deals to enhance sales. For example, airlines can predict demand patterns and optimize flight schedules and pricing strategies using dynamic pricing for maximum efficiency.Artificial Intelligence (AI)From real-time chatbots to personalized recommendations, Artificial Intelligence reshaping the travel experience. It enhances hotel and airline customer service while lowering operational expenses.Businesses can ease a customer’s research process with near-accurate predictions of flight availability, hotel and airline prices, and suggestions on the go for creating compelling itineraries. The latest usage of AI also includes helping airlines tackle weather challenges with satellites and sensors.VR and ARVirtual reality (VR) takes the entire process of researching one’s destination before planning a trip up one notch with virtual tours. Travel and hospitality solutions using VR can let travelers see around their hotel rooms and campsites before booking. They can also walk through locations virtually before finalizing their itineraries. Although several companies have yet to adopt digital technology, the size of the VR market is expected to grow to more than $12 billion by 2024.Another advantage of augmented reality (AR), which can help elevate the whole touring experience, is audio-visual elements like music, narration, and additional content. Using virtual and augmented reality, companies can also tap into the potential of helping people with mobility issues enjoy traveling experiences worldwide from the comfort of their homes.Internet of Things (IoT)The Internet of Things makes enhanced personalization possible via sensors and smart gadgets. Hotels can use IoT as part of their digital transformation strategy to let travelers operate several appliances from a central operating device, aiding in hassle-free check-in and baggage detection.Additionally, travel companies can notify customers with location-specific information, such as nearby attractions and eateries, making navigation easier. Smart energy-saving features of IoT devices can also help businesses curtail unnecessary costs.Cloud ComputingBusinesses looking to scale their operations up or down can do so quickly with automated processes based on fluctuations in storage demands. Cloud enables seamless data sharing across multiple channels, letting airlines and hotels arrange inventory according to updated requirements, improving operational efficiency and reducing costs.Mobile Apps & Social Media ToolsDigital transformation in travel empowers businesses to enhance traveler experiences through mobility solutions, offering real-time, location-specific updates via mobile apps. These technologies ensure travelers stay informed and engaged throughout their journey.BlockchainBlockchain is another important technology in the digital transformation of travel and hospitality, and it enhances security. Businesses can unlock their potential to provide better transaction privacy and data protection, ensuring better security.What challenges can digital transformation initiatives overcome for the tourism industry?Recent developments in the tourism sector reinforce the importance of digital transformation. Travel brands can overcome the following significant challenges by integrating digital technologies into their businesses.Improving Brand Reach across Multiple ChannelsDigital channels provide vast opportunities to expand your brand's visibility. You can connect with a broader audience and establish a strong online presence by strategically leveraging various platforms.Streamlined and Secure TransactionsTransparent, seamless, and secure transactions build trust and encourage repeat business. Implementing user-friendly payment systems and clear communication throughout the purchase process enhances customer confidence and satisfaction.Authentic Travel ExperiencesAuthentic travel and guest experience result in trips that leave lasting memories for customers. By showcasing local culture, off-the-beaten-path destinations, and unique activities, you can differentiate your offerings and appeal to discerning travelers.Personalized and Flexible ItinerariesPersonalized itineraries cater to individual preferences and needs, increasing customer satisfaction. Offering flexible options allows travelers to tailor their trips, creating a sense of control and customization that many modern tourists value.Quality services while Maintaining a BudgetTraveling on a budget doesn’t mean sacrificing the quality of services. By carefully curating options and leveraging partnerships, you can provide excellent value to customers without sacrificing your profit margins.Online travel market sizeThe global online travel industry's market size surged in 2023 compared to the previous year. After declining to 225 billion U.S. dollars due to the COVID-19 pandemic, the market rebounded in 2022 and continued to climb in 2023, approaching 600 billion U.S. dollars. This trend is anticipated to persist, with the market expected to surpass 800 billion U.S. dollars by 2028.Are you ready to transform the future of travel?Implementing the latest digital technologies is critical for businesses to remain competitive. The digital transformation success of your travel agency is defined by the positive impact you make on customers' journeys.Incorporating AI/ML, data analysis, and automation into existing business processes can optimize efficiency while sustaining a company's digital presence and helping it keep up with rapidly evolving market trends. The rise of digital transformation in travel and tourism underscores the need for continuous technological innovation to thrive in the modern travel industry.

Read More
sundew

Blog

How to Install SSL Certificate in XAMPP For Local Development?

Setting up SSL in XAMPP ensures your local development environment mimics real-world, secure HTTPS deployments. Learning how to install SSL certificate in XAMPP is a key step to building secure web applications in a local environment. This isn’t just a best practice but often a prerequisite for enabling critical functionalities. Without HTTPS, many modern web features such as APIs, service workers, and secure cookies won’t function as intended, even in a local environment. With this guide, you’ll set up HTTPS using either OpenSSL or the easier and trusted mkcert utility, ensuring your development mirrors real-world conditions.Step-by-Step Guide on How to Install SSL Certificate in XAMPPThere are two straightforward ways to get SSL running in your local XAMPP setup, using the built-in OpenSSL utility or the more user-friendly mkcert tool. Both approaches help you simulate a secure environment for development.Using OpenSSL utilityStep 1: Create a minimal config fileStep 2: Generate the private key and certificate using the minimal config fileStep 3: Configure Apache to use the certificateStep 4: Review SSL configurationStep 5: Verify Apache configuration and check for syntax errorsStep 6: Restart ApacheUsing mkcert utility (Recommended)Step 1: Install mkcert by following the instructions hereStep 2: Generate the certificatesStep 3: Configure Apache to use the generated certificatesStep 4: Review and verify Apache configurationStep 5: Restart ApacheThere are a few browser APIs that require the web page to run in a secure context. For that, we need SSL. Here is how we can configure SSL for Apache in XAMPP. There are two ways to configure the SSL - either using openssl or mkcertUsing OpenSSL utilityThis method works properly. However, you won’t be able to see the green padlock icon even after following the steps below. This is intended behavior. To get a green padlock without warnings, you need to add your certificate to the trusted root certificate authorities.Step 1: Create a minimal config fileCreate a new file named openssl_minimal.cnf and add the following content:Make sure to replace the placeholder variables with actual valuesSave this file in a convenient location, such as C:\xampp\apache\conf\openssl_minimal.cnfStep 2: Generate the private key and certificate using the minimal config file2.1 Open terminal and navigate to the OpenSSL directory. 2.2 Generate a private key. The following command will generate a private key name private.key . Feel free to use any name of your choice.2.3 Create a Certificate Signing Request (CSR) file using the minimal config file created earlier. The output file name can be customized.2.4 Generate a self-signed certificate file using the minimal config file. The parameters can be customized.Step 3: Configure Apache to use the certificate3.1 Copy the generated files to a convenient location inside the Apache folder.3.2 Open the httpd-ssl.conf file located in xampp\apache\conf\extra and update the paths.The paths are relative to the Apache installation folder.3.3 Ensure that the following lines are un-commented in the httpd.conf file.Step 4: Review SSL configurationReview the VirtualHost setup in the SSL configuration file. Here is a sample of what it might look like.Step 5: Verify Apache configuration and check for syntax errors5.1 Navigate to xampp\apache\bin5.2 Check for syntax and other configuration errors using the following command5.3 If everything is correct you would get the message Syntax OKStep 6: Restart ApacheUse the XAMPP control panel to restart Apache. Now try accessing localhost via HTTPS. The browser might show a warning about the certificate being self-signed. You may ignore the warning and proceed.Using mkcert utility (Recommended)mkcert is a tool to make trusted certificates for local development without any configuration.Step 1: Install mkcert To get started with, first install mkcert by following the instructions here.Once mkcert is set up, run the below command to install the trusted root store.Step 2: Generate the certificatesThe above command will generate two files - localhost.pem and localhost-key.pemStep 3: Configure Apache to use the generated certificates3.1 Copy the generated files to a convenient location inside the Apache folder.3.2 Update the httpd-ssl.conf file located in C:\xampp\apache\conf\extraStep 4: Review and verify Apache configurationReview and verify the Apache configuration using the steps mentioned above (Step 4 and Step 5 of OpenSSL installation).Step 5: Restart ApacheRestart Apache, and you are good to go. When opened in the browser, the green padlock icon will be visible.Summing It UpNow you have two reliable methods to set up HTTPS in your local environment: OpenSSL for a manual approach and mkcert for a quicker, trusted solution. Understanding how to install SSL certificate in XAMPP localhost not only helps you avoid browser security warnings but also ensures that your development environment aligns with modern web standards. Secure by default is now the new norm, and that applies to local development too, especially for APIs and full-stack work.

Read More
sundew

Blog

5 Benefits of Coding with React Native

React Native was first introduced by Facebook in 2013. It is a programming language that allows developers to build cross-platform mobile applications using JavaScript. This particular framework comes with many tools that are best for web developers.Furthermore, it has brought a style to UI development that hinges on a modest idea. As per React Native, UI is a function of data and if that data changes, UI must also change. With React-Native it is possible to develop an application once and deploy it on both iOS and Android. React Native allows developers to see their code and incorporate on real mobile screens at the same time. Some of the benefits of React Native are outlined below:    Community-drivenThe development of the React Native framework, responding to the need of the developer community, combined the advantages of mobile app development with the power and agility of the native React environment.There are substantial advantages to using such a community-driven environment like the availability of a huge team of enthusiastic JavaScript and Native developers keen to share their knowledge and expertise and huge catalogues of freely available components.If you choose React Native for developing a mobile app, you do not have to be concerned about the framework falling behind in terms of improvements in mobile software. React Native is consistently improving, so one can always be assured of having the application built on the best of technologies. Maximum code reuse & cost savingBy using React Native, one can deploy the same code on iOS as well as on Android. This saves a lot of development time and cost. Ideally, this will cut the development effort by half. While in practice, the cost saving will be a little lower but it will make the investment worth your while. As per the recent studies, about 90% of the code can be reused between Android and iOS, but it would be wise to calculate some extra time for practical alterations as well. Live reloadReact Native allows you to create powerful mobile applications with additional feature like ‘live reload’, enabling you to immediately see the result of the latest change that you have made to the code. If you have two windows opened – one containing the code and the other showing a mobile screen as a result of the code – you can immediately see the effect of what you have changed in one screen, or on the other screen. Strong performance for mobile environmentsThe React Native architecture is very well tuned to mobile devices and they are relatively faster than Native apps. It makes use of the Graphics Processing Unit, while native platforms make use of Central Processing Unit.   Modular and intuitive architecture similar to ReactThe modular and intuitive interface makes it easy for other developers to delve into someone else’s project and build upon it. This surges the flexibility within a development team and makes it easier to create updates and upgrades to web applications. Also, testers will need less time to understand the programming logic and build appropriate testing setups.Benefits of Coding with React Native can be further extended from web to mobile and vice versa. These merits are worth considering before kicking off with React Native. 

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged