{"id":652,"date":"2016-09-30T00:00:00","date_gmt":"2016-09-30T00:00:00","guid":{"rendered":"http:\/\/blog.hostinger.io\/hostinger-tutorials\/uncategorized\/magentohow-to-install-magento-2-manually\/"},"modified":"2026-03-10T09:31:29","modified_gmt":"2026-03-10T09:31:29","slug":"how-to-install-magento","status":"publish","type":"post","link":"\/ca\/tutorials\/how-to-install-magento","title":{"rendered":"How to install Magento 2 automatically and manually"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Known as a powerful open-source eCommerce platform, Magento 2 offers flexibility and extensive features to drive success for online stores. However, installing Magento 2 can be quite challenging for some users due to its rather tricky technical demands.<\/p><p>In this article, you&rsquo;ll learn how to install Magento 2 on a Linux VPS, both through a VPS template and a manual approach. By practicing our clear and easy-to-follow Magento 2 installation guide, you&rsquo;ll be one step closer to launching your online store.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/SSH-Cheat-Sheet-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download ultimate SSH commands cheat sheet<\/a><\/p><p>\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-prerequisites\">Prerequisites<\/h2><p>Before setting up Magento 2 on a Linux server, it&rsquo;s essential to have a few key components ready, such as:<\/p><ul class=\"wp-block-list\">\n<li><strong>VPS plan<\/strong>. A robust Linux-based VPS is crucial as it provides the environment needed for running resource-intensive applications like Magento. This VPS will host your web server and Magento installation, as well as store your online store&rsquo;s files.<\/li>\n\n\n\n<li><strong>Domain<\/strong>. <a href=\"\/ca\/tutorials\/dns\/how-to-point-domain-to-vps\">Connecting a domain name to your VPS<\/a> before installation helps in later stages, such as configuring the Apache server and setting the base URL in Magento. It ensures your store is accessible under your chosen web address right from the start.<\/li>\n\n\n\n<li><strong>Adobe Commerce account<\/strong>. To install Magento via Composer, you&rsquo;ll need an Adobe Commerce account to generate a set of public and private keys. These keys are essential for authenticating and downloading the Magento software package.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-how-to-install-magento-2-automatically-using-a-vps-template\">How to Install Magento 2 Automatically Using a VPS Template<\/h2><p>Installing Magento 2 via Hostinger&rsquo;s VPS template is the easiest way to build your online store. Available on all our VPS plans, this method simplifies the entire setup process by including all necessary software and configurations right from the start. For more details, visit our <a href=\"\/ca\/vps\/magento-hosting\">Magento Hosting<\/a> page.<\/p><p><div class=\"protip\">\n                    <h4 class=\"title\">Checking Magento compatibility<\/h4>\n                    <p>If you use Hostinger VPS, you can ask Kodee AI assistant to check if your server is compatible and meets the Magento template minimum requirement.<\/p>\n                <\/div>\n\n\n\n<\/p><p>Follow these steps to install the Magento 2 template on Hostinger&rsquo;s VPS:<\/p><ol class=\"wp-block-list\">\n<li>Log into your Hostinger account and navigate to the VPS dashboard.<\/li>\n\n\n\n<li>From the dashboard&rsquo;s left sidebar, go to <strong>Settings &rarr; OS &amp; Panel &rarr; Operating System<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e20ac2153c6\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"513\" height=\"1024\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-vps-operating-system-highlighted-513x1024.png\" alt=\"Accessing the Operating System menu on hPanel\" class=\"wp-image-109126\"  sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>In the <strong>Change OS<\/strong> section, select <strong>Application<\/strong>.<\/li>\n\n\n\n<li>Choose <strong>Magento 2<\/strong> <strong>on Ubuntu <\/strong>and click the <strong>Change OS<\/strong> button.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e20ac21792b\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"565\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2016\/09\/magento-on-ubuntu-1024x565.png\" alt=\"Choosing Magento 2 on Ubuntu 24.04 with the Change OS feature in Hostinger's VPS panel\" class=\"wp-image-125734\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>A pop-up window will appear. Check the <strong>acknowledgment box<\/strong> and click <strong>Confirm<\/strong>.<\/li>\n\n\n\n<li>Create a new password for the Magento admin panel and select <strong>Confirm<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e20ac2195a7\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"721\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-vps-change-your-operating-system-create-panel-password-1024x721.png\" alt=\"Creating a new password for Magento 2 on hPanel\" class=\"wp-image-109128\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Wait for the installation process to finish. It shouldn&rsquo;t take more than <strong>10 minutes<\/strong>. Once done, go to <strong>Overview &rarr; Application access <\/strong>and click the login URL provided to open Magento 2&rsquo;s dashboard.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e20ac21bb6a\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"485\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/hpanel-vps-overview-application-access-login-url-highlighted-1024x485.png\" alt=\"Accessing the Magento 2 login URL on hPanel\" class=\"wp-image-109130\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>After successfully logging in to the admin panel, you can follow our <a href=\"\/ca\/tutorials\/magento-2-tutorial\">Magento 2 tutorial<\/a>, which covers setting up basic information, customizing your online store&rsquo;s design, adding products to your site, and utilizing Magento&rsquo;s advanced features.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ca\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner-1024x300.png\" alt=\"\" class=\"wp-image-77934\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-how-to-manually-install-magento-2\">How to Manually Install Magento 2<\/h2><p>This section will guide you through setting up Magento 2 manually on an <strong>Ubuntu 24.04<\/strong> distribution using <a href=\"\/ca\/tutorials\/linux-commands\">Linux commands<\/a>. If you use other distributions, such as CentOS, the commands may differ slightly.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-update-linux-packages\">1. Update Linux Packages<\/h3><p>Before installing Magento on Linux, it&rsquo;s essential to update your VPS packages. This step ensures compatibility with Magento requirements and enhances your server&rsquo;s security and performance.<\/p><p>Follow these steps to update your Linux VPS packages:<\/p><ol class=\"wp-block-list\">\n<li>Open an <a href=\"\/ca\/tutorials\/how-to-use-putty-ssh\">SSH client like PuTTY<\/a> or other terminal software to access your server. Run the following command, replacing <strong>username<\/strong> and <strong>ip_address<\/strong> with your actual credentials:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">ssh username@ip_address<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Update the package list available for upgrade:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt update<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Upgrade the packages to their latest versions:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt upgrade -y<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Remove any unnecessary packages or dependencies that were installed during the upgrade:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt autoremove<\/pre><h3 class=\"wp-block-heading\" id=\"h-2-install-and-configure-apache\">2. Install and Configure Apache<\/h3><p>After your system is updated, the next step is to install the <a href=\"\/ca\/tutorials\/what-is-apache\">Apache web server<\/a> to host your Magento store. You&rsquo;ll also configure it to start automatically and set up a virtual host for Magento.<\/p><p>Here are the instructions:<\/p><ol class=\"wp-block-list\">\n<li>Install the Apache web server by running:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt install apache2 -y<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Enable Apache to start automatically on system boot:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo systemctl enable apache2.service<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Create a virtual host file for Magento named <strong>magento2.conf<\/strong> with the <a href=\"\/ca\/tutorials\/how-to-install-and-use-nano-text-editor\">nano editor<\/a>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo nano \/etc\/apache2\/sites-available\/magento2.conf<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Copy and paste the following lines into the file, replacing <strong>yourdomain.com<\/strong> with your actual domain name:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;<br><br>ServerAdmin webmaster@localhost<br><br>DocumentRoot \/var\/www\/html<br><br>ErrorLog ${APACHE_LOG_DIR}\/error.log<br><br>CustomLog ${APACHE_LOG_DIR}\/access.log combined<br><br>&lt;\/VirtualHost&gt;<br><br>&lt;VirtualHost *:80&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;ServerName yourdomain.com<br><br>&nbsp;&nbsp;&nbsp;&nbsp;DocumentRoot \/var\/www\/html\/magento2\/pub<br><br>&lt;\/VirtualHost&gt;<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Save your changes and exit <strong>nano<\/strong> by pressing <strong>Ctrl + X &rarr; Y &rarr; Enter<\/strong>.<\/li>\n\n\n\n<li>Activate the new site configuration for the web server group:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo a2ensite magento2.conf<br><br>sudo systemctl restart apache2.service<\/pre><ol start=\"7\" class=\"wp-block-list\">\n<li>Enable necessary Apache modules for Magento to function properly:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo a2enmod rewrite<br><br>sudo a2enmod headers<br><br>sudo systemctl restart apache2.service<\/pre><h3 class=\"wp-block-heading\" id=\"h-3-install-mariadb-and-create-a-database\">3. Install MariaDB and Create a Database<\/h3><p>Now, it&rsquo;s time to install a database management system (DBMS) and create a database for your Magento store. Here, we&rsquo;re going for <a href=\"\/ca\/tutorials\/mariadb-vs-mysql\">MariaDB instead of MySQL<\/a> due to its better performance and adaptation to Magento&rsquo;s high demands.<\/p><p>Below are the steps for installing MariaDB and creating a database:<\/p><ol class=\"wp-block-list\">\n<li>Install MariaDB on your Linux VPS by running:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt install mariadb-server mariadb-client -y<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Make sure MariaDB starts and operates when you reboot the server:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo systemctl restart mariadb.service<br><br>sudo systemctl enable mariadb.service<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Run the following security script:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo mysql_secure_installation<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>When prompted, answer by choosing the following options:<\/li>\n<\/ol><ul class=\"wp-block-list\">\n<li>Enter current password for root (enter for none) &ndash; press <strong>Enter<\/strong><\/li>\n\n\n\n<li>Switch to unix_socket authentication [Y\/n] &ndash; <strong>n<\/strong><\/li>\n\n\n\n<li>Set root password? [Y\/n] &ndash; <strong>Y<\/strong><\/li>\n\n\n\n<li>New password &ndash; type your password<\/li>\n\n\n\n<li>Re-enter new password &ndash; confirm your password<\/li>\n\n\n\n<li>Remove anonymous users? [Y\/n] &ndash; <strong>Y<\/strong><\/li>\n\n\n\n<li>Disallow root login remotely? [Y\/n] &ndash; <strong>Y<\/strong><\/li>\n\n\n\n<li>Remove test database and access to it? [Y\/n] &ndash; <strong>Y<\/strong><\/li>\n\n\n\n<li>Reload privilege tables now? [Y\/n] &ndash; <strong>Y<\/strong>&nbsp;<\/li>\n<\/ul><ol start=\"5\" class=\"wp-block-list\">\n<li>Log into MariaDB with the root user:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo mysql -u root -p<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>Create a new database for Magento:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">CREATE DATABASE magento_db;<\/pre><ol start=\"7\" class=\"wp-block-list\">\n<li>Create a new user for the database. Replace <strong>magento_user<\/strong> with your desired username and <strong>your_password<\/strong> with a strong password:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">CREATE USER magento_user@localhost IDENTIFIED BY your password;<\/pre><ol start=\"8\" class=\"wp-block-list\">\n<li>Grant privileges to the new user:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">GRANT ALL ON magento_db.* TO magento_user@localhost IDENTIFIED BY your password WITH GRANT OPTION;<\/pre><ol start=\"9\" class=\"wp-block-list\">\n<li>Flush privileges and exit MariaDB:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">FLUSH PRIVILEGES;<br><br>EXIT;<\/pre><h3 class=\"wp-block-heading\" id=\"h-4-install-php-and-extensions\">4. Install PHP and Extensions<\/h3><p>Let&rsquo;s move on to the fourth step, installing PHP and its required extensions. PHP is the core scripting language that Magento runs on, and properly configuring it is crucial for optimal performance.<\/p><p>Follow this guide:<\/p><ol class=\"wp-block-list\">\n<li>Install PHP along with common extensions that Magento uses by running:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt install php8.1 libapache2-mod-php8.1 php8.1-common php8.1-gmp php8.1-curl php8.1-soap php8.1-bcmath php8.1-intl php8.1-mbstring php8.1-xmlrpc php8.1-mysql php8.1-gd php8.1-xml php8.1-cli php8.1-zip -y<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Magento 2 requires higher system resource limits to run efficiently. Edit the PHP configuration file with this command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo nano \/etc\/php\/8.1\/apache2\/php.ini<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Find these lines with <strong>Ctrl + W <\/strong>and change their values:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">file_uploads = On<br><br>allow_url_fopen = On<br><br>short_open_tag = On<br><br>memory_limit = 512M<br><br>upload_max_filesize = 128M<br><br>max_execution_time = 3600<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Save and exit the editor, then restart Apache to use the updated PHP configuration:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo systemctl restart apache2.service<\/pre><h3 class=\"wp-block-heading\" id=\"h-5-install-elasticsearch\">5. Install Elasticsearch<\/h3><p>Magento 2 requires a powerful search engine for handling complex product searches and catalog management efficiently. Therefore, you need to install Elasticsearch, which provides fast and accurate search results for your online store.<\/p><p>To install Elasticsearch, follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Import the Elasticsearch GPG key by executing:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">wget -qO - https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo gpg --dearmor -o \/usr\/share\/keyrings\/elasticsearch-keyring.gpg<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Add the Elasticsearch repository to your system with the following:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">echo \"deb [signed-by=\/usr\/share\/keyrings\/elasticsearch-keyring.gpg] https:\/\/artifacts.elastic.co\/packages\/8.x\/apt stable main\" | sudo tee \/etc\/apt\/sources.list.d\/elastic-8.x.list<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Update the package database to ensure it includes the latest Elasticsearch package:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt update<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Install Elasticsearch using:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt install elasticsearch<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Start and enable the Elasticsearch service on boot:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo systemctl start elasticsearch.service<br><br>sudo systemctl enable elasticsearch.service<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>Open the <strong>elasticsearch.yml<\/strong> file for editing:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo nano \/etc\/elasticsearch\/elasticsearch.yml<\/pre><ol start=\"7\" class=\"wp-block-list\">\n<li>Replace this line&rsquo;s value with <strong>false<\/strong> to turn off Magento security features:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">xpack.security.enabled: false<\/pre><ol start=\"8\" class=\"wp-block-list\">\n<li>Save your changes and restart the Elasticsearch service:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">systemctl restart elasticsearch.service<\/pre><ol start=\"9\" class=\"wp-block-list\">\n<li>Verify that Elasticsearch runs correctly using the <a href=\"\/ca\/tutorials\/curl-command-with-examples-linux\">curl command<\/a>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">curl -X GET \"localhost:9200\/\"<\/pre><p>Here&rsquo;s the output you should see:<\/p><pre class=\"wp-block-preformatted\">{<br><br>&nbsp;&nbsp;\"name\": \"srv123456\",<br><br>&nbsp;&nbsp;\"cluster_name\": \"elasticsearch\",<br><br>&nbsp;&nbsp;\"cluster_uuid\" : \"gVGFaOTqRSa6HvNz1PX28g\",<br><br>&nbsp;&nbsp;\"version\": {<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"number\": \"7.17.20\",<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"build_flavor\": \"default\",<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"build_type\": \"deb\",<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"build_hash\" : \"b26557f585b7d95c71a5549e571a6bcd2667697d\",<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"build_date\" : \"2025-01-08T08:34:31.070382898Z\",<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"build_snapshot\": false,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"lucene_version\" : \"8.11.3\",<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"minimum_wire_compatibility_version\" : \"6.8.0\",<br><br>&nbsp;&nbsp;&nbsp;&nbsp;\"minimum_index_compatibility_version\" : \"6.0.0-beta1\"<br><br>&nbsp;&nbsp;},<br><br>&nbsp;&nbsp;\"tagline\": \"You Know, for Search\"<br><br>}<\/pre><h3 class=\"wp-block-heading\" id=\"h-6-download-and-install-composer\">6. Download and Install Composer<\/h3><p>The next crucial step is to <a href=\"\/ca\/tutorials\/how-to-install-composer\">install Composer<\/a> on your VPS. Composer is a dependency manager for PHP that Magento 2 uses to manage both official and third-party libraries and their packages.<\/p><p>Follow these steps to download and install Composer:<\/p><ol class=\"wp-block-list\">\n<li>Execute this command to download the Composer setup script:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">curl -sS https:\/\/getcomposer.org\/installer | php<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Move the Composer executable to a global directory accessible from any location on your system:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo mv composer.phar \/usr\/local\/bin\/composer<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Check that Composer has been installed correctly by running:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">composer --version<\/pre><p>This command should display the installed Composer version. For example:<\/p><pre class=\"wp-block-preformatted\">______<br><br>&nbsp;&nbsp;\/ ____\/___ ____ ___ ____ ____ ________ _____<br><br>&nbsp;\/ \/ \/ __ \/ __ `__ \/ __ \/ __ \/ ___\/ _ \/ ___\/<br><br>\/ \/___\/ \/_\/ \/ \/ \/ \/ \/ \/ \/_\/ \/ \/_\/ (__ ) __\/ \/&nbsp;&nbsp;&nbsp;&nbsp;<br><br>____\/____\/_\/ \/_\/ \/_\/ .___\/____\/____\/___\/_\/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/_\/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br>Composer version 2.7.2 2024-03-11 17:12:18<\/pre><h3 class=\"wp-block-heading\" id=\"h-7-run-the-magento-installation-script\">7. Run the Magento Installation Script<\/h3><p>With Composer set up and all prerequisites in place, you are now ready to run the Magento installation command. This will configure your Magento store, link it to the necessary database, and set up the admin account.<\/p><p>Here are the steps to install Magento 2:<\/p><ol class=\"wp-block-list\">\n<li>Open your web browser and log in to your <a href=\"https:\/\/commercemarketplace.adobe.com\" target=\"_blank\" rel=\"noopener\">Adobe Commerce<\/a> account. Then, navigate to <strong>My Profile &rarr; Access Keys<\/strong> to find your authentication keys.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e20ac221d40\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"408\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/adobe-commerce-access-keys-public-key-private-key-highlighted-1024x408.png\" alt=\"Finding the public and private key on the Adobe Commerce site\" class=\"wp-image-109131\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Return to your terminal window and run this command to download Magento into the <strong>\/var\/www\/html\/magento2<\/strong> directory:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">composer create-project --repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition \/var\/www\/html\/magento2<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>When prompted, use your public key as the username and private key as the password.<\/li>\n\n\n\n<li>Navigate to the Magento installation system path:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">cd \/var\/www\/html\/magento2<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Set the correct ownership and permissions to read and write Magento files:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo chown -R www-data:www-data \/var\/www\/html\/magento2\/<br><br>sudo chmod -R 755 \/var\/www\/html\/magento2\/<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>Run the Magento setup script with the required parameters. Replace placeholders with your actual details:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">php bin\/magento setup:install <br><br>&nbsp;&nbsp;--base-url=http:\/\/yourdomain.com <br><br>&nbsp;&nbsp;--db-host=localhost <br><br>&nbsp;&nbsp;--db-name=magento_db <br><br>&nbsp;&nbsp;--db-user=magento_user <br><br>&nbsp;&nbsp;--db-password=your_password <br><br>&nbsp;&nbsp;--admin-firstname=Admin <br><br>&nbsp;&nbsp;--admin-lastname=User <br><br>&nbsp;&nbsp;--admin-email=admin@example.com <br><br>&nbsp;&nbsp;--admin-user=adminuser <br><br>&nbsp;&nbsp;--admin-password=admin123 <br><br>&nbsp;&nbsp;--language=en_US <br><br>&nbsp;&nbsp;--currency=USD <br><br>&nbsp;&nbsp;--timezone=America\/New_York <br><br>&nbsp;&nbsp;--use-rewrites=1<\/pre><ol start=\"7\" class=\"wp-block-list\">\n<li>Access your Magento admin address in the browser, for example, <strong>http:\/\/yourdomain.com\/admin<\/strong>. You should be able to log in with the admin credentials you set during the installation.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e20ac2267c6\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"856\" height=\"1024\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/05\/magento-2-admin-login-page-856x1024.png\" alt=\"Opening the Magento 2 admin login page\" class=\"wp-image-109132\"  sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Congratulations, you&rsquo;ve successfully installed Magento 2 on your VPS hosting environment using the command-line operation. However, if you can&rsquo;t access the Magento server after installation, scroll down to the troubleshooting section.<\/p><h2 class=\"wp-block-heading\" id=\"h-troubleshooting-the-magento-2-admin-404-error\">Troubleshooting the Magento 2 Admin 404 Error<\/h2><p>One of the most common post-installation issues of Magento 2 is facing a 404 error on the admin page. This error indicates problems with file permissions or web server configurations. Here are several troubleshooting methods to resolve this issue:<\/p><p><strong>Correct File Permissions<\/strong><\/p><p>Ensure that the <strong>var<\/strong>, <strong>pub<\/strong>, and <strong>generated<\/strong> directories have the proper permissions.<\/p><ol class=\"wp-block-list\">\n<li>Navigate to the Magento root folder by typing:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">cd \/var\/www\/html\/magento2<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Set the correct permissions for the Magento file system owner:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">chmod -R 777 var pub generated<\/pre><p><strong>Replace .htaccess Files<\/strong><\/p><p>Sometimes, <strong>.htaccess<\/strong> files may be corrupt or improperly generated. Therefore, you need to remove and recreate the <strong>.htaccess<\/strong> files in the Magento root and <strong>pub<\/strong> directories.<\/p><ol class=\"wp-block-list\">\n<li>Ensure you&rsquo;re in the Magento folder, then delete the <strong>.htaccess<\/strong> file with the <a href=\"\/ca\/tutorials\/how-to-remove-files-and-folders-using-linux-command-line\">rm command<\/a>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">rm .htaccess<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Create a new <strong>.htaccess<\/strong> file with this command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo nano .htaccess<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Paste the following content into the file, then save your changes:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">RewriteEngine on<br><br>RewriteCond %{REQUEST_URI} !^\/pub\/<br><br>RewriteCond %{REQUEST_URI} !^\/setup\/<br><br>RewriteCond %{REQUEST_URI} !^\/update\/<br><br>RewriteCond %{REQUEST_URI} !^\/dev\/<br><br>RewriteRule .* \/pub\/$0 [L]<br><br>DirectoryIndex index.php<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Navigate to the <strong>pub<\/strong> directory:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">cd pub<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Repeat the same process for the <strong>.htaccess<\/strong> file here.<\/li>\n<\/ol><p><strong>Allow Override in Apache Configuration<\/strong><\/p><p>The Apache configuration must allow overrides for <strong>.htaccess<\/strong> files to function properly.<\/p><ol class=\"wp-block-list\">\n<li>Edit the Apache configuration file:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo nano \/etc\/apache2\/apache2.conf<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Find the <strong>&lt;Directory \/var\/www\/&gt;<\/strong> section and ensure <strong>AllowOverride<\/strong> is set to <strong>All<\/strong>. It should look like this:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">&lt;Directory \/var\/www\/&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Options Indexes FollowSymLinks<br><br>&nbsp;&nbsp;&nbsp;&nbsp;AllowOverride All<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Require all granted<br><br>&lt;\/Directory&gt;<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Save your changes and restart Apache to apply the latest configuration:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo systemctl restart apache2<\/pre><p><strong>Run Magento Commands<\/strong><\/p><p>Sometimes, running specific Magento commands can resolve residual configuration issues.<\/p><ol class=\"wp-block-list\">\n<li>Clear the cache by executing:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">php bin\/magento cache:clean<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>To deploy static content, run the following command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">php bin\/magento setup:static-content:deploy<\/pre><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>In this article, you&rsquo;ve learned how to install Magento 2 on a Linux VPS using both automated and manual approaches. Regardless of the method you settled on, you&rsquo;re now equipped to start your online store with the Magento open-source platform.<\/p><p>Keep learning and exploring Magento 2 further to enhance your online store&rsquo;s functionality and customer experience. Your next steps could redefine your eCommerce success.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-magento-faq\">How to Install Magento FAQ<\/h2><p>This section will answer the most common questions on how to install and configure Magento 2.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1715096981428\"><h3 class=\"schema-faq-question\">Can I Install Magento 2 on a Shared Hosting Plan?<\/h3> <p class=\"schema-faq-answer\">While it&rsquo;s technically possible to install Magento 2 on shared web hosting, the platform&rsquo;s resource-intensive nature makes a VPS or dedicated server preferable for optimal performance.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1715096989224\"><h3 class=\"schema-faq-question\">How Long Does It Take to Install Magento 2 With the VPS Template?<\/h3> <p class=\"schema-faq-answer\">The Magento installation process using Hostinger&rsquo;s VPS template typically takes about <strong>10 minutes<\/strong>. This quick setup time includes loading the <strong>Ubuntu 24.04 OS<\/strong> with pre-configured Magento settings.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1715096994040\"><h3 class=\"schema-faq-question\">Do I Need to Get an SSL Certificate for Magento 2?<\/h3> <p class=\"schema-faq-answer\">Yes, you should get an SSL certificate for Magento 2. It secures data transactions, protects user information, and boosts customer trust, which is critical for maintaining a secure and reliable shopping experience.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Known as a powerful open-source eCommerce platform, Magento 2 offers flexibility and extensive features to drive success for online stores. However, installing Magento 2 can be quite challenging for some users due to its rather tricky technical demands. In this article, you&rsquo;ll learn how to install Magento 2 on a Linux VPS, both through a [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/how-to-install-magento\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":411,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Install Magento 2","rank_math_description":"Want an easy Magento 2 installation guide? Check out how to install it using the Hostinger VPS template and manually using Composer.","rank_math_focus_keyword":"how to install magento","footnotes":""},"categories":[22701,22699],"tags":[],"class_list":["post-652","post","type-post","status-publish","format-standard","hentry","category-pre-installed-applications","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-install-magento","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-installer-magento","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-instalar-magento","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-install-magento","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-install-magento","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-install-magento","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-instalar-magento","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-instalar-magento","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-instalar-magento","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-install-magento","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-install-magento","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-install-magento","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-install-magento","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/411"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=652"}],"version-history":[{"count":34,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/652\/revisions"}],"predecessor-version":[{"id":140151,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/652\/revisions\/140151"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}