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

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

The Role of Technology in Manufacturing: Building a Sustainable Future

“Sustainability” has become a buzzword for customers, governments, and businesses alike, as they swiftly implement the latest technology in manufacturing. Jumping onto the wagon are manufacturers too.A top priority while rethinking the traditional manufacturing processes is decarbonization. It is key to rethinking manufacturing, requiring optimized processes, reduced waste, and eco-friendly materials to achieve net-zero goals.So, what green manufacturing technologies can companies adopt to achieve their sustainability goals? And, how are these innovations benefiting the global landscape?Let’s find out.Addressing Key Challenges in the Manufacturing SectorGrowing Cybersecurity RisksAs manufacturing processes become more interconnected and data-driven, the sector faces escalating cyber threats, surpassing even finance and insurance in the share of global cyberattacks. The integration of IoT, robotics, AI, and autonomous machines has further expanded the attack surface, raising concerns about data security and potential operational disruptions. Key threats include:Phishing Attacks: Malicious emails or fake websites corrupt systems, stealing business data for financial gain.Ransomware: Encrypts files, rendering networks inoperable until demands are met, with threats of data leaks.Supply Chain Attacks: Exploits weak links in partners' systems, impacting operations across the supply chain.IP Theft: Silent harvesting of intellectual property that can lead to stolen or altered data.Outdated InfrastructureManufacturers must address the challenge of outdated, rigid infrastructures that are often incompatible with modern technologies. Digital transformation requires a comprehensive organizational shift, starting with:Training in robotic operationsFlexible production line configurationsCloud-based resource planningAt the same time, establishing a carbon footprint baseline is crucial for sustainability. While manufacturers often measure direct energy usage, accounting for indirect emissions is challenging. Automation, cloud computing, and data analytics can help by recording and reporting environmental impact, but many companies still rely on outdated, disconnected systems.Transitioning to Agile Manufacturing ModelsTraditionally, manufacturing stages operated in isolation, causing issues like heavy inventories, wasted hours, and increased costs due to a lack of integration. Emerging technology models, by contrast, are agile and flexible, enabling rapid adaptation to changing demands.However, adopting this model requires:End-to-end supply chain integrationEfficiency and agility across all stages, including suppliersOpen, fast communication within the organizationThese shifts demand a new mindset on the assembly line. However, they are often met with resistance from labor and middle management, who may question whether the new approach truly outperforms the traditional model.Knowledge Gap in Manufacturing DigitizationOne of the biggest challenges in manufacturing digitization is the limited expertise needed to safely implement advanced technologies. Manufacturers must invest in learning to use tools like advanced analytics, AI, machine learning, digital twins, and automation. Without this knowledge, progress can stall.For companies without in-house tech teams, outsourcing can ease the adoption process. The process can be further simplified with expert partners like Sundew offering strategic guidance and simplifying the transformation journey.Human ErrorsHuman errors are one of the most common challenges in manufacturing digitization, affecting safety, quality, and cybersecurity. For example, employees may incorrectly configure machines, disclose sensitive information, mishandle equipment, or open unknown attachments. Additionally, new processes can increase the risk of human error, especially if employees are resistant to change. To address this, it’s important to highlight the benefits of digitization, empowering employees to identify areas for adaptation and improvement rather than imposing change.How to Use Technology in Manufacturing for Sustainable Growth?As environmental awareness rises, consumers are increasingly seeking ways to reduce their impact. Governments and global organizations are also introducing regulations to ensure manufacturers adopt greener practices.So, how is technology used in manufacturing to promote more sustainable outcomes?Here are some key technologies that businesses must implement to stay compliant and future-proof.Artificial Intelligence (AI) AI is transforming production efficiency across industries, and its impact on sustainability is equally profound.For manufacturers, AI integration stands primary in meeting 79% of sustainable development goals. This can be done through robotics, machine learning, or advanced data systems.Beyond environmental benefits, AI offers manufacturers and their clients substantial business advantages. By leveraging AI-driven insights, companies can enhance product quality, reduce defects, and minimize downtime from equipment inefficiencies. The result? Reduced waste, energy savings, and timely delivery of superior products to customers.Big Data and AnalyticsBig data is another technology in manufacturing that enhances both sustainability and productivity. Advanced big data & analytics systems are transforming how businesses monitor supply chains, predict customer demand, plan operational capacity, and assess environmental impact. With up to 2,000 pieces of equipment on a single production line, each equipped with 100-200 sensors collecting data every second, the potential for manufacturers is immense. This data enables accurate emissions reporting and rapid identification of efficiency challenges.Moreover, data sharing promotes innovative collaboration, allowing companies to pool resources, fill capability gaps, and access new markets. For example, integrating insurance underwriters and telecommunications providers can deliver microinsurance via mobile subscriptions to underserved populations. By harnessing big data, manufacturers can drive sustainable growth while addressing social and environmental issues.Industrial Internet of Things (IIoT)Equipping production systems with intelligent technologies allows manufacturers to enhance efficiency and safety, and minimize downtime. A recent ABB survey found that IIoT integration has helped 94% of manufacturers see significant improvements in sustainability.By connecting machines, manufacturers can monitor performance in real-time, swiftly addressing inefficiencies and preventing costly downtime and waste. Sensors track carbon emissions, providing visibility and traceable metrics for regulation compliance.Additionally, enhanced waste traceability offers deeper insights into waste management systems. Ultimately, connecting intelligent machines provides actionable data that helps businesses meet compliance standards. This approach also facilitates more sustainable operations and supply chains.Enterprise Resource Planning (ERP) SoftwareERP systems integrate all major business functions - from accounts and procurement to operations - by collecting and sharing data across the organization. This comprehensive overview helps manufacturers meet compliance standards and achieve end-to-end efficiency.By providing insights into energy and material consumption, ERPs enable executives to identify opportunities for waste reduction and efficiency gains. They also facilitate accurate carbon impact estimates, pinpointing areas for minimizing greenhouse gas emissions and driving sustainability.Benefits of Digital Technology in ManufacturingImplementing the latest technology in manufacturing companies offers transformative advantages at every stage of the production process. These include the following.Environmental ConservationAdvanced technologies significantly reduce energy consumption, emissions, and waste, leading to a smaller environmental footprint. By embracing eco-friendly practices, manufacturers help preserve natural resources and address climate change.Cost SavingsInvesting in sustainable technologies often results in long-term cost savings. Energy-efficient machinery lowers utility bills, while waste reduction strategies minimize disposal costs, enhancing overall operational efficiency.Market CompetitivenessAdopting green manufacturing practices provides a competitive edge as consumers increasingly favor eco-friendly products. This commitment enhances brand reputation and attracts environmentally conscious consumers and talent.Regulatory ComplianceWith stricter environmental regulations, new technology in the manufacturing industry enables companies to meet compliance standards effectively. This proactive approach mitigates legal risks and builds trust among stakeholders.Increased ProductivityTechnologies like additive manufacturing and AI enhance operational efficiency, resulting in higher-quality products and faster response times to market demands. This, in turn, significantly boosts productivity.Improved Worker SafetyAutomation and robotics reduce human exposure to hazards on the production line. Remote monitoring allows workers to focus on complex tasks, enhancing safety and overall well-being.Greater ResilienceAdvanced digital technology in manufacturing promotes enhanced agility in the face of challenges. Companies that leverage these innovations often outperform competitors and adapt better to market changes.Enhanced ProfitabilityAs eco-conscious consumers prioritize sustainability, businesses aligning with these values can achieve greater market success. Technology helps navigate stricter regulations, ensuring profitability while appealing to a conscientious audience.Achieving net zero will require reimagining entire ecosystems— using AI integration, IoT, and big data to optimize processes, cut waste, and boost efficiency.While the challenges may seem daunting, companies worldwide are introducing innovative solutions aimed at preserving the planet for future generations. While addressing the environmental impact of industrialization is a complex and gradual process, it is undoubtedly achievable. Technology in manufacturing plays a pivotal role in this transformation, delivering scalable and impactful solutions to build a more sustainable future.

