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

Benefits of digital transformation in the food and beverage industry

In a rapidly changing food and beverage landscape, evolving consumer preferences and stricter government regulations, emphasize the need for more resilient business models. An ever-expanding global population and an increased demand for food call for more efficient safety compliance, eliminating vulnerabilities in supply chains.Navigating these complexities requires a proactive approach to stay relevant in a technologically advancing world, a concern that can be addressed by emerging technologies like artificial intelligence (AI), Internet of Things (IoT), and blockchain that are already making an impact in the industry.Implementing digital transformation in the food industry is critical for long-term success. In this regard, the benefit of utilizing modern cross-functional cloud software solutions is notable for enterprises contemplating the adoption of current software to enhance efficiency across all functions.Streamlined Functions and Efficient Asset ManagementThe primary step in improving operations efficiency requires the replacement of outdated and analog processes with seamlessly integrated technology to mitigate inaccuracies, delays, and data losses associated with manual record-keeping.Tools like Enterprise resource planning (ERP) platforms utilize IoT devices like smart sensors, scales, meters, and thermometers to automatically capture readings crucial for monitoring product quality and process efficiency. Beyond accuracy, these integrations accelerate processes by unlocking features, expiration management tools, automated compliance checks, and end-to-end traceability functions that facilitate swift contamination isolation and expedite the recall process.Collectively, these measures contribute to eliminating human error that could compromise data integrity and swiftly import results to the central database in real-time. This ensures that decisions can be made based on the most current and accurate facts and figures and that every product leaving the production lines is impeccably fit for consumption.Agile Food SystemAdapting to evolving consumer demands is a constant for food manufacturers. Quick adjustments to product packaging and recipes and introducing new products to the market are imperative.Digital recipe management tools are pivotal in enhancing this adaptability, enabling brands to cut production costs while efficiently managing operations with multiple streams and products. This digital approach ensures a more streamlined and cost-effective response to potential product changes, ultimately contributing to increased efficiency in the manufacturing process.Enhanced Production FlexibilityDigital transformation plays a pivotal role in amplifying production flexibility within the food industry. This heightened flexibility and integration empower companies to unleash creativity, swiftly launch new products, and expedite their journey to market. Implementing recipe control systems emerges as a valuable asset, facilitating efficient experimentation with new products.Increased revenueEmbracing digital transformation with analytical tools and strategic planning functionalities is pivotal for informed decision-making. These technologies critically assess your operations, unveiling opportunities for improvement, sustaining a healthy bottom line, and fostering future growth.Platforms utilizing data analytics offer insights into efficiency and profitability, highlighting issues hindering peak performance in current processes. Easy accessibility to financial data informs decisions on product lines, guiding choices on focus and elimination.This functionality extends to modeling potential changes like relocating a warehouse, expanding service to a new customer outside the usual geographic range, accurately calculating cost-to-serve for new customers, and thoroughly testing growth ideas before implementation, thus helping maximize revenue and profit.Enhanced Safety in the Production EnvironmentThe digital transformation of the food industry extends beyond customer benefits to prioritize the workers' safety in the production process. Food and beverage facilities operate as bustling and potentially hazardous environments, demanding robust measures to safeguard staff. Digital tools play a crucial role in fostering a secure working environment by streamlining and automating food safety protocols, thus enabling workers to perform their tasks more efficiently and with extraordinary safety measures.Improved Customer ExperienceIn a rapidly evolving market saturated with choices, brands strive to transcend products and services, turning them into immersive experiences. Equipping businesses with the right technology and adept user support can transform product distribution and delivery, empowering business owners to gain deeper insights into customer preferences exceeding expectations.Incorporating cutting-edge quality management and traceability software ensures proactive forecasting and personalization to create a seamless omnichannel experience. This boosts income and enhances a brand's market reputation, creating a more satisfying and positive customer experience.Similarly, a consolidated supply chain and empowered support teams with access to user data can aid in faster query resolution in minutes instead of hours of sifting through data on outdated, non-connected systems. This streamlined process translates to a hassle-free experience in serving the user.Precision in Supply and Demand ForecastingEfficient food processing operations heavily depend on well-managed inventory, involving significant investments in procurement and storage, given the perishable nature of products. Anticipating demand in advance ensures streamlined cash flow and mitigates risks associated with excess or insufficient inventory. Leveraging software with advanced data analytics empowers businesses to proactively predict demand and seasonal fluctuations, aligning storage capacity with anticipated needs. This ensures streamlined operations and minimizes the risks associated with inventory management.Mitigating Equipment Breakdown RisksThe integration of intelligent sensors has proven revolutionary across various industries, with the food and beverage sector no exception. These cutting-edge devices play a crucial role in early anomaly detection within equipment, enabling companies to prolong the life cycle of machines and prevent downtime.Furthermore, in supply chains dealing with perishable products and ingredients, maintaining precise temperature and humidity levels is paramount for production. Smart sensors excel in identifying deviations, ensuring optimal conditions, and preserving the freshness of goods.Optimized Energy EfficiencyThe advent of digital transformation has empowered food companies to capture real-time energy data seamlessly. By meticulously tracking this data, companies can pinpoint processes that exceed normal energy consumption levels and identify equipment causing energy spikes. This precise recording and monitoring can aid in significantly reduced energy consumption, contributing to enhanced profitability and a notable reduction in environmental impact.The benefits of digital transformation in the food and beverage industry are substantial and far-reaching, positioning businesses for long-term success in a dynamic and evolving landscape. Adopting emerging technologies by growing and established companies can address the relentless challenges and aid in smoother and more efficient growth outcomes.

Read More
sundew

Blog

App Designers vs. App Developers

