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

The Ecom Store Launch Checklist: 6 Steps You Cannot Miss

So, you've got amazing products and a strong brand, and almost ready to launch your ecom store. But with the online shopping market becoming more saturated every day, how do you make your store stand out?It’s not enough to simply shout louder than your competitors. Consumers are more discerning—they want brands that they can connect with, and they want their shopping experience to be easy, seamless, and personalized.Key Questions to Ask Before eCom store Launch:Do you have a user-friendly web or mobile app? Is your website or mobile app user-friendly?Have you properly integrated payment gateways?Do you have an efficient marketing strategy in place?Ecommerce websites are essential for businesses of all sizes. From startups to large corporations, everyone wants to capture a piece of the online market. But, building an effective site requires careful planning.Once live, your store needs to convert visitors into customers. Missing pieces, like payment gateways or confusing navigation, can lead to lost sales.So, how do you avoid the losses and make the best out of your lot?Here’s a roadmap to ensure your store is not just live but ready for success from day one!Why Do You Need an Ecom Store?An e-commerce or ecom online store serves as your business’s virtual storefront, providing customers with the convenience of shopping anytime, from anywhere. It's more than just a website. It’s a powerful tool for modern brands to connect with their audience, drive sales, and stay competitive.As more consumers shift from traditional stores to online shopping, having an ecom store has become essential for businesses seeking to expand their reach and meet the evolving expectations of today's shoppers. From small independent retailers to global brands, e-commerce is the key to accessing new markets, satisfying customer demand, and fueling growth in ways traditional retail simply can't match. In today’s digital economy, investing in an ecom store is crucial for staying relevant and ahead of the competition.How Do You Set Up Your First Ecommerce Store?To help businesses navigate this crucial phase, here’s a comprehensive ecom store checklist. It will help you make sure you’re headed the right way.Step 1: Choosing the Right TechnologyWhen developing your eCommerce website and mobile app, selecting the right platform is crucial. The technology you choose directly impacts user experience, scalability, and your ability to meet business goals. We have broken down three popular options—WordPress, Laravel, and MERN Stack with Next.js—each catering to different business needs.WordPress: The Accessible All-RounderAdvantages of using WordPress to build an ecom online store:Ease of Setup: WordPress is beginner-friendly, with minimal technical expertise required to build and launch an e-commerce site.Rich Plugin Ecosystem: WooCommerce and other plugins provide extensive functionality for payment, shipping, analytics, and more.Quick Launch with Themes: Thousands of pre-built themes allow businesses to create professional-looking websites rapidly.Strong SEO Capabilities: Built-in SEO tools and plugins like Yoast make WordPress an excellent choice for content-driven e-commerce sites.Cost-Effective: Perfect for startups with limited budgets due to its free core system and many low-cost plugins and themes.Best For:Small Businesses: Entrepreneurs and startups needing a quick and affordable online presence.Content-Focused Sites: E-commerce stores that heavily integrate blogs or guides as part of their marketing strategy.Laravel: The Customization PowerhouseLaravel is another framework that can be considered when choosing the right technology when building your ecommerce launch checklist.Advantages of using Laravel to build an ecom online store:Complete Flexibility: Laravel enables businesses to design highly customized e-commerce workflows and features.Built for Complexity: Ideal for advanced requirements, like multi-vendor marketplaces or unique payment and shipping systems.Scalable Performance: Optimized for large-scale operations with features like caching and efficient database management.High Security Standards: Includes built-in tools to protect against common vulnerabilities like CSRF attacks and data breaches.API-Ready: Excellent for integrating with mobile apps or external services via RESTful or GraphQL APIs.Best For:Enterprise-Level Stores: Businesses planning for growth and needing custom solutions to meet their unique demands.Innovative Workflows: Companies requiring advanced e-commerce setups that standard platforms cannot provide.MERN Stack with Next.js: The Modern SolutionAdvantages of using MERN Stack with Next.js to build an ecom online store:Cutting-Edge Technology: Combines MongoDB, Express.js, React.js, and Node.js for building high-performance web apps.Speed Optimization: Server-side rendering (SSR) with Next.js ensures fast page loads and excellent search engine visibility.Dynamic User Experiences: Perfect for personalized features like product recommendations, live updates, and interactive UI components.Streamlined Development: A single programming language (JavaScript) for both front-end and back-end simplifies development and reduces technical debt.Tailored Functionality: Building from scratch means the system includes only what’s needed, avoiding unnecessary bloat for optimized performance.Best For:Tech-Driven Startups: Companies focused on delivering modern, dynamic, and innovative user experiences.Large-Scale Platforms: Businesses with advanced scalability requirements, such as high traffic, real-time updates, or multi-regional stores.Custom Feature Demands: Enterprises seeking a fully bespoke e-commerce platform with integrations and functionalities tailored to their unique needs.By aligning your choice of technology with your business goals, technical expertise, and scalability needs, you can ensure a strong foundation for your e-commerce success.Step 2: Responsive Design and User ExperienceWhen gearing up for your ecom launch, it's essential to check that the site adapts smoothly to various screen sizes. From smartphones to tablets and desktops, your users should enjoy a consistent, intuitive browsing experience no matter how they access your site.Why Responsive Design Matters:A fast-loading website is critical for maintaining a competitive edge. Slow loading times can lead to higher bounce rates and lost sales, particularly on mobile devices, where users are less likely to wait for a page to load.Studies show an 8% increase in conversions with a reduction in mobile site speed by 0.1 seconds. This means ensuring your site loads quickly and looks great on any screen—it’s a key driver of sales.Prioritize a responsive web design to create a seamless experience across all devices. This will help you accommodate the increasing number of mobile users who expect an effortless shopping journey. In fact, mobile-first design is no longer just a trend—it’s a necessity. Small design flaws can lead to big problems, so routine testing is a vital part of your website maintenance. To keep everything in sync, make sure to test your site regularly across different devices and browsers. This will help you identify and resolve any issues before they negatively impact the user experience. In addition to a smoother user experience, faster load speeds also improve your SEO rankings, which in turn drives more traffic to your site. To ensure your site performs at its best, invest in secure, reliable hosting and focus on optimizing your site speed. Tools like image compression, caching, and reducing unnecessary scripts can significantly improve load times.Step 3: Product Integration for Inventory Management Connecting the right systems with your e-commerce platform is essential to gathering, storing, and utilizing data effectively.For instance, integrating effective inventory management tools can help:Track stock levelsAlert you to restocking needsEnsure product availabilityThis will allow your customers to enjoy a seamless shopping experience. Step 4: Payment GatewaysSimilarly, an ecommerce store is no better than any local store without efficient shipping solutions and flexible payment gateways. Another crucial factor in boosting delivery efficiency and customer satisfaction is reliable shipping integrations, which provide features such as:Real-time trackingAutomated label generationAdditionally, a user-friendly checkout experience is vital for converting browsers into buyers. You can choose from a variety of trusted payment options, including:Credit cardsPayPalApple PayAmazon PayStripeThis way, you'll be catering to diverse customer preferences and boosting conversion rates. By focusing on security, transaction fees, and ease of integration, businesses can ensure a smooth payment process that minimizes cart abandonment. It also enhances overall customer satisfaction, improving the shopping experience and fostering loyalty.Offer multiple contact options like email, phone, and live chat. Plus, respond quickly to build trust and ensure a positive shopping experience.Step 5: Marketing Essentials for Your Ecom StoreSearch engine optimization is essential for visibility. Optimize your product pages with relevant keywords, meta tags, and quality backlinks. Support this with engaging product descriptions, images, and videos. These will highlight features and benefits, enhancing both search rankings and customer engagement.Utilizing platforms like Instagram, Facebook, and TikTok is key for e-commerce. Develop impactful social media content with the help of digital marketing experts. From product highlights to ads, ensure brand consistency and customer interaction across channels.Step 6: Continuous Optimization for Enhanced Customer ExperienceWhile the drive to achieve an online storefront launch fast is understandable, ensuring the site runs efficiently is even more crucial for staying ahead of competitorsFor a successful ecom online store, seamless navigation and ease of purchase are essential. Conducting regular user testing feedback helps ensure that your site is continually improving. Integrating AI-driven product recommendations in retail adds a personalized touch, encouraging customer engagement.To refine your store’s performance, track key metrics like conversion rate, bounce rate, and customer lifetime value. With data-driven adjustments, you can better meet customer needs and adapt to trends. Businesses can get tools and support to interpret these insights for targeted improvements. Plus, they can create tailored suggestions based on user behavior and preferences.Trends and Best Practices for Ecom Store SuccessMobile Shopping ExperienceMobile shopping now accounts for a large portion of online purchases, contributing to 67% of all e-commerce sales.So, opting for mobility solutions is no longer optional—it’s essential. Ecom stores with mobile-first design ensure that all elements, from product images to checkout buttons, are user-friendly on smaller screens, offering seamless navigation and faster load times. Features like mobile-responsive themes and accelerated mobile pages (AMP) can improve both performance and search rankings. A streamlined mobile user experience boosts customer retention and minimizes cart abandonment.Sustainability in E-commerceConsumers today increasingly value eco-friendly practices, which can greatly impact brand perception. Sustainable practices like eco-friendly packaging, carbon-neutral shipping options, and clear sustainability commitments can differentiate a brand. It also demonstrates a commitment to reducing environmental impact. Brands now see sustainable practices as integral to building loyalty and a positive brand reputation.This makes green shipping options, recycling initiatives, and reduced plastic packaging essential items in an ecommerce website launch checklist to attract eco-conscious shoppers.Voice and Visual SearchVoice and visual search technologies are reshaping how consumers find products. Voice search, often facilitated by smart assistants like Alexa and Google Assistant, offers hands-free convenience. This is expected to transform search behavior. Visual search, using AI to analyze images for relevant products, simplifies the search process for users who might not know exact search terms. Optimizing for these technologies can enhance visibility. It also makes product discovery easier, ultimately boosting conversions.On an ending note…Launching an ecom store can feel overwhelming. However, with a clear plan and the right support, it’s achievable. Streamline this journey with the help of Sundew and get guidance from tip to toe. Be it choosing the ideal platform, securing a domain, or designing product pages with optimized content, we're with you. Get help setting up secure payment options and customer support tools to ensure you attract and retain loyal customers.With Sundew's end-to-end support, you’re set to create a high-performing ecom online store that’s ready for long-term growth!

Read More
sundew

Blog

Five ways how Chatbots can offer better Customer Service

Chatbots are used everywhere nowadays be it in receiving orders or responding to queries. Most companies are leveraging chatbots for operation purposes to get better outcomes. Many big giants in the industry are referring to chatbots as the next big thing for data management and customer servicing.We are all aware of the buzz that chatbots have created in the business sphere. However, it is a computer program that is capable of initiating a real conversation via chat interface and has a wide range of applications for any type of business. Chatbots are equipped with AI, Machine Learning (ML) and Natural Language Processing have the knack to understand and process human language making it easier to solve human queries.Here’s how chatbots can enhance your customer’s experience:Instant customer service and supportWe are often put on hold while in the middle of a conversation with a customer service representative and this process requires patience and most importantly your customer’s valuable time. Luckily, a chatbot will help you solve this problem. Your customers will never have to wait as a chatbot will answer all your queries in a fraction of second. This allows customer service representatives to focus on more critical issues and leave a positive impact on the customer.Personal service and increased salesChatbot assists in making purchasing decisions, making recommendations based on customers’ preferences and searching for a product catalogue which proves helpful for the customer as well as increases profits for your business. For some reason, if a customer exits a site without making a purchase, the chatbot remembers the last conversation with the customer and makes recommendations accordingly.Access to a larger audienceChatbots allows businesses to access a wide range of audience as there are more than one billion active users who are using messengers or similar applications. It simply means that with just a single click, one can approach more than a billion users.Round the clock availabilityThe purpose of having a chatbot is that customers can initiate a conversation at any time as long as they are using a messenger application on which the chatbot is employed. This proves to be favourable as it can solve any basic issue by a customer during non-working hours.Chatbots can predictChatbot always recollects previously held conversations with a particular customer which benefits the company in predicting the targeted customer base while devising a strategy. The more you know your customer, the better your business will perform.Having a chatbot for your business makes it possible for you to understand your customer requirement which helps in initiating a series of questions. This also allows a business to know the preferences, likes and dislikes, etc. based on these data, an organization can plan the marketing strategy and approach to the target audience.

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