Read More
sundew

Blog

How to choose the right Machine Learning Algorithm?

When considering machine learning algorithms, you will find there is no particular solution or one approach that fits all. There are numerous factors that can affect your decision to choose an ML algorithm.Some problems are very explicit and require a unique approach. For instance, if you look at a recommendation system, it’s a very common type of machine learning algorithm and solves a very exact kind of problem. While some other problems are open and need a trial and error approach such as supervised learning, classification and regression. They could be used in anomaly detection or could be incorporated to build more universal sets of predictive models.Further, some of the decisions that we make when choosing an ML algorithm have less to do with the optimization of the algorithm but more to do with business decisions. Here we compiled some of the factors that can help you narrow down the search for your machine learning algorithm.Understanding the DataThe type and kind of data play a vital role in determining which algorithm to practice. Some algorithms can work with smaller sample sets while others require tons of samples. Few algorithms work with certain types of data sets e.g.  Naïve Bayes works well with definite input but doesn’t respond to missing data.Recognize your constraints•    Check data storage capacity in order to store gigabytes of classification or gigabytes of data to the cluster.•    In real-time applications, it is obviously very important to have a swift prediction•    Data learning have to be fast in order to rapidly update your model with a different dataset.Identify the available algorithmsOnce you understand where you stand, you can identify the algorithms that are applicable and tangible to implement. Some of the elements persuading the choice of a model are:•    Whether the model meets the goal of the business•    The accuracy of the model•    How reasonable the model is•    Performance and time it can take to build a model to make the right predictions.•    Scalability of the modelLogistic RegressionLogistic regression provides a probabilistic framework to receive more training data in the future that you want to be able to quickly incorporate into your model. Logistic regression can also help you comprehend the contributing factors behind the prediction.Decision treesDecision trees can easily handle feature interactions and they’re non-parametric, so you don’t have to worry about outliers. One drawback is that they don’t support online learning, so you have to rebuild your tree when new examples come up.Support Vector MachineSupport Vector Machine is a supervised ML technique that is broadly used in pattern recognition and classification problems.Naive BayesNaive Bayes is known to outperform even highly sophisticated classification methods and used for very large data sets.Neural networksIt is used to predict the class by establishing a link between neurons. With Neural networks, extremely complex models can be trained and utilized to perform unsupervised learning tasks, such as feature extraction from raw images or speech with much less human intervention.It is difficult to shortlist at first which algorithm will work best. Being able to combine and balance to solve a machine-driven problem is crucial and those who can do this add the most value. So consider all the points above to develop the right solution and at the end assess the performance of the algorithms to select the best one. 

Read More

Thank You!

Excellent!

Successfully subscribed to Sundew Solutions newsletter!

Acknowledged