Application Software has taken over the current lifestyle, and most people are familiar with them. These digital assets deliver specific services that upgrade a task's functionality from educational purposes and the spheres of business to another ambit of life. For example, the extensive usage of smartphones and other digital devices in today's age has increased the scope of Application Software and thus enhanced the profession of Application Designers and Application Developers.The making of an Application includes various processes, and App Developers and App Designers synthesize their skills to achieve it. But the vagueness behind their roles and job scopes remains unsettled to this day. In this post, we seek to clarify • Who is an Application Designer?• Who is an Application Developer?• How do App Developers and App Designers differ in their Job Expertise? Who is an Application Designer?There are several procedures required to construct an application. An App designer looks into an Application's aesthetic structure, stretches the design beyond visual elegance, and moulds it according to the business requirements. More than beautifying an application, the App Designers need to consider the scope of the App and bring solutions to establish a diverse layout that suffices the requirements of the targeted audience. An Application Designer needs to have detailed knowledge about programming solutions, the business' Database, Information Architecture, and software development methodology. More than these, the person also needs to understand the vision of the Company they are working for and the users' requirements. Steps of Application Designing• Understanding the Goal - Applications are tools that serve a particular purpose; hence to craft one, the essence behind it needs to be understood by the designers. The Designers need to question their clients regarding the motive of the App, its vision, its preferred appearance, and the details that will serve as its nuances, separating it from the others. A clear understanding of the idea behind an Application is fundamental.  • Research - There are thousands of Applications in the market, and the numbers are always on a hike. To make an application stand out from the rest, detailed research through the market is a must. Application Designers research and analyze the collected information to bring out the best potential of the App, and give a distinctive persona to it. An elaborate research analysis also reveals the necessary implementations that one can add to the Application, which the other apps lack and hence eliminate competition.• Creating a Wireframe - Wireframes are the visual blueprints of an Application's architecture. Designers compose wireframes by including their research information and picturize how the application will appear. For this, tools like Sketch and Adobe XD are used. After creating a particular wireframe, it is modified into an interactive prototype. In the end, the Wireframe is discussed and reviewed by the Clients. • Visual Elements & Supportive IT Resources - Designers determine the visual elements of UX and UI - Fonts, Graphics, etc. They also decide on the Supportive IT resources. They need to consider the changing technologies and find a way to implement those in the App Design to keep the Application updated with the trends. Learn the Difference Between Static & Dynamic WebsiteWho is an App Developer?Application Developers construct the blueprints drawn by the Application Designers. For example, if App Designers are architects, App developers are the engineers who manifest the Application Designs into reality. Application Developers codify the wireframe, and their work structure is entirely technical. Besides constructing the Application, they also need to consider its maintenance and smooth functioning.Finally, designers and developers collaborate to shape an Application into precision. Therefore, good communication is essential to bring out the right aesthetics and seamless operation of the application. The Application developers inscribe the codes via programming languages and do an application module based on the final wireframe compiled by the Designers. After this, the Application Module undergoes a series of testing processes to optimize its functionality. At last, the final Application is sent to the user community to determine its advantages and drawbacks. While this whole process appears to be simple, there are three types of Application Developers to take care of different aspects of App Development • Front-End Application Developers - Front-End Developers operate on the part of the Application that is visible from the User's perspective. They primarily focus on the Application's graphics and layouts. Front- End Application development determines how a user will view and interact with the application. • Back-End Application Developers - Back-End Developers are concerned about the Application's Database design. As Apps require data to function, Back-End Developers are responsible for creating strong Database structures and supporting the Front-End Framework. • Full-Stack Developers - Full-Stack Developers look into the Construction of the Application in a 360 degrees vision. They work both as front-end visual developers and back-end database developers and contribute to the overall Application Development. How App Developers and App Designers differ in their Job Expertise?There is no doubt that both Application Developers and Application Designers share equal importance in creating a successful Application. Designers lay out the patterns and structures that create the framework of an application, while Developers build their codes around these designs. The element of separation between designers and developers are their skills. While both need to have a clear understanding of the aspects of designing and coding, The Designers have to be more artistic, and the Developers need to remain indulged in the technicals.In the matter of scope, App Developers and App Designers are suitably paid according to their experience and skills.  Furthermore, A sound synthesis of ideas between Application Designers and Application Developers creates an App that fully realizes its functionality and operation.Designers sketch the Application, following current trends and increasing the User number. They also make sure to keep the application free from any interaction loopholes. The users are secured with an optimum User Experience—developers, on the other hand, craft the Application structure smoothly and seamlessly. Businesses looking to scale their teams efficiently can also explore staff augmentation benefits as a flexible way to strengthen both design and development resourcesLooking for an enterprise consulting company to help you with App designing and app development? Need a FREE consultation? Write to us at [email protected]

Read More
sundew

Blog

How to Install Drupal on Windows Using DDEV?

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 IntroductionDDEV 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 DockerXAMPP         ProsConsistent across different environmentsSimple and easy to installIsolates applications and dependenciesProvides an all-in-one package with Apache, MySQL, PHP, and PerlGreat for complex, scalable projectsQuick setup for smaller projects         ConsSteeper learning curveLess flexible and scalableMore setup timeCan 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 WSL2Note:- Please Enable HypervisorPlatform and Windows Subsystem for Linux Options by visiting Turn Windows features on or off.Step 1: Install WSL.Step 2: Verify that you have an Ubuntu distro set as default by runningwsl.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: 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:  Drupal Installation on Windows Using DDEV Step 1: Open terminal access WSL using the command: Step 2: Create a folder and give that folder read and write permission using the sudo command:For creating Drupal: For checking permission: 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: Step 4: Now download one final component called Drush. Step 5: After Drupal installation on Windows, launch your Drupal site by running the following command, which will automatically open it in a browser: You will come across the default Drupal installation wizard.  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.  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. 

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged