{"id":783,"date":"2024-03-30T06:42:00","date_gmt":"2024-03-30T06:42:00","guid":{"rendered":"https:\/\/www.cmsgalaxy.com\/blog\/?p=783"},"modified":"2024-06-30T09:56:13","modified_gmt":"2024-06-30T09:56:13","slug":"how-to-install-drupal-in-linux-using-xampp","status":"publish","type":"post","link":"https:\/\/www.cmsgalaxy.com\/blog\/how-to-install-drupal-in-linux-using-xampp\/","title":{"rendered":"How to Install Drupal in Linux using Xampp"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Drupal is a powerful and flexible open-source content management system (CMS) that powers websites and applications. It&#8217;s known for its scalability, security, and extensive community support. Here are some of its main features:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Modularity<\/strong>: Drupal\u2019s architecture is highly modular, allowing for the addition of features through thousands of modules developed by the community. This makes it adaptable to a wide range of projects from simple blogs to complex enterprise applications.<\/li>\n\n\n\n<li><strong>Customizability<\/strong>: Both the appearance (through themes) and functionality (through modules) of a Drupal site can be extensively customized to meet specific requirements.<\/li>\n\n\n\n<li><strong>Content Management<\/strong>: Drupal provides a robust content management system that supports content creation, content types with custom fields, taxonomy for content categorization, views for content listing and sorting, and much more.<\/li>\n\n\n\n<li><strong>User Management<\/strong>: It includes a comprehensive system for user roles and permissions, allowing for detailed control over who can view and manage content.<\/li>\n\n\n\n<li><strong>Scalability<\/strong>: Drupal is designed to handle sites with high traffic and vast amounts of data, making it suitable for enterprise-level deployments.<\/li>\n\n\n\n<li><strong>Security<\/strong>: Security is a key focus for Drupal, with a dedicated security team working on identifying and fixing vulnerabilities. Its robust security features make it a popular choice for government and financial institutions.<\/li>\n\n\n\n<li><strong>SEO-Friendly<\/strong>: Drupal has strong SEO capabilities, including customizable meta tags, automatic generation of SEO-friendly URLs, and integration with analytics tools.<\/li>\n\n\n\n<li><strong>Community and Support<\/strong>: Drupal has a large, active community of developers, designers, and users who contribute to the project, offer support, and create documentation. This community provides a vast resource for troubleshooting and learning.<\/li>\n\n\n\n<li><strong>Accessibility<\/strong>: Commitment to web accessibility standards ensures that Drupal websites are usable by people with disabilities, following best practices and guidelines such as WAI-ARIA.<\/li>\n\n\n\n<li><strong>Multilingual Support<\/strong>: Drupal offers built-in multilingual support, allowing the creation of websites in multiple languages, which is crucial for global businesses and multicultural sites.<\/li>\n\n\n\n<li><strong>API-first Approach<\/strong>: Drupal can serve as a content management system for the back end of web applications, with an API-first approach that facilitates the development of decoupled or headless applications where Drupal&#8217;s content is consumed by other applications, such as mobile apps, through APIs.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Drupal Installation Requirement<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"s-drupal-10\">Drupal 10<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"s-web-server\"><a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/overview#s-web-server\"><\/a>Web server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Apache 2.4.7 or higher, Nginx 1.1 or higher, or any other web server with proper PHP support.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More details about&nbsp;<a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/web-server-requirements\">web server requirements<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"s-database\"><a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/overview#s-database\"><\/a>Database<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MySQL 5.7.8 or higher<\/li>\n\n\n\n<li>MariaDB 10.3.7 or higher<\/li>\n\n\n\n<li>Percona Server 5.7.8 or higher<\/li>\n\n\n\n<li>PostgreSQL 12 or higher<\/li>\n\n\n\n<li>SQLite 3.26 or higher<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">More details about&nbsp;<a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/database-server-requirements\">database requirements<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"s-memory\"><a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/overview#s-memory\"><\/a>Memory<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Memory requirements RAM:<\/strong>&nbsp;Minimum required memory is&nbsp;<a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/memory-requirements\">1GB<\/a>&nbsp;to make sure Composer works. If you are running multiple modules or using memory-intensive tools such as Solr, or Memcache, considerably more memory may be needed.<\/li>\n\n\n\n<li><strong>PHP memory requirements:<\/strong>&nbsp;The minimum required memory size is 64 MB, typically 128 MB or 256 MB are found in production systems. For more, see&nbsp;<a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/php-requirements#s-memory-requirements\">PHP memory requirements<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Be aware of the&nbsp;<a href=\"https:\/\/www.drupal.org\/docs\/8\/system-requirements\/limitations-of-32-bit-php\">limitations of 32-bit PHP<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"s-php\"><a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/overview#s-php\"><\/a>PHP<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>PHP version:<\/strong>&nbsp;<a href=\"https:\/\/www.drupal.org\/node\/3264830\">Drupal 10 requires at least PHP 8.1<\/a>.&nbsp;<a href=\"https:\/\/www.drupal.org\/node\/3295061\">PHP 8.1.6 is recommended.<\/a><\/li>\n\n\n\n<li><strong>PHP extensions needed:&nbsp;<\/strong><a href=\"https:\/\/www.drupal.org\/docs\/system-requirements\/php-requirements#extensions\">PDO, XML, GD-library, OpenSSL, JSON, cURL, Mbstring<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">More details about&nbsp;<a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/php-requirements\">PHP requirements<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"s-disk-space\"><a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/overview#s-disk-space\"><\/a>Disk space<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Minimum&nbsp;<a href=\"https:\/\/www.drupal.org\/docs\/user_guide\/en\/install-requirements.html#s-disk-space\">100MB<\/a>. You will need more space if you install additional modules or themes, and you\u2019ll also need space for media, backups, and other files generated by and uploaded to your site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reference &#8211; <a href=\"https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/overview\">https:\/\/www.drupal.org\/docs\/getting-started\/system-requirements\/overview<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Directory strcuture of drupal with explanation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Core Directory Structure<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>core\/<\/strong>: Contains all the files that provide the basic functionality of Drupal. This includes core modules, themes, and libraries. It&#8217;s a vital part of Drupal and should not be modified directly.<\/li>\n\n\n\n<li><strong>modules\/<\/strong>: This directory is for custom and contributed modules that extend Drupal&#8217;s functionality. While core modules reside within the <code>core\/<\/code> directory, custom and contributed modules should be placed here to keep them separate from core code.<\/li>\n\n\n\n<li><strong>themes\/<\/strong>: Similar to the <code>modules\/<\/code> directory, this is where you place custom and contributed themes. Themes control the look and feel of your Drupal site. The core themes are located in the <code>core\/themes\/<\/code> directory.<\/li>\n\n\n\n<li><strong>profiles\/<\/strong>: Contains installation profiles, which define a set of modules, themes, and configurations to apply during the installation process. Custom and contributed profiles go here, while core profiles are located in <code>core\/profiles\/<\/code>.<\/li>\n\n\n\n<li><strong>sites\/<\/strong>: This is a crucial directory for multisite configurations. It contains configuration files, as well as site-specific modules and themes. The most important subdirectories and files include:\n<ul class=\"wp-block-list\">\n<li><strong>sites\/default\/<\/strong>: The default directory used by Drupal if no other site matches. It contains the default <code>settings.php<\/code> and <code>services.yml<\/code> files, which can be edited to configure the site.<\/li>\n\n\n\n<li><strong>sites\/example.sites.php<\/strong>: An example file showing how to set up multisite configurations.<\/li>\n\n\n\n<li><strong>sites\/all\/<\/strong>: (Deprecated in Drupal 8 and later) Previously used to place modules and themes available to all sites in a multisite installation.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>vendor\/<\/strong>: Contains PHP libraries that Drupal depends on, including components like Symfony and Twig. This directory is managed by Composer, a dependency management tool for PHP.<\/li>\n\n\n\n<li><strong>files\/<\/strong>: Typically found within the <code>sites\/default\/<\/code> directory (e.g., <code>sites\/default\/files\/<\/code>), this is where Drupal stores uploaded files and other site-specific files that are created during its operation.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Other Important Files and Directories<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>.htaccess<\/strong>: A configuration file for use on web servers running the Apache Web Server software. It includes settings that improve Drupal&#8217;s security and handling of URLs.<\/li>\n\n\n\n<li><strong>robots.txt<\/strong>: Provides instructions to web crawlers about which areas of the site should not be processed or scanned.<\/li>\n\n\n\n<li><strong>index.php<\/strong>: The main entry point for all requests to a Drupal site. It bootstraps Drupal and serves the requested page.<\/li>\n\n\n\n<li><strong>composer.json<\/strong> and <strong>composer.lock<\/strong>: These files are used by Composer to manage PHP dependencies. They define the required PHP libraries and their versions.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step by Step installation instructiions to install Drupal in Xampp in Linux<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">DOWNLOAD &#8211; <a href=\"https:\/\/www.apachefriends.org\/download.html\">https:\/\/www.apachefriends.org\/download.html<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installing Drupal on XAMPP in Linux involves a series of steps to set up your local environment for Drupal development. XAMPP provides an easy-to-use Apache, MariaDB (MySQL), PHP, and Perl environment. Follow these steps to get Drupal running:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Install XAMPP<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Download XAMPP for Linux<\/strong> from the official <a>Apache Friends website<\/a>.<\/li>\n\n\n\n<li>Open a terminal and navigate to the download location.<\/li>\n\n\n\n<li>Make the installer executable with the command:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"907\" height=\"332\" src=\"https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image.png\" alt=\"\" class=\"wp-image-784\" srcset=\"https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image.png 907w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-300x110.png 300w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-768x281.png 768w\" sizes=\"auto, (max-width: 907px) 100vw, 907px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Start XAMPP<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Start XAMPP with:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"202\" src=\"https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-1.png\" alt=\"\" class=\"wp-image-785\" style=\"width:879px;height:auto\" srcset=\"https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-1.png 897w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-1-300x68.png 300w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-1-768x173.png 768w\" sizes=\"auto, (max-width: 897px) 100vw, 897px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Create a Database for Drupal<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open phpMyAdmin in your browser by visiting <a>http:\/\/localhost\/phpmyadmin<\/a>.<\/li>\n\n\n\n<li>Create a new database for Drupal (e.g., &#8220;drupal_db&#8221;).<\/li>\n\n\n\n<li>Note the database name, and create a database user and password for Drupal, or you can use the root user for local development.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Download Drupal<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Download the latest version of Drupal from the official <a>Drupal website<\/a>.<\/li>\n\n\n\n<li>Extract the Drupal archive. This can be done via the terminal or a graphical file manager. If using a terminal, navigate to the download directory and use:<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"927\" height=\"325\" src=\"https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-2.png\" alt=\"\" class=\"wp-image-786\" srcset=\"https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-2.png 927w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-2-300x105.png 300w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-2-768x269.png 768w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Complete the Installation<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Once the installation is complete, Drupal will redirect you to your new site.<\/li>\n\n\n\n<li>For security, verify that the <code>.htaccess<\/code> file is in place in your Drupal directory to protect sensitive files.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"549\" src=\"https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-3-1024x549.png\" alt=\"\" class=\"wp-image-787\" srcset=\"https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-3-1024x549.png 1024w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-3-300x161.png 300w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-3-768x412.png 768w, https:\/\/www.cmsgalaxy.com\/blog\/wp-content\/uploads\/2024\/03\/image-3.png 1121w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Drupal is a powerful and flexible open-source content management system (CMS) that powers websites and applications. It&#8217;s known for its<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[790],"tags":[],"class_list":["post-783","post","type-post","status-publish","format-standard","hentry","category-drupal"],"_links":{"self":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/comments?post=783"}],"version-history":[{"count":1,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/783\/revisions"}],"predecessor-version":[{"id":788,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/posts\/783\/revisions\/788"}],"wp:attachment":[{"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/media?parent=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/categories?post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cmsgalaxy.com\/blog\/wp-json\/wp\/v2\/tags?post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}