<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MariaDB Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/mariadb/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/mariadb/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Sat, 11 May 2024 16:21:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>MariaDB Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/mariadb/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Laravel on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-laravel-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-laravel-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Wed, 28 Feb 2024 16:00:38 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1707</guid>

					<description><![CDATA[<p>Laravel is a free, open-source PHP web application framework used for web development. It follows the Model-View-Controller (MVC) architectural pattern and provides an elegant syntax...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-laravel-on-debian-12/">How to Install Laravel on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Laravel is a free, open-source PHP web application framework used for web development. It follows the Model-View-Controller (MVC) architectural pattern and provides an elegant syntax and tools for tasks such as routing, templating, authentication, and more. Laravel aims to make web development tasks more enjoyable and efficient by providing a clean and expressive syntax, along with a set of conventions and tools for common tasks.</p>
<p>Laravel has gained popularity in the PHP development community due to its elegant syntax, developer-friendly features, and active community. It is widely used for building web applications, APIs, and various other web-based projects.</p>
<p>In this tutorial, we will show you how to install Laravel on Debian 12 OS with Nginx web server and MariaDB database server.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>The first step is to ensure that your system is up-to-date. You can do this by running the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Also, install necessary packages.</p>
<pre><code translate="no"># apt install sudo nano wget unzip zip</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx Web Server</span></h2>
<p>To install Nginx web server, run the following command:</p>
<pre><code># apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start nginx
# systemctl enable nginx</code></pre>
<p>Verify the status of the Nginx service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP and PHP extensions</span></h2>
<p>To install PHP and additional PHP modules to support Laravel, run the following command:</p>
<pre><code># apt install php php-cli php-common php-json php-gmp php-fpm php-xmlrpc php-bcmath php-imagick php-curl php-zip php-gd php-mysql php-xml php-mbstring php-xmlrpc php-intl</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code># php -v</code></pre>
<pre><code><strong>Output:</strong>
PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies
</code></pre>
<p>After installing all the packages, edit the php.ini file:</p>
<pre><code># nano /etc/php/8.2/fpm/php.ini</code></pre>
<p>Change the following settings per your requirements:</p>
<pre><code>max_execution_time = 300
memory_limit = 512M
post_max_size = 128M
upload_max_filesize = 128M
date.timezone = America/Chicago</code></pre>
<p>To implement the changes, restart the <code>php-fpm</code> service:</p>
<pre><code># systemctl restart php8.2-fpm</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p>You can <a href="https://www.linuxtuto.com/how-to-install-mariadb-10-7-on-debian-11/">install MariaDB</a> with the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Start the database server daemon, and also enable it to start automatically at the next boot with the following commands:</p>
<pre><code># systemctl start mariadb
# systemctl enable mariadb</code></pre>
<p>Once the database server is installed, log into the MariaDB prompt:</p>
<pre><code># mysql -u root</code></pre>
<p>To create a database, database user, and grant all privileges to the database user run the following commands:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE laravel_db;
MariaDB [(none)]&gt; CREATE USER 'laravel_user'@'localhost' IDENTIFIED BY 'Str0ngPa$$word';
MariaDB [(none)]&gt; GRANT ALL ON laravel_db.* TO 'laravel_user'@'localhost';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Install Composer dependency manager</span></h2>
<p>To install Composer, run the following commands:</p>
<pre><code># curl -sS https://getcomposer.org/installer | php
# mv composer.phar /usr/local/bin/composer</code></pre>
<p>Verify that Composer has been installed successfully by running the following command:</p>
<pre><code># composer --version
Composer version 2.5.8 2023-06-09 17:13:21</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Install Laravel </span></h2>
<p>Navigate to the <code>webroot</code> directory, type:</p>
<pre class="wp-block-preformatted"><code># cd /var/www/html</code></pre>
<p>Now, install Laravel using the composer command, type:</p>
<pre class="wp-block-preformatted"><code># composer create-project laravel/laravel laravelapp</code></pre>
<p>The command creates a new directory called <code>laravelapp</code> and installs all the files and directories for Laravel.</p>
<p>Change the ownership of the Laravel directory to the webserver user and also the permissions:</p>
<pre class="wp-block-preformatted"><code># chown -R www-data:www-data /var/www/html/laravelapp
# chmod -R 775 /var/www/html/laravelapp/storage</code></pre>
<p>Once the installation is done navigate to the installation directory and check the Laravel version:</p>
<pre><code># cd laravelapp</code></pre>
<pre><code># php artisan</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Configure Nginx Web Server for Laravel</span></h2>
<p>Navigate to <code>/etc/nginx/conf.d</code> directory and run the following command to create a configuration file:</p>
<pre><code class="hljs shell"><span class="bash"># nano /etc/nginx/conf.d/laravel.conf</span></code></pre>
<p>Add the following content:</p>
<pre><code>server {
    listen 80;
    listen [::]:80;
    server_name your-domain.com;
    root /var/www/html/laravelapp/public;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";

    index index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    error_page 404 /index.php;

    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }
}
</code></pre>
<p>Save the file and Exit.</p>
<p>Check Nginx syntax:</p>
<pre><code># /usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
</code></pre>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Access your Laravel Application</span></h2>
<p>Open your browser and type your domain e.g <strong>http://your-domain.com</strong></p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-1708" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12-900x508.webp" alt="Install Laravel on Debian 12" width="900" height="508" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12-900x508.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12-300x169.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12-768x433.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12-1536x866.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12-1222x689.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12-897x506.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12-684x386.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/laravel_debian12.webp 1915w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Laravel on Debian 12.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://laravel.com/docs" target="_blank" rel="noopener">the official Laravel documentation.</a></p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-laravel-on-debian-12/">How to Install Laravel on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-laravel-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1707</post-id>	</item>
		<item>
		<title>How to Install Dolibarr ERP on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-dolibarr-erp-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-dolibarr-erp-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Fri, 16 Feb 2024 12:30:03 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Dolibarr]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1686</guid>

					<description><![CDATA[<p>Dolibarr ERP is an open-source software suite designed to help businesses and organizations manage various aspects of their operations. It provides modules for a wide...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-dolibarr-erp-on-debian-12/">How to Install Dolibarr ERP on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Dolibarr ERP is an open-source software suite designed to help businesses and organizations manage various aspects of their operations. It provides modules for a wide range of business functions, making it a comprehensive solution for small and medium-sized enterprises (SMEs). Dolibarr is written in PHP and is often used as a web application, making it accessible from different devices with a web browser.</p>
<p>Dolibarr ERP is suitable for a variety of businesses, particularly those in the SME sector. It provides a cost-effective solution for managing key business processes and can be adapted to different industries and sectors. As an open-source solution, it offers flexibility and the ability to tailor the system to specific organizational needs.</p>
<p>In this tutorial, we will show you how to install Dolibarr ERP on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Also, install necessary packages.</p>
<pre><code translate="no"># apt install curl nano wget unzip zip</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache webserver</span></h2>
<p>You can install it via <strong>apt</strong> package manager by executing the following command.</p>
<pre><code># apt install apache2</code></pre>
<p>Verify the status of the <strong>Apache</strong> service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code>● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running)
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 13773 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 13777 (apache2)
      Tasks: 7 (limit: 2273)
     Memory: 37.4M
        CPU: 494ms
     CGroup: /system.slice/apache2.service
             ├─13777 /usr/sbin/apache2 -k start
             ├─13778 /usr/sbin/apache2 -k start
             ├─13779 /usr/sbin/apache2 -k start
             ├─13780 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and required extensions</span></h2>
<p>By default, Debian12 comes with PHP version 8.2. To install PHP and the necessary extensions, run the following command:</p>
<pre><code># apt install php libapache2-mod-php php-cli php-intl php-json php-common php-mbstring php-imap php-mysql php-zip php-gd php-mbstring php-curl php-xml</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies</code></pre>
<p>Then edit the <strong>php.ini</strong> file:</p>
<pre><code># nano /etc/php/8.2/apache2/php.ini</code></pre>
<p>Change the following settings:</p>
<pre><code>memory_limit = 512M
post_max_size = 32M
upload_max_filesize = 32M
date.timezone = America/Chicago
</code></pre>
<p>Restart the Apache service to apply the changes:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p><a href="https://www.linuxtuto.com/how-to-install-mariadb-10-7-on-debian-11/">To install MariaDB</a> run the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the MariaDB service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code>● mariadb.service - MariaDB 10.11.6 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 10002 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 9 (limit: 2273)
     Memory: 242.0M
        CPU: 1.918s
     CGroup: /system.slice/mariadb.service
             └─10002 /usr/sbin/mariadbd
</code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code># mysql -u root</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Dolibarr installation:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE dolibarr;
MariaDB [(none)]&gt; CREATE USER 'dolibarr'@'localhost' IDENTIFIED BY 'Str0ngPassw0rd';
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON dolibarr. * TO 'dolibarr'@'localhost';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Dolibarr</span></h2>
<p>The latest version of Dolibarr is available to <strong><a href="https://github.com/dolibarr/dolibarr/releases">download from GitHub</a></strong>. You can download it with the following command:</p>
<pre><code># wget https://github.com/Dolibarr/dolibarr/archive/refs/tags/19.0.0.zip</code></pre>
<p>Then extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip 19.0.0.zip -d /var/www/
# mkdir /var/www/dolibarr
# mv /var/www/dolibarr-19.0.0/htdocs/* /var/www/dolibarr
</code></pre>
<p>Then enable permission for the Apache webserver user to access the files:</p>
<pre><code># chown -R www-data:www-data /var/www/dolibarr/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache for Dolibarr</span></h2>
<p>To create a new VirtualHost file run the following commands:</p>
<pre><code># nano /etc/apache2/sites-available/dolibarr.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code> &lt;VirtualHost *:80&gt;
    ServerAdmin admin@your-domain.com
    DocumentRoot /var/www/dolibarr/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    &lt;Directory /var/www/dolibarr/&gt; 
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
    &lt;/Directory&gt; 

    ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
    CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined

 &lt;/VirtualHost&gt;</code></pre>
<p>Remember to replace <strong>your-domain.com</strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>To enable this site run the command:</p>
<pre><code># /usr/sbin/a2ensite dolibarr.conf</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access Dolibarr Web Interface</span></h2>
<p>To complete the setup go to your browser and visit <strong>http://your-domain.com.</strong></p>
<p><img decoding="async" class="aligncenter size-large wp-image-1688" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01-900x416.webp" alt="Solibarr ERP install page" width="900" height="416" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01-900x416.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01-1536x710.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01-1222x565.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01-897x415.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_01.webp 1917w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Select your language and click on the <strong>Next</strong> <strong>step</strong> button. You should see the following page:</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1689" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02-900x467.webp" alt="Dolibarr 19" width="900" height="467" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02-900x467.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02-300x156.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02-768x398.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02-1536x796.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02-1222x634.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02-897x465.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02-684x355.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_02.webp 1917w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Validate the PHP checks and click on the <strong>Start</strong> button. You should see the following page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1691" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03-900x444.webp" alt="Database setup" width="900" height="444" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03-900x444.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03-300x148.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03-768x379.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03-1536x758.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03-1222x603.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03-897x443.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03-684x338.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_03.webp 1921w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your database name, database username, password, admin username and password. Then, click on the <strong>Next step</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1692" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04-900x418.webp" alt="Dolibarr Configuration" width="900" height="418" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04-900x418.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04-768x357.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04-1536x713.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04-1222x568.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04-897x417.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04-684x318.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_04.webp 1912w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Installation successful, click on the <strong>Next</strong> <strong>step</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1693" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05-900x415.webp" alt="Dolibarr ERP" width="900" height="415" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05-900x415.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05-300x138.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05-768x354.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05-1536x708.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05-1222x563.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05-897x413.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05-684x315.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_05.webp 1917w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Click on the <strong>Next</strong> <strong>step</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1694" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06-900x416.webp" alt="Dolibarr Administrator Setup" width="900" height="416" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06-900x416.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06-1536x711.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06-1222x565.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06-897x415.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_06.webp 1915w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Set a new admin username and password. Then, click on the <strong>Next</strong> <strong>step</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1695" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07-900x417.webp" alt="Dolibarr 19 ERP" width="900" height="417" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07-900x417.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07-768x356.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07-1536x712.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07-1222x566.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07-897x416.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07-684x317.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_07.webp 1910w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Click on the <strong>Go to Dolibarr</strong> button and you should see the login page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1696" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08-900x418.webp" alt="Login Page" width="900" height="418" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08-900x418.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08-768x356.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08-1536x713.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08-1222x567.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08-897x416.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08-684x317.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_08.webp 1912w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your admin username and password. Then, click on the <strong>LOGIN</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1697" src="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09-900x507.webp" alt="Dolibarr Dashboard" width="900" height="507" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09-900x507.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09-300x169.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09-768x432.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09-1536x865.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09-1222x688.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09-897x505.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09-684x385.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/02/dolibarr19_09.webp 1910w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>To finalize the installation and remove the installation warnings on the dashboard, run the following commands:</p>
<pre><code># touch /var/www/dolibarr/documents/install.lock</code></pre>
<pre><code># chown root:root /var/www/dolibarr/conf/conf.php</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Dolibarr ERP on Debian 12.</p>
<p>For additional help or useful information, we recommend you to check <a href="https://www.dolibarr.org/documentation-home.php" target="_blank" rel="noopener">the official Dolibarr documentation</a>.</p>
<p>If you have any questions please leave a comment below.</p>
<div id="bshare-social" class="baby-sideshare share-content after-content icon show">
<div class="share_hide_show content_hide_show"></div>
</div>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-dolibarr-erp-on-debian-12/">How to Install Dolibarr ERP on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-dolibarr-erp-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1686</post-id>	</item>
		<item>
		<title>How to Install RainLoop on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 28 Dec 2023 13:30:11 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RainLoop]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1656</guid>

					<description><![CDATA[<p>RainLoop is an open-source web-based email client that allows users to access their email accounts through a web browser. It provides a user-friendly interface for...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/">How to Install RainLoop on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>RainLoop is an open-source web-based email client that allows users to access their email accounts through a web browser. It provides a user-friendly interface for managing emails, contacts, and other related tasks without the need for a dedicated email client like Outlook or Thunderbird.</p>
<p>It is designed to be lightweight, fast, and easy to install, making it a popular choice for those who want a simple webmail solution.</p>
<p>In this tutorial, we will show you how to install RainLoop on Debian 12 OS with Nginx web server and MariaDB database server..</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Also, install necessary packages.</p>
<pre><code translate="no"># apt install curl nano wget unzip zip</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx webserver</span></h2>
<p>You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install nginx</code></pre>
<p>Verify the status of the <strong>Nginx</strong> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP</span></h2>
<p>To install PHP and the necessary extensions, run the following command:</p>
<pre><code># apt install php php-cli php-fpm php-json php-common php-mysql php-zip php-imap php-mbstring php-curl php-xml</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.2.12 (cli) (built: Oct 27 2023 13:00:10) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.12, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.12, Copyright (c), by Zend Technologies
</code></pre>
<p>After installing all the packages, edit the php.ini file:</p>
<pre><code># nano /etc/php/8.2/fpm/php.ini</code></pre>
<p>Change the following settings per your requirements:</p>
<pre><code>max_execution_time = 300
memory_limit = 512M
post_max_size = 25M
upload_max_filesize = 25M</code></pre>
<p>To implement the changes, restart the <strong>php-fpm</strong> service:</p>
<pre><code># systemctl restart php8.2-fpm</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p>To install MariaDB run the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the MariaDB service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>By default, MariaDB is not hardened. You can secure MariaDB using the <code class=" prettyprinted"><span class="pln">mysql_secure_installation</span></code> script.</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Roundcube installation:</p>
<pre><code>mysql&gt; CREATE DATABASE rainloop;
mysql&gt; CREATE USER 'rainloopuser'@'localhost' IDENTIFIED BY 'Str0ngPa$$word';
mysql&gt; GRANT ALL PRIVILEGES ON rainloop . * TO 'rainloopuser'@'localhost';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; exit;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download RainLoop</span></h2>
<p>You can download the latest stable release version for RainLoop with the following command:</p>
<pre><code># https://www.rainloop.net/repository/webmail/rainloop-latest.zip</code></pre>
<p>After that, you will need to decompress the RainLoop archive:</p>
<pre><code># unzip rainloop-latest.zip -d /var/www/rainloop/</code></pre>
<p class="has-line-data">Make Nginx the owner of the <code>rainloop</code> folder and grant it sufficient permissions.</p>
<pre><code># chown -R www-data:www-data /var/www/rainloop
# chmod 755 -R /var/www/rainloop</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Nginx for RainLoop</span></h2>
<p>Then, create an virtual host configuration file:</p>
<pre><code># nano /etc/nginx/conf.d/rainloop.conf</code></pre>
<p>Add the following lines:</p>
<pre><code>server {

listen 80;

   server_name webmail.your-domain.com;
   root /var/www/rainloop;

   index index.php;

location / {
        try_files $uri $uri/ /index.php?$query_string;
   }

location ~ \.php$ {
        fastcgi_index index.php;
        fastcgi_split_path_info ^(.+\.php)(.*)$;
        fastcgi_keep_conn on;
        include fastcgi_params;
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

location ^~ /data {
        deny all;
    }

}
</code></pre>
<p>Save and exit the configuration file.</p>
<p>Check Nginx syntax:</p>
<pre><code># /usr/sbin/nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
</code></pre>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Install free Let’s Encrypt SSL certificate</span></h2>
<p>First we need to install the Certbot client which is used to <a href="https://www.linuxtuto.com/how-to-secure-nginx-with-lets-encrypt-on-ubuntu-22-04/">create Let’s Encrypt certificates</a>:</p>
<pre><code># apt install certbot python3-certbot-nginx</code></pre>
<p>To get the SSL certificate using the Certbot, type the command given below:</p>
<pre><code># certbot --nginx -d webmail.your-domain.com</code></pre>
<p>If the SSL certificate is successfully obtained, certbot displays a message to show the configuration was successful:</p>
<pre><code>IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/webmail.your-domain.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/webmail.your-domain.com/privkey.pem
   Your cert will expire on 2024-03-06. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le</code></pre>
<p>Now, you have successfully installed SSL on your website.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: RainLoop Setup and Configurations</span></h2>
<p>Now open your web browser and go to <code>https://webmail.your-domain.com/?admin</code> and you will see the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1657" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-900x416.webp" alt="RainLoop administrator login page" width="900" height="416" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-900x416.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-1536x709.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-1222x564.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-897x414.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_001.webp 1912w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>You can log in with the default username <strong>admin</strong> and default password <strong>12345</strong></p>
<p>You will see the Rainloop dashboard as below:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1659" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-900x415.webp" alt="RainLoop admin dashboard" width="900" height="415" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-900x415.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-300x138.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-768x354.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-1536x708.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-1222x563.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-897x413.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002-684x315.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_002.webp 1919w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>When you login for the first time, you need to change your <strong>admin</strong> password immediately.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1662 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-900x418.webp" alt="Admin Panel Access Credentials" width="900" height="418" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-900x418.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-768x357.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-1536x713.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-1222x568.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-897x417.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003-684x318.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_003.webp 1914w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Enter your new password and click on the <strong>Update</strong> <strong>Password</strong> button to change the password.</p>
<p>Then, open the <strong>Contacts</strong> menu and select <strong>MySQL</strong> from the dropdown menu:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1663" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-900x417.webp" alt="RainLoop MySQL configuration" width="900" height="417" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-900x417.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-768x356.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-1536x712.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-1222x566.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-897x416.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004-684x317.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/rainloop_004.webp 1917w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Enter the database credentials you created earlier and press the <strong>Test</strong> button to check the connection and install the necessary tables.</p>
<p>If the button turns green, it means the connection is successful.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations. You have learned how to install RainLoop on Debian 12 OS.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://www.rainloop.net/docs" target="_blank" rel="noopener">the official RainLoop documentation.</a></p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/">How to Install RainLoop on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1656</post-id>	</item>
		<item>
		<title>How to Install MediaWiki on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-mediawiki-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-mediawiki-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Fri, 15 Dec 2023 13:00:03 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Composer]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1633</guid>

					<description><![CDATA[<p>MediaWiki is a free and open-source wiki software platform used to power various wikis, including the most well-known one, Wikipedia. MediaWiki is written in PHP...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-mediawiki-on-debian-12/">How to Install MediaWiki on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>MediaWiki is a free and open-source wiki software platform used to power various wikis, including the most well-known one, Wikipedia.</p>
<p>MediaWiki is written in PHP and uses a backend database (usually MySQL or MariaDB) to store the content. It provides a powerful platform for creating collaborative websites, knowledge bases, documentation systems, and more.</p>
<p>In this tutorial, we will show you how to install MediaWiki on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Also, install necessary packages.</p>
<pre><code translate="no"># apt install curl nano wget unzip zip</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache webserver</span></h2>
<p>You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install apache2</code></pre>
<p>Verify the status of the <strong>Apache</strong> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code>● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running)
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 24002 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 24006 (apache2)
      Tasks: 6 (limit: 2273)
     Memory: 23.4M
        CPU: 13.701s
     CGroup: /system.slice/apache2.service
             ├─24006 /usr/sbin/apache2 -k start
             ├─24206 /usr/sbin/apache2 -k start
             ├─24207 /usr/sbin/apache2 -k start
             ├─24208 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and required extensions</span></h2>
<p>To install PHP and the necessary extensions, run the following command:</p>
<pre><code># apt install php libapache2-mod-php php-cli php-intl php-json php-common php-mbstring php-apcu php-mysql php-zip php-gd php-mbstring php-curl php-xml imagemagick</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p>To install MariaDB run the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the MariaDB service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code>● mariadb.service - MariaDB 10.11.4 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 24964 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 12 (limit: 2273)
     Memory: 87.9M
        CPU: 4.312s
     CGroup: /system.slice/mariadb.service
             └─24964 /usr/sbin/mariadbd
</code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code># mysql -u root</code></pre>
<p>Once you are logged in to your database server you need to create a database for the MediaWiki installation:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE mediawikidb;
MariaDB [(none)]&gt; CREATE USER 'mediawikiuser'@'localhost' IDENTIFIED BY 'Str0ngPassw0rd';
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON mediawikidb. * TO 'mediawikiuser'@'localhost';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Install Composer dependency manager</span></h2>
<p>To install Composer, run the following commands:</p>
<pre><code># curl -sS https://getcomposer.org/installer | php
# mv composer.phar /usr/local/bin/composer</code></pre>
<p>Verify that Composer has been installed successfully by running the following command:</p>
<pre><code># composer --version
Composer version 2.6.6 2023-12-08 18:32:26</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Download MediaWiki</span></h2>
<p>The latest version of MediaWiki is available to from the <a href="https://www.mediawiki.org/wiki/Download"><strong>official website of MediaWiki</strong></a>. You can download it with the following command:</p>
<pre><code># wget https://releases.wikimedia.org/mediawiki/1.40/mediawiki-1.40.1.zip</code></pre>
<p>Then extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip mediawiki-1.40.1.zip -d /var/www/</code></pre>
<p>Rename it to make it simpler:</p>
<pre><code># mv /var/www/mediawiki-1.40.1/ /var/www/mediawiki</code></pre>
<p>Now, install all PHP dependencies using the following command:</p>
<pre><code># cd /var/www/mediawiki &amp;&amp; composer install --no-dev</code></pre>
<p>Then enable permission for the Apache webserver user to access the files:</p>
<pre><code># chown -R www-data:www-data /var/www/mediawiki/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Configure Apache for MediaWiki</span></h2>
<p>To create a new VirtualHost file run the following commands:</p>
<pre><code># nano /etc/apache2/sites-available/mediawiki.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code> &lt;VirtualHost *:80&gt;
    ServerAdmin admin@your-domain.com
    DocumentRoot /var/www/mediawiki/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    &lt;Directory /var/www/mediawiki/&gt; 
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        allow from all
    &lt;/Directory&gt; 

    ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
    CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined

 &lt;/VirtualHost&gt;</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>To enable this site run the command:</p>
<pre><code># /usr/sbin/a2ensite mediawiki.conf</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Access MediaWiki Web Interface</span></h2>
<p>To complete the setup go to your browser and visit <strong>http://your-domain.com.</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1641" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_01-900x418.webp" alt="MediaWiki Setup" width="900" height="418" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_01-900x418.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_01-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_01-768x356.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_01-897x416.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_01-684x317.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_01.webp 916w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Start the setup clicking on the link to “<strong>set up the wiki</strong>”.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1639" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02-900x417.webp" alt="MediaWiki " width="900" height="417" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02-900x417.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02-768x356.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02-1536x712.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02-1222x566.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02-897x416.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02-684x317.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_02.webp 1919w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Choose language and click on the<strong> Continue</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1643" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03-900x333.webp" alt="The environment has been checked. You can install MediaWiki" width="900" height="333" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03-900x333.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03-300x111.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03-768x284.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03-1536x568.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03-1222x452.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03-897x332.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03-684x253.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_03.webp 1893w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>If everything is OK, you will get the message &#8220;<strong>The environment has been checked. You can install MediaWiki&#8221;</strong>. Click &#8220;<strong>Continue&#8221;</strong> to advance to the next step.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1644" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04-900x418.webp" alt="Database information" width="900" height="418" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04-900x418.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04-768x356.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04-1536x713.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04-1222x567.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04-897x416.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04-684x317.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_04.webp 1896w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Add the database information such as the Database name, username, and password that you have created in the previous step.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1645" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05-900x417.webp" alt="Use the same account as for installation" width="900" height="417" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05-900x417.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05-768x356.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05-1536x711.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05-1222x566.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05-897x415.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05-684x317.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_05.webp 1914w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Click on the <strong>Continue</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1646" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06-900x449.webp" alt="" width="900" height="449" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06-900x449.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06-300x150.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06-768x383.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06-1536x767.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06-1222x610.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06-897x448.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06-684x341.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_06.webp 1901w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your website name, admin username, password and click on the <strong>Continue</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1647" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07-900x416.webp" alt="MediaWiki Installation" width="900" height="416" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07-900x416.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07-1536x711.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07-1222x565.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07-897x415.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_07.webp 1915w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Click on the “Continue” button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1648 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08-900x422.webp" alt="MediaWiki Installation done" width="900" height="422" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08-900x422.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08-300x141.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08-768x360.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08-1536x720.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08-1222x573.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08-897x421.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08-684x321.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_08.webp 1891w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Click on the “Continue” button. and the system will generate a “<strong>LocalSettings.php</strong>” that contains all the configuration you have done.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1649 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09-900x514.webp" alt="LocalSetings" width="900" height="514" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09-900x514.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09-768x439.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09-1536x877.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09-1222x698.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09-897x512.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09-684x391.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_09.webp 1889w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Copy the file to the <strong>/var/www//mediawiki</strong> directory. Then, set the correct ownership using the following command:</p>
<pre><code># chown www-data:www-data /var/www/mediawiki/LocalSettings.php</code></pre>
<p>Once you have completed this last step you will be redirected to the MediaWiki dashboard:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1650" src="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10-900x422.webp" alt="MediaWiki Home page" width="900" height="422" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10-900x422.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10-300x141.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10-768x360.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10-1536x720.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10-1222x573.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10-897x420.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10-684x321.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/12/mediawiki_10.webp 1888w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations! You have successfully installed Mediawiki with Apache on your Debian 12 OS.</p>
<p>For additional help or useful information, we recommend you to check <a href="https://www.mediawiki.org/wiki/Documentation">the official MediaWiki documentation</a>.</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-mediawiki-on-debian-12/">How to Install MediaWiki on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-mediawiki-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1633</post-id>	</item>
		<item>
		<title>How to Install Backdrop CMS on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-backdrop-cms-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-backdrop-cms-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 02 Nov 2023 21:36:48 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Backdrop]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1584</guid>

					<description><![CDATA[<p>Backdrop CMS is an open-source content management system (CMS) that is designed to be a user-friendly and accessible alternative to other popular CMS platforms, especially...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-backdrop-cms-on-debian-12/">How to Install Backdrop CMS on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Backdrop CMS is an open-source content management system (CMS) that is designed to be a user-friendly and accessible alternative to other popular CMS platforms, especially Drupal.</p>
<p>It is built on the same PHP technology stack as Drupal, but it is intended to be more straightforward and more suitable for smaller organizations, non-profits, and individuals who want a powerful CMS without the complexity often associated with Drupal.</p>
<p>Overall, Backdrop CMS aims to strike a balance between being easy to use and having the capabilities necessary to build and manage websites effectively, making it a suitable choice for those looking for a middle ground between simplicity and customization.</p>
<p>To get started with installing Backdrop on Debian 12, follow the steps below:</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update and upgrade your system packages to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx</span></h2>
<p>You can install Nginx web server via <strong>apt</strong> package manager by executing the following command:</p>
<pre><code># apt install nginx</code></pre>
<p>Verify the status of the Nginx service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status nginx</code></pre>
<p>Output:</p>
<pre><code>● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:nginx(8)
   Main PID: 717 (nginx)
      Tasks: 2 (limit: 2273)
     Memory: 5.0M
        CPU: 71ms
     CGroup: /system.slice/nginx.service
             ├─717 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─718 "nginx: worker process"
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP</span></h2>
<p>To install PHP and the necessary extensions, run the following command:</p>
<pre><code># apt install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.2.12 (cli) (built: Oct 27 2023 13:00:10) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.12, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.12, Copyright (c), by Zend Technologies
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p>To install MariaDB run the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the MariaDB service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code>● mariadb.service - MariaDB 10.11.4 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 772 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 9 (limit: 2273)
     Memory: 249.5M
        CPU: 2.711s
     CGroup: /system.slice/mariadb.service
             └─772 /usr/sbin/mariadbd
</code></pre>
<p>By default, MariaDB is not hardened. You can secure MariaDB using the <strong>mysql_secure_installation</strong> script.</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Backdrop installation:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE backdrop;
MariaDB [(none)]&gt; CREATE USER 'backdrop'@'localhost' IDENTIFIED BY 'Str0ngPass';
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON backdrop. * TO 'backdrop'@'localhost';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Backdrop</span></h2>
<p>The latest version of Backdrop is available to <a href="https://github.com/backdrop/backdrop/releases">download from GitHub</a>. You can download it with the following command:</p>
<pre><code># wget https://github.com/backdrop/backdrop/releases/download/1.26.1/backdrop.zip</code></pre>
<p>Then extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip backdrop.zip -d /var/www/</code></pre>
<p>Then enable permission for the Nginx webserver user to access the files:</p>
<pre><code># chown -R www-data:www-data /var/www/backdrop/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Nginx for Backdrop</span></h2>
<p>Create a new Nginx configuration file with the following command:</p>
<pre><code># nano /etc/nginx/conf.d/backdrop.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code>server {
listen 80;

server_name your-domain.com;
root /var/www/backdrop;
index index.php index.html index.htm;

location / {
    try_files $uri $uri/ /index.php?$args;
   }

location = /favicon.ico {
    log_not_found off;
    access_log off;
   }

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires max;
    log_not_found off;
   }

location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
   }

location ~ \.php$ {
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
   }
}</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access Backdrop Web Interface</span></h2>
<p>To complete the setup go to your browser and visit <strong>http://your-domain.com/.</strong> Choose language and click on the <strong>SAVE AND CONTINUE</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1586 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01-900x415.webp" alt="Backdrop Choose language" width="900" height="415" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01-900x415.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01-300x138.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01-768x354.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01-1536x709.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01-1222x564.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01-897x414.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_01.webp 1916w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your database details and click on the <strong>SAVE AND CONTINUE</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1587 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02-900x416.webp" alt="Backdrop Database Configuration" width="900" height="416" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02-900x416.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02-1536x710.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02-1222x565.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02-897x415.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_02.webp 1917w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your admin username, password, email then click on the <strong>SAVE AND CONTINUE</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1588 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_03-900x694.webp" alt="Backdrop Primary User Account" width="900" height="694" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_03-900x694.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_03-300x231.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_03-768x592.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_03-1222x942.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_03-897x692.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_03-684x527.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_03.webp 1398w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>You will get the Backdrop dashboard.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1592" src="https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04-900x513.webp" alt="Backdrop Dashboard" width="900" height="513" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04-900x513.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04-768x438.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04-1536x876.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04-1222x697.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04-897x511.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04-684x390.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/11/backdrop_04.webp 1894w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed Backdrop CMS on Debian 12.</p>
<p>For additional help or useful information, we recommend you to check <a href="https://docs.backdropcms.org/">the official Backdrop documentation</a>.</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-backdrop-cms-on-debian-12/">How to Install Backdrop CMS on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-backdrop-cms-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1584</post-id>	</item>
		<item>
		<title>How to Install SuiteCRM on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-suitecrm-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-suitecrm-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Wed, 27 Sep 2023 12:00:32 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SuiteCRM]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1544</guid>

					<description><![CDATA[<p>SuiteCRM is a free and open-source Customer Relationship Management (CRM) platform that is designed to help businesses to manage their customer relationships, sales, marketing, and...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-suitecrm-on-debian-12/">How to Install SuiteCRM on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>SuiteCRM is a free and open-source Customer Relationship Management (CRM) platform that is designed to help businesses to manage their customer relationships, sales, marketing, and customer support activities.</p>
<p>It is a popular choice for organizations looking for a cost-effective CRM solution with extensive customization options.</p>
<p>In this tutorial, we will show you how to install SuiteCRM on Debian 12.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>The first step is to ensure that your system is up-to-date. You can do this by running the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache Web Server</span></h2>
<p>To install Apache, run the following command:</p>
<pre><code># apt install apache2</code></pre>
<p>You can start the Apache service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start apache2
# systemctl enable apache2</code></pre>
<p>Verify the status of the <strong>Apache</strong> service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code>
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running)
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 2024 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 2028 (apache2)
      Tasks: 7 (limit: 2273)
     Memory: 19.2M
        CPU: 180ms
     CGroup: /system.slice/apache2.service
             ├─2028 /usr/sbin/apache2 -k start
             ├─2029 /usr/sbin/apache2 -k start
             ├─2030 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP and PHP extensions for SuiteCRM</span></h2>
<p>By default, Debian12 comes with PHP version 8.2. To install PHP and the necessary extensions, run the following command:</p>
<pre><code># apt install php php-cli libapache2-mod-php php-json php-common php-mysql php-zip php-gd php-imap php-mbstring php-curl php-xml php-ldap php-pear</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies</code></pre>
<p>Then edit the <strong>php.ini</strong> file:</p>
<pre><code># nano /etc/php/8.2/apache2/php.ini</code></pre>
<p>Change the following settings:</p>
<pre><code>memory_limit = 256M
post_max_size = 32M
upload_max_filesize = 32M</code></pre>
<p>Restart the Apache service to apply the changes:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p>You can <a href="https://www.linuxtuto.com/how-to-install-mariadb-10-7-on-debian-11/">install the MariaDB server</a> with the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Start the database server daemon, and also enable it to start automatically at the next boot with the following commands:</p>
<pre><code># systemctl start mariadb
# systemctl enable mariadb</code></pre>
<p>Verify the status of the MariaDB service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code>● mariadb.service - MariaDB 10.11.3 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 774 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 9 (limit: 2273)
     Memory: 245.4M
        CPU: 5.791s
     CGroup: /system.slice/mariadb.service
             └─774 /usr/sbin/mariadbd</code></pre>
<p>By default, MariaDB is not hardened. You can secure MariaDB using the <code class=" prettyprinted"><span class="pln">mysql_secure_installation</span></code> script.</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the SuiteCRM installation:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE suitecrm;
MariaDB [(none)]&gt; CREATE USER 'suitecrm'@'localhost' IDENTIFIED BY 'Str0ng-Passw0rd';
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON suitecrm.* TO 'suitecrm'@'localhost';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">S</span><span class="has-inline-color has-vivid-purple-color">tep 5: Download SuiteCRM</span></h2>
<p>Download the latest stable version of SuiteCRM from the <a href="https://suitecrm.com/download/">SuiteCRM website</a> using the following command:</p>
<pre><code># wget https://suitecrm.com/download/141/suite714/562969/suitecrm-7-14-0.zip</code></pre>
<p>Unzip the downloaded release file with the following command:</p>
<pre><code># unzip suitecrm-7-14-0.zip</code></pre>
<p>Rename it to make it simpler:</p>
<pre><code># mv /var/www/SuiteCRM-7.14.0/ /var/www/suitecrm</code></pre>
<p>Enable permission for the Apache webserver user to access the files:</p>
<pre><code># chown -R www-data:www-data /var/www/suitecrm/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Create Virtualhost for SuiteCRM</span></h2>
<p>Then, create an virtual host configuration file to host SuiteCRM:</p>
<pre><code># nano /etc/apache2/sites-available/suitecrm.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code>&lt;VirtualHost *:80&gt;
    ServerAdmin admin@your-domain.com
    DocumentRoot /var/www/suitecrm
    ServerName suitecrm.your-domain.com

    &lt;Directory /var/www/suitecrm/&gt;
	Options Indexes FollowSymLinks
	AllowOverride All
	Require all granted
    &lt;/Directory&gt;

    ErrorLog /var/log/apache2/your-domain.com-error_log
    CustomLog /var/log/apache2/your-domain.com-access_log common
&lt;/VirtualHost&gt;</code></pre>
<p>Remember to replace <strong><code>suitecrm.your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>Then enable the <code>"rewrite"</code> module in Apache:</p>
<pre><code># /usr/sbin/a2enmod rewrite</code></pre>
<p>To enable this site run the command:</p>
<p>To enable this site run the command:</p>
<pre><code># /usr/sbin/a2ensite suitecrm.conf</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access SuiteCRM Web Interface</span></h2>
<p>Go to your browser and visit <code>http://suitecrm.your-domain.com</code>. You should see the following page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1545" src="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse-900x430.webp" alt="SuiteCRM Accept License" width="900" height="430" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse-900x430.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse-300x143.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse-768x367.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse-1536x733.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse-1222x583.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse-897x428.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse-684x326.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_licanse.webp 1892w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>The first page displays the license agreement. Scroll down Accept the License agreement and click <strong>Next</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1551" src="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment-900x430.webp" alt="SuiteCRM system environment" width="900" height="430" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment-900x430.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment-300x143.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment-768x367.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment-1536x735.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment-1222x585.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment-897x429.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment-684x327.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_system_environment.webp 1892w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>If everything is okay, click the <strong>Next</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1547" src="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration-900x507.webp" alt="SuiteCRM Database Configuration" width="900" height="507" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration-900x507.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration-300x169.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration-768x432.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration-1536x865.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration-1222x688.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration-897x505.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration-684x385.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_database_configuration.webp 1918w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your database name, database username, password, admin username and password. Then, click on the <strong>Next</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1548" src="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed-900x421.webp" alt="Configuration Completed" width="900" height="421" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed-900x421.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed-300x140.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed-768x360.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed-1536x719.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed-1222x572.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed-897x420.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed-684x320.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_configuration_completed.webp 1914w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>You are presented with the details of SuiteCRM configuration completion. Click the <strong>Next</strong> button and you should see the login page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1549 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page-900x422.webp" alt="Login page" width="900" height="422" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page-900x422.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page-300x141.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page-768x360.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page-1536x721.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page-1222x573.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page-897x421.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page-684x321.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm-_login_page.webp 1916w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your admin credential and click on the <strong>LOG IN</strong> button, you should see the <code>SuiteCRM</code> dashboard in the following page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1550 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard-900x452.webp" alt="Dashboard" width="900" height="452" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard-900x452.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard-300x151.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard-768x386.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard-1536x771.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard-1222x614.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard-897x450.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard-684x343.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/09/suitecrm_dashboard.webp 1918w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Set up Cron Jobs</span></h2>
<p>SuiteCRM needs cron jobs to function properly. Edit the <strong>www-data</strong> user&#8217;s crontab file.</p>
<pre><code># sudo crontab -e -u www-data</code></pre>
<p>Add the following line at the end of the file.</p>
<pre><code>*    *    *    *    *     cd /var/www/suitecrm; php -f cron.php &gt; /dev/null 2&gt;&amp;1</code></pre>
<p>Save and close the file.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed SuiteCRM on Debian 12.</p>
<p>For additional help or useful information, we recommend you to check <a href="https://docs.suitecrm.com/">the official SuiteCRM documentation</a>.</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-suitecrm-on-debian-12/">How to Install SuiteCRM on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-suitecrm-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1544</post-id>	</item>
		<item>
		<title>How to Install NextCloud on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-nextcloud-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-nextcloud-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Tue, 05 Sep 2023 15:00:04 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[NextCloud]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1531</guid>

					<description><![CDATA[<p>Nextcloud is a versatile and community-driven project, making it a popular choice for individuals, businesses, and organizations looking for a secure and self-hosted cloud storage...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-nextcloud-on-debian-12/">How to Install NextCloud on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Nextcloud is a versatile and community-driven project, making it a popular choice for individuals, businesses, and organizations looking for a secure and self-hosted cloud storage and collaboration solution.</p>
<p>It is similar in functionality to popular cloud storage services like Dropbox, Google Drive, and Microsoft OneDrive but gives users greater control over their data and privacy because it can be deployed on their own servers or a cloud infrastructure of their choice.</p>
<p>In this tutorial, we will show you how to install Nextcloud on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Debian 12</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx webserver</span></h2>
<p>You can install Nginx via <strong>apt</strong> package manager by executing the following command.</p>
<pre><code># apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start nginx
# systemctl enable nginx</code></pre>
<p>Verify the status of the Nginx service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status nginx</code></pre>
<p>Output:</p>
<pre><code>● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:nginx(8)
    Process: 1280 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 1281 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 1304 (nginx)
      Tasks: 2 (limit: 2273)
     Memory: 1.7M
        CPU: 23ms
     CGroup: /system.slice/nginx.service
             ├─1304 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─1307 "nginx: worker process"</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP and PHP extensions for Nextcloud</span></h2>
<p>To install PHP and the necessary extensions, run the following command:</p>
<pre><code># apt install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-intl php-curl php-xml php-mbstring php-bcmath php-gmp</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code># php -v</code></pre>
<pre><code>Output:
PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies</code></pre>
<p>After installing all the packages, edit the php.ini file:</p>
<pre><code># nano /etc/php/8.2/fpm/php.ini</code></pre>
<p>Change the following settings per your requirements:</p>
<pre><code>max_execution_time = 300
memory_limit = 512M
post_max_size = 128M
upload_max_filesize = 128M</code></pre>
<p>To implement the changes, restart the <strong>php-fpm</strong> service:</p>
<pre><code># systemctl restart php8.2-fpm</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB database server</span></h2>
<p>To install the <a href="https://www.linuxtuto.com/how-to-install-mariadb-10-7-on-debian-11/">MariaDB database server</a>, run the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the <strong>MariaDB</strong> service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code>● mariadb.service - MariaDB 10.11.3 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 14433 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 11 (limit: 2273)
     Memory: 163.8M
        CPU: 513ms
     CGroup: /system.slice/mariadb.service
             └─14433 /usr/sbin/mariadbd
</code></pre>
<p>Once the installation is complete, run the following command to secure your MariaDB server:</p>
<pre><code># mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Restart the database server for the changes to take effect.</p>
<pre><code># systemctl restart mariadb</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create a New Database for Nextcloud</span></h2>
<p>Once you have installed MariaDB, you&#8217;ll need to create a new database and user for Nextcloud to use.</p>
<p>To do this, log in to your MariaDB server using the following command:</p>
<pre><code># mysql -u root -p</code></pre>
<p>You will be prompted to enter your root password. Once you have entered your password, you will be taken to the MariaDB prompt.</p>
<p>Run the following commands to create a new database and user:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE nextcloud;
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'Password';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT;</code></pre>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Make sure to replace <code>'<strong>Password</strong>'</code> with a strong password of your choice.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Download and Install Nextcloud</span></h2>
<p>You can download the latest version of Nextcloud from the <a href="https://download.nextcloud.com/">Nextcloud Official site</a>.</p>
<p>Use the following command to download the latest version of Nextcloud:</p>
<pre><code># wget  https://download.nextcloud.com/server/releases/latest.zip</code></pre>
<p>Extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip latest.zip -d /var/www/</code></pre>
<p>Change ownership of the <strong>/var/www/nextcloud</strong> directory to <strong>www-data</strong>.</p>
<pre><code># chown -R www-data:www-data /var/www/nextcloud</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Configure Nginx for Nextcloud</span></h2>
<p>Run the commands below to create a new VirtualHost file called <kbd>nextcloud</kbd> in the <strong>/etc/nginx/conf.d/</strong> directory.</p>
<pre><code># nano /etc/nginx/conf.d/nextcloud.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code>server {
  listen 80;
  server_name your-domain.com www.your-domain.com;
  root /var/www/nextcloud;
  index index.php index.html;
  charset utf-8;
  location / {
    try_files $uri $uri/ /index.php?$args;
  }
  location ~ .php$ {
    fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
  }
}</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Install free Let’s Encrypt SSL certificate</span></h2>
<p>First we need to install the Certbot client which is used to create <a href="https://www.linuxtuto.com/how-to-install-apache-with-lets-encrypt-on-ubuntu-22-04/">Let’s Encrypt certificates</a>:</p>
<pre><code># apt install certbot python3-certbot-nginx</code></pre>
<p>To get the SSL certificate using the Certbot, type the command given below:</p>
<pre><code># certbot --nginx -d your-domain.com -d www.your-domain.com</code></pre>
<p>If the SSL certificate is successfully obtained, certbot displays a message to show the configuration was successful:</p>
<pre><code>IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/your-domain.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/your-domain.com/privkey.pem
   Your cert will expire on 2023-12-03. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le</code></pre>
<p>Now, you have successfully installed SSL on your website.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 9: Access Nextcloud Web Interface</span></h2>
<p>Open your web browser and type the URL <strong><code>https://your-domain.com</code></strong>. You should see the Nextcloud installation page.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1534" src="https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian-900x454.webp" alt="Nextcloud Debian" width="900" height="454" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian-900x454.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian-300x151.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian-768x387.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian-1536x774.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian-1222x616.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian-897x452.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian-684x345.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/09/nextcloud_debian.webp 1905w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Click the <code>Install</code> button, you will see the Web interface of NextCloud.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed <code>NextCloud</code> on Debian 12 OS.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://docs.nextcloud.com/" target="_blank" rel="noopener">the official Nextcloud documentation.</a></p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-nextcloud-on-debian-12/">How to Install NextCloud on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-nextcloud-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1531</post-id>	</item>
		<item>
		<title>How to Install WordPress on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-wordpress-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-wordpress-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 10 Jul 2023 13:00:04 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1435</guid>

					<description><![CDATA[<p>WordPress is a popular content management system (CMS) used for creating and managing websites. It is an open-source platform written in PHP and paired with...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-wordpress-on-debian-12/">How to Install WordPress on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>WordPress is a popular content management system (CMS) used for creating and managing websites. It is an open-source platform written in PHP and paired with a MySQL or MariaDB database. WordPress provides a user-friendly interface and a wide range of themes, plugins, and customization options, making it accessible to users with varying levels of technical expertise.</p>
<p>In this tutorial we’ll show you how to install WordPress on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Also, install necessary packages:</p>
<pre><code># apt install nano wget unzip</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx web server on Debian 12</span></h2>
<p>To install Nginx, run the following command:</p>
<pre><code># apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start nginx
# systemctl enable nginx</code></pre>
<p>Verify the status of the <code>Nginx</code> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status nginx</code></pre>
<pre><code>● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:nginx(8)
    Process: 674 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 873 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 875 (nginx)
      Tasks: 2 (limit: 2273)
     Memory: 4.5M
        CPU: 402ms
     CGroup: /system.slice/nginx.service
             ├─875 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─876 "nginx: worker process"</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and PHP extensions for WordPress</span></h2>
<p>You can install PHP and other supporting packages using the following command:</p>
<pre><code># apt install php php-curl php-fpm php-bcmath php-gd php-soap php-zip php-curl php-mbstring php-mysqlnd php-gd php-xml php-intl php-zip</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code>php -v</code></pre>
<p>Output:</p>
<pre><code>PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies
</code></pre>
<p>After installing all the packages, edit the php.ini file:</p>
<pre><code># nano /etc/php/8.2/fpm/php.ini</code></pre>
<p>Change the following settings per your requirements:</p>
<pre><code>max_execution_time = 300
memory_limit = 512M
post_max_size = 128M
upload_max_filesize = 128M</code></pre>
<p>To implement the changes, restart the <code>php-fpm</code> service:</p>
<pre><code># systemctl restart php8.2-fpm</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB Database Server</span></h2>
<p>You can install MariaDB with the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Start the database server daemon, and also enable it to start automatically at the next boot with the following commands:</p>
<pre><code># systemctl start mariadb
# systemctl enable mariadb</code></pre>
<p>Verify the status of the <code>MariaDB</code> service using <code>systemctl status</code> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code>● mariadb.service - MariaDB 10.11.3 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 959 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 12 (limit: 2273)
     Memory: 256.5M
        CPU: 6.621s
     CGroup: /system.slice/mariadb.service
             └─959 /usr/sbin/mariadbd
</code></pre>
<p>Once the database server is installed, run the following command to secure your <a href="https://www.linuxtuto.com/how-to-install-mariadb-10-7-on-debian-11/">MariaDB server</a>:</p>
<pre><code># mysql_secure_installation</code></pre>
<p>You will then be asked several configuration questions, which you must answer <strong><code>Y</code></strong> to each of them.</p>
<pre><code>Remove anonymous users? [Y/n]: <strong>Y</strong>
Disallow root login remotely? [Y/n]: <strong>Y</strong>
Remove test database and access to it? [Y/n]:  <strong>Y</strong>
Reload privilege tables now? [Y/n]:  <strong>Y</strong></code></pre>
<p>Restart the database server for the changes to take effect.</p>
<pre><code># systemctl restart mariadb</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create a New Database for WordPress</span></h2>
<p>To do this, log in to your MariaDB server using the following command:</p>
<pre><code># mysql -u root -p</code></pre>
<p>Run the following commands to create a new database and user:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE wordpress_db;
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wordpress_user'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT</code></pre>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Make sure to replace <code>'<strong>password</strong>'</code> with a strong password of your choice.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Download WordPress</span></h2>
<p>We will now download the latest version of WordPress from the <a href="https://wordpress.org/download/">WordPress Official site</a>.</p>
<p>Use the following command to download WordPress:</p>
<pre><code># wget https://wordpress.org/latest.zip</code></pre>
<p>Extract file into the folder <strong>/var/www/html/</strong> with the following command,</p>
<pre><code># unzip latest.zip -d /var/www/html/</code></pre>
<p>Next, navigate to the  <code>/var/www/html/wordpress/</code> directory:</p>
<pre><code># cd /var/www/html/wordpress</code></pre>
<p>WordPress comes with a configuration sample file. Make a copy of this file:</p>
<pre><code># cp wp-config-sample.php wp-config.php</code></pre>
<p>Next, edit the WordPress configuration file and define your database settings:</p>
<pre><code># nano wp-config.php</code></pre>
<p>Change the following lines that match your database settings:</p>
<pre><code>/** The name of the database for WordPress */
define( 'DB_NAME', 'wordpress_db' );

/** MySQL database username */
define( 'DB_USER', 'wordpress_user' );

/** MySQL database password */
define( 'DB_PASSWORD', 'password' );

/** MySQL hostname */
define( 'DB_HOST', 'localhost' );</code></pre>
<p>Save the file when you are finished.</p>
<p>Change the permission of the website directory:</p>
<pre><code># chown -R www-data:www-data /var/www/html/wordpress/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Configure Nginx Web Server for WordPress</span></h2>
<p>Navigate to <strong>/etc/nginx/conf.d</strong> directory and run the following command to create a configuration file for your installation:</p>
<pre><code class="hljs shell"><span class="bash"># nano /etc/nginx/conf.d/wordpress.conf</span></code></pre>
<p>Add the following content:</p>
<pre><code>server {
  listen 80;

    server_name  your-domain.com www.your-domain.com;
    root   /var/www/html/wordpress;
    index  index.php;

    access_log /var/log/nginx/your-domain.com.access.log;
    error_log /var/log/nginx/your-domain.com.error.log;

    client_max_body_size 100M;

    location / {
     try_files $uri $uri/ /index.php?$args;
      }

    location ~ \.php$ {
         include snippets/fastcgi-php.conf;
         fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
         include fastcgi_params;
         fastcgi_intercept_errors on;
    }
}
</code></pre>
<p>Save the file and Exit.</p>
<p>Restart the Nginx web server.</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Access WordPress Web Installer</span></h2>
<p>Open your browser type your domain e.g <code>http://your-domain.com</code> You will be redirected to the language selection screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1436 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install-900x507.webp" alt="Installation wizard" width="900" height="507" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install-900x507.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install-300x169.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install-768x432.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install-1536x865.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install-1222x688.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install-897x505.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install-684x385.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_install.webp 1917w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Select your language and click on the <strong>Continue</strong> button.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1437 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome-900x513.webp" alt="Welcome page" width="900" height="513" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome-900x513.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome-768x438.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome-1536x876.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome-1222x697.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome-897x511.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome-684x390.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_welcome.webp 1894w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide the requested information and click on the<strong> <strong>Install WordPress</strong> </strong>button. Once the installation has been finished. You should see the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1438" src="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success-900x427.webp" alt="WordPress success installation" width="900" height="427" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success-900x427.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success-300x142.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success-768x364.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success-1536x729.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success-1222x580.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success-897x426.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success-684x325.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_success.webp 1918w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Click on the <strong>Log in</strong> button. You should see the WordPress login screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1439" src="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login-900x427.webp" alt="WordPress login page" width="900" height="427" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login-900x427.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login-300x142.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login-768x364.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login-1536x729.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login-1222x580.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login-897x426.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login-684x325.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_login.webp 1916w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Enter your administrator user, password and click on the<strong> <strong>Log In</strong></strong> button. You will get the dashboard in the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1440 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard-900x432.webp" alt="Dashboard" width="900" height="432" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard-900x432.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard-300x144.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard-768x369.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard-1536x738.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard-1222x587.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard-897x431.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard-684x328.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/07/wordpress_dashboard.webp 1893w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed <code>WordPress CMS</code> (Content Management System) on Debian 12 OS.</p>
<p>For additional help or useful information, we recommend you to check <a href="https://wordpress.org/documentation/">the official WordPress documentation</a>.</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-wordpress-on-debian-12/">How to Install WordPress on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-wordpress-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1435</post-id>	</item>
	</channel>
</rss>
