<?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>Apache Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/apache/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Thu, 10 Apr 2025 18:57:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Apache Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/apache/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Apache Kafka on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-apache-kafka-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-apache-kafka-on-ubuntu-24-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 10 Apr 2025 18:31:52 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Kafka]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1899</guid>

					<description><![CDATA[<p>Apache Kafka is an open-source distributed event streaming platform used for building real-time data pipelines and applications. Originally developed by LinkedIn and now part of...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-apache-kafka-on-ubuntu-24-04/">How to Install Apache Kafka on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong data-start="0" data-end="16">Apache Kafka</strong> is an open-source distributed event streaming platform used for building real-time data pipelines and applications. Originally developed by LinkedIn and now part of the Apache Software Foundation, Kafka is designed for high-throughput, low-latency, and fault-tolerant data processing across systems.</p>
<p>In this tutorial, we will show you the complete steps to install Apache Kafka on Ubuntu 24.04 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 Java (OpenJDK) on Ubuntu 24.04</span></h2>
<p>Java packages are available on Ubuntu 24.04 repositories and you can install it with the following command:</p>
<pre><code># apt install default-jdk</code></pre>
<p>Check Java version after installation:</p>
<pre><code># java -version
openjdk version "21.0.6" 2025-01-21
OpenJDK Runtime Environment (build 21.0.6+7-Ubuntu-124.04.1)
OpenJDK 64-Bit Server VM (build 21.0.6+7-Ubuntu-124.04.1, mixed mode, sharing)</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Download Apache Kafka</span></h2>
<p>Check the official <a href="https://downloads.apache.org/kafka/">Apache Kafka Download page</a> to locate the latest version of the software.</p>
<p>The latest version at the moment is 4.0.0. You can download it with the following command:</p>
<pre><code># wget https://downloads.apache.org/kafka/4.0.0/kafka_2.13-4.0.0.tgz</code></pre>
<p>Once that downloads, unpack the tarball file using the following command:</p>
<pre><code># tar xvf kafka_2.13-4.0.0.tgz</code></pre>
<p>Then move this directory into the <strong>/usr/local/</strong> directory and rename it kafka:</p>
<pre><code># mv kafka_2.13-4.0.0 /usr/local/kafka</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Create a systemd file for Apache Kafka</span></h2>
<p>First navigate to Kafka’s directory:</p>
<div class="highlight js-code-highlight">
<pre class="highlight shell"><code><span class="nb"># cd</span> /usr/local/kafka</code></pre>
</div>
<p>Then you need to generate a Cluster UUID:</p>
<pre class="language-bash" tabindex="0"><code class="language-bash"># <span class="token assign-left variable">KAFKA_CLUSTER_ID</span><span class="token operator">=</span><span class="token string">"<span class="token variable">$(bin/kafka-storage.sh random-uuid)</span>"</span></code></pre>
<p>Format Log Directories:</p>
<pre class="language-bash" tabindex="0"><code class="language-bash"># bin/kafka-storage.sh <span class="token function">format</span> --standalone -t <span class="token variable">$KAFKA_CLUSTER_ID</span> -c config/server.properties</code></pre>
<p>Now create a <strong>systemd</strong> file so you can control the Kafka service. Create the file with the following command:</p>
<pre><code># nano /etc/systemd/system/kafka.service</code></pre>
<p>In that file, paste the following content:</p>
<pre><code>[Unit]
Description=Apache Kafka Server
Documentation=http://kafka.apache.org/documentation.html
Requires=zookeeper.service

[Service]
Type=simple
Environment="JAVA_HOME=/usr/lib/jvm/java-1.21.0-openjdk-amd64"
ExecStart=/usr/local/kafka/bin/kafka-server-start.sh /usr/local/kafka/config/server.properties
ExecStop=/usr/local/kafka/bin/kafka-server-stop.sh

[Install]
WantedBy=multi-user.target
</code></pre>
<p>Save the changes and exit.</p>
<p>Reload system daemon and start the services:</p>
<pre><code># systemctl daemon-reload
# systemctl start kafka
# systemctl enable kafka</code></pre>
<p>To confirm everything is working normally, check the status of service:</p>
<pre><code># systemctl status kafka</code></pre>
<p>Output:</p>
<pre><code>● kafka.service - Apache Kafka Server
     Loaded: loaded (/etc/systemd/system/kafka.service; enabled; preset: enabled)
     Active: active (running)
       Docs: http://kafka.apache.org/documentation.html
   Main PID: 11915 (java)
      Tasks: 99 (limit: 2217)
     Memory: 365.1M (peak: 365.4M)
        CPU: 16.435s
     CGroup: /system.slice/kafka.service</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: Create a Kafka Topic</span></h2>
<p>So before you can write your first events, you must create a topic. Create a topic named “<code class="language-bash">my-events</code>” with the following command:</p>
<pre><code># usr/local/kafka
# bin/kafka-topics.sh --create --topic my-events --bootstrap-server localhost:9092

Created topic my-events.
</code></pre>
<p>To verify the topic list run the following command:</p>
<pre><code># bin/kafka-topics.sh --list --bootstrap-server localhost:9092
my-events</code></pre>
<p>The Kafka comes with a command-line client that will take input from a file or from standard input and send it out as events to the <code>Kafka</code> cluster.</p>
<p>By default, each line you enter will result in a separate event being written to the topic.</p>
<pre><code># bin/kafka-console-producer.sh --topic my-events --bootstrap-server localhost:9092

&gt;Hello World!
&gt;This is my first topic</code></pre>
<p>You can stop the consumer client with <code>Ctrl-C</code> at any time.</p>
<p>If you also want to delete any data of your local Kafka environment including any events you have created along the way, run the command:</p>
<pre class="language-bash" tabindex="0"><code class="language-bash"># <span class="token function">rm</span> -rf /tmp/kafka-logs /tmp/kraft-combined-logs</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That&#8217;s it! You have now installed and started <code>Apache Kafka</code> on your Ubuntu 24.04 system.</p>
<p>Remember that this guide assumes you have administrative privileges on your system.</p>
<p>Always check the <a href="https://kafka.apache.org/documentation/">official Apache Kafka documentation</a> for the most up-to-date installation instructions and any specific considerations related to your system configuration.</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-apache-kafka-on-ubuntu-24-04/">How to Install Apache Kafka on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-apache-kafka-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1899</post-id>	</item>
		<item>
		<title>How to Install Magento 2.4.7 on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-magento-2-4-7-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-magento-2-4-7-on-ubuntu-24-04/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Tue, 09 Apr 2024 15:30:03 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Composer]]></category>
		<category><![CDATA[Elasticsearch]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1738</guid>

					<description><![CDATA[<p>Magento is an open-source e-commerce platform that provides online merchants with a flexible shopping cart system, as well as control over the look, content, and...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-magento-2-4-7-on-ubuntu-24-04/">How to Install Magento 2.4.7 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Magento is an open-source e-commerce platform that provides online merchants with a flexible shopping cart system, as well as control over the look, content, and functionality of their online stores. It also has a large community of developers and users who contribute to its ongoing development and provide support through forums, documentation, and other resources.</p>
<p>Magento comes in two main editions: Magento Open Source (formerly known as Magento Community Edition) and Magento Commerce (formerly known as Magento Enterprise Edition). The Open Source edition is free to use and provides basic e-commerce functionality, while the Commerce edition is a paid version that includes more advanced features such as customer segmentation, targeted promotions, and advanced marketing tools.</p>
<p>In this tutorial we will show you how to install the Open Source version of <strong>Magento 2.4.7</strong> on Ubuntu 24.04 OS.</p>
<p>Before starting the installation, you can check <a href="https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/system-requirements.html">the system requirement</a> for installing Magento 2.4.7.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-1751" src="https://www.linuxtuto.com/wp-content/uploads/2024/04/magento_2.4.7_requirements-823x900.webp" alt="Magento 2.4.7 requirements" width="823" height="900" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/04/magento_2.4.7_requirements-823x900.webp 823w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento_2.4.7_requirements-274x300.webp 274w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento_2.4.7_requirements-768x840.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento_2.4.7_requirements-897x981.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento_2.4.7_requirements-684x748.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento_2.4.7_requirements.webp 932w" sizes="(max-width: 823px) 100vw, 823px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">S</span><span class="has-inline-color has-vivid-purple-color">tep 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu 24.04</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 Apache web server</span></h2>
<p>To install Apache web server, run the following command:</p>
<pre class="wp-block-preformatted"><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 Apache 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 (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running)
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 22413 (apache2)
      Tasks: 6 (limit: 2130)
     Memory: 16.8M (peak: 17.0M)
        CPU: 658ms
     CGroup: /system.slice/apache2.service
             ├─22413 /usr/sbin/apache2 -k start
             ├─22468 /usr/sbin/apache2 -k start
             ├─22469 /usr/sbin/apache2 -k start
             ├─22470 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and PHP extensions</span></h2>
<p>Magento 2.4.7 comes with support for the latest PHP 8.3, while PHP 8.2 remains fully supported. By default, PHP 8.3 is included in the Ubuntu 24.04 default repository.</p>
<p>You can install PHP 8.3 and required PHP extensions using the following command:</p>
<pre><code># apt install php php-exif php-bz2 php-bcmath php-intl php-soap php-zip php-curl php-mbstring php-mysql php-gd php-xml</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.3.0-1ubuntu1 (cli) (built: Jan 19 2024 14:00:34) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.0, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.0-1ubuntu1, Copyright (c), by Zend Technologies
</code></pre>
<h3><span class="has-inline-color has-vivid-purple-color">Update php.ini file</span></h3>
<p>Now it’s time to increase values in the php.ini file.</p>
<p>Open <code>php.ini</code> file:</p>
<pre><code># nano /etc/php/8.3/apache2/php.ini
</code></pre>
<p>Change the following data:</p>
<pre><code>short_open_tag = On
memory_limit = 512M
upload_max_filesize = 128M
max_execution_time = 3600
</code></pre>
<p>Then save this <code>php.ini</code> file.</p>
<p>After that, you should restart the Apache web server for the configuration to take effect:</p>
<pre class="highlight"><code># systemctl restart apache2
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MySQL and create a database</span></h2>
<p>You can install the MySQL server with the following command:</p>
<pre><code># apt install mysql-server</code></pre>
<p><span style="font-size: 16px;">Verify the status of the MySQL service using </span><strong>systemctl status</strong><span style="font-size: 16px;"> command:</span></p>
<pre><code># systemctl status mysql</code></pre>
<p>Output:</p>
<pre><code>● mysql.service - MySQL Community Server
     Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; preset: enabled)
     Active: active (running)
    Process: 2907 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
   Main PID: 2919 (mysqld)
     Status: "Server is operational"
      Tasks: 37 (limit: 2130)
     Memory: 362.8M (peak: 379.2M)
        CPU: 1.737s
     CGroup: /system.slice/mysql.service
             └─2919 /usr/sbin/mysqld
</code></pre>
<p>By default, MySQL is not hardened. You can secure MySQL 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 MySQL shell.</p>
<pre><code># mysql -u root -p</code></pre>
<p>Once you are logged in to your database server to create a database, database user, and grant all privileges to the database user run the following commands:</p>
<pre><code>mysql&gt; CREATE DATABASE magentodb;
mysql&gt; CREATE USER 'magentouser'@'localhost' IDENTIFIED BY 'Str0ngPa$$w0rd';
mysql&gt; GRANT ALL ON magentodb.* TO 'magentouser'@'localhost';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; EXIT</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Installing Elasticsearch</span></h2>
<p>Starting Magento 2.4, all installations must be configured to use <a href="https://www.linuxtuto.com/how-to-install-elasticsearch-8-on-debian-11/" target="_blank" rel="noopener">Elasticsearch</a> as the catalog search engine.</p>
<p>Import the Elasticsearch GPG key:</p>
<pre><code># wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg</code></pre>
<p>Add the Elasticsearch repository:</p>
<pre><code># echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list</code></pre>
<p>Update the <code>apt</code> package manager and install Elasticsearch:</p>
<pre><code># apt update &amp;&amp; apt install elasticsearch</code></pre>
<p>Then start and enable the service:</p>
<pre><code># systemctl start elasticsearch
# systemctl enable elasticsearch</code></pre>
<p>Open the <strong>elasticsearch.yml</strong> file:</p>
<pre><code># nano  /etc/elasticsearch/elasticsearch.yml</code></pre>
<p>Then uncomment the lines and update the values:</p>
<pre><code>node.name: "ubuntu"
cluster.name: magento 2.4.7
network.host: 127.0.0.1
http.port: 9200
xpack.security.enabled: false</code></pre>
<p>After that, you should restart elasticsearch service for the configuration to take effect:</p>
<pre class="highlight"><code># systemctl restart elasticsearch</code></pre>
<p>To verify that Elasticsearch is running correctly, you will use the <strong>curl</strong> command:</p>
<pre><code># curl -X GET "localhost:9200/"</code></pre>
<p>If Elasticsearch is working properly, the result should be like this:</p>
<pre><code>{
  "name" : "ubuntu",
  "cluster_name" : "magento 2.4.7",
  "cluster_uuid" : "nKzTibHRT_ahq6lCsWk6Ew",
  "version" : {
    "number" : "8.13.1",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "9287f29bba5e270bd51d557b8daccb7d118ba247",
    "build_date" : "2024-03-29T10:05:29.787251984Z",
    "build_snapshot" : false,
    "lucene_version" : "9.10.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Install Composer</span></h2>
<p>To download Composer, run the following command:</p>
<pre><code># curl -sS https://getcomposer.org/installer | php</code></pre>
<p>Next, move the composer file to the <strong>/usr/local/bin</strong> path:</p>
<pre><code># mv composer.phar  /usr/local/bin/composer
# chmod +x   /usr/local/bin/composer</code></pre>
<p>Verify the Composer version installed:</p>
<pre><code># composer --version

Output:
Composer version 2.7.2 2024-03-11 17:12:18
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Install Magento 2.4.7</span></h2>
<p>For most situation it is recommended to install Magento using the <strong>Marketplace</strong> by creating access key.</p>
<p>To get the access keys, you should create an account in the <a href="https://marketplace.magento.com/customer/accessKeys/">Magento marketplace.</a></p>
<p>Then for generating access keys go to:</p>
<p><strong>My profile &gt; Marketplace &gt; My products &gt; Access Keys</strong></p>
<p>Once access keys are generated run the following  command to download Magento 2.4.7:</p>
<pre><code># composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.7 /var/www/magento2</code></pre>
<p>Username : <strong>Your</strong> <strong>Public Key</strong><br />
Password : <strong>Your</strong> <strong>Private Key</strong></p>
<p>Navigate to the <code>Magento</code> directory:</p>
<pre><code># cd /var/www/magento2</code></pre>
<p>Chmod cache and static content folder:</p>
<pre><code># find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +</code></pre>
<p>Change the ownership of the magento2 directory to the webserver user and also the permissions:</p>
<pre><code># chown -R www-data:www-data /var/www/magento2
# chmod -R 755 /var/www/magento2</code></pre>
<p>Now, install Magento using the composer command, type:</p>
<pre class="wp-block-preformatted"><code># bin/magento setup:install \
--base-url=http://your-domain.com \
--db-host=localhost \
--db-name=magentodb \
--db-user=magentouser \
--db-password='Str0ngPa$$w0rd' \
--admin-firstname=Admin \
--admin-lastname=User \
--admin-email=admin@your-domain.com \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1</code></pre>
<p>After the installation process you will see the admin link for your Magento site.</p>
<pre><code>[SUCCESS]: Magento installation complete.
[SUCCESS]: Magento Admin URI: /admin_nuqh2y
Nothing to import.</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Configure Apache for Magento 2.4.7</span></h2>
<p>Run the command below to create a new VirtualHost file in the <strong>/etc/apache2/sites-available/</strong> directory:</p>
<pre><code># nano /etc/apache2/sites-available/<span class="pln">magento2</span>.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/<span class="pln">magento2/pub</span>
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    &lt;Directory /var/www/magento2/&gt; 
        AllowOverride All
    &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>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>Next run the following command to enable <strong>rewrite</strong> module:</p>
<pre><code># a2enmod rewrite</code></pre>
<p>To enable this site run the command:</p>
<pre><code># a2ensite <span class="pln">magento2</span>.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 9: Access your Magento 2.4.7 Application</span></h2>
<p>Open your browser and type your domain <code>http://your-domain.com</code></p>
<p><img decoding="async" class="aligncenter size-large wp-image-1743" src="https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home-900x507.webp" alt="Magento 2.4.7 Home Page" width="900" height="507" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home-900x507.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home-300x169.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home-768x433.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home-1536x865.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home-1222x688.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home-897x505.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home-684x385.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/04/magento2.4.7_home.webp 1916w" 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 Open Source version of Magento 2.4.7 on Ubuntu 24.04.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://developer.adobe.com/commerce/docs/" target="_blank" rel="noopener">the official Magento 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-magento-2-4-7-on-ubuntu-24-04/">How to Install Magento 2.4.7 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-magento-2-4-7-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1738</post-id>	</item>
		<item>
		<title>How to Install Jupyter Notebook on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-jupyter-notebook-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-jupyter-notebook-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 28 Mar 2024 13:45:02 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Jupyter]]></category>
		<category><![CDATA[Notebook]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1719</guid>

					<description><![CDATA[<p>Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It&#8217;s...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-jupyter-notebook-on-debian-12/">How to Install Jupyter Notebook on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. It&#8217;s widely used in various fields such as data science, machine learning, scientific computing, and education.</p>
<p>The term &#8220;Jupyter&#8221; is derived from the combination of three programming languages: Julia, Python, and R. These were the first languages supported by the Jupyter project, but now it supports many other programming languages through its interactive computing protocol.</p>
<p>In this tutorial, we will show you how to install Jupyter Notebook on Debian 12 OS with Apache web 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 -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Pip on Debian 12</span></h2>
<p><a href="https://www.linuxtuto.com/how-to-install-python-3-12-on-ubuntu-22-04/"><strong>Python</strong></a> comes already installed by default on Debian 12. You can verify it by checking its version:</p>
<pre><code># python3 -V</code></pre>
<pre><code>Output:
Python 3.11.2</code></pre>
<p>If it doesn&#8217;t, install <strong>Python</strong> with the following command:</p>
<pre><code># apt install python3</code></pre>
<p>Then use the following command to install <strong>pip</strong> and <strong>venv</strong> on Debian 12:</p>
<pre><code># apt install python3-venv python3-pip</code></pre>
<p>Verify your pip installation by checking its version:</p>
<pre><code># pip3 --version</code></pre>
<pre><code>Output:
pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Jupyter Notebook Using Virtualenv</span></h2>
<p>First, create a directory and switch to it with the commands below:</p>
<pre><code># mkdir /var/www/notebook 
# cd /var/www/notebook</code></pre>
<p>Before you install Jupyter Notebook, you first need to create a Python virtual environment.</p>
<pre><code># python3 -m venv notebook_env</code></pre>
<p>Next, activate the virtual environment with the following command:</p>
<pre><code># source notebook_env/bin/activate</code></pre>
<p>Next, install Jupyter Notebook using the following command:</p>
<pre><code>(notebook_env) # pip install jupyter</code></pre>
<p>Once the installation is completed, run the Jupyter Notebook with the following command:</p>
<pre><code>(notebook_env) # jupyter notebook --allow-root</code></pre>
<p>Press the <strong>CTRL+C</strong> to stop the Jupyter Notebook.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Generate Jupyter Notebook Password</span></h2>
<p>First, generate a Jupyter Notebook configuration file with the following command:</p>
<pre><code>(notebook_env) # jupyter notebook --generate-config</code></pre>
<p>You should see the following output:</p>
<pre><code>Writing default config to: /root/.jupyter/jupyter_notebook_config.py</code></pre>
<p>Then run the following command and enter your preferred password:</p>
<pre><code>(notebook_env) # jupyter notebook password</code></pre>
<p>Set a password as shown below:</p>
<pre><code>Enter password: 
Verify password: 
[JupyterPasswordApp] Wrote hashed password to /root/.jupyter/jupyter_server_config.json</code></pre>
<p>This can be used to reset a lost password or if you believe your credentials have been leaked and desire to change your password.</p>
<p>You can prepare a hashed password manually, using the function <code>jupyter_server.auth.passwd()</code>:</p>
<pre><code>&gt;&gt;&gt; jupyter_server.auth import passwd
&gt;&gt;&gt; passwd()
Enter password:
Verify password:
'argon2:$argon2id$v=19$m=10240,t=10,p=8$WGqsBZQPacu0FwsczXPlIQ$VXMyCfkJJZETyjdB6aWNSu/t0OrLAVhpkM15wKJYQRU'</code></pre>
<p>Then add the hashed password to your <strong>jupyter_notebook_config.py</strong> file:</p>
<pre><code>nano /root/.jupyter/jupyter_notebook_config.py</code></pre>
<pre><code>c.ServerApp.password = 'argon2:$argon2id$v=19$m=10240,t=10,p=8$WGqsBZQPacu0FwsczXPlIQ$VXMyCfkJJZETyjdB6aWNSu/t0OrLAVhpkM15wKJYQRU'</code></pre>
<p>Now, deactivate from the Python virtual environment with the following command:</p>
<pre><code>deactivate</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Create a Systemd service</span></h2>
<p>Next, it is a good idea to create a systemd service file to handle the <code>Jupyter Notebook</code> service. You can create it with the following command:</p>
<pre class="command"><code spellcheck="false"># nano /lib/systemd/system/jupyter.service</code></pre>
<p>Add the following lines:</p>
<pre><code>[Unit]
Description=Jupyter Notebook

[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/var/www/notebook/notebook_env/bin/jupyter-notebook --config=/root/.jupyter/jupyter_notebook_config.py --allow-root
User=root
Group=root
WorkingDirectory=/var/www/notebook/notebook_env
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target</code></pre>
<p>Save and close the file and then reload the systemd daemon with the following command:</p>
<pre><code># systemctl daemon-reload</code></pre>
<p>Then start the <code>jupyter service</code> and activate it at system startup with the following command:<span id="ezoic-pub-ad-placeholder-112" class="ezoic-adpicker-ad"></span></p>
<pre><code># systemctl start jupyter
# systemctl enable jupyter</code></pre>
<p>Edit the configuration file and enable remote access:</p>
<pre><code>nano /root/.jupyter/jupyter_notebook_config.py</code></pre>
<p>Uncoment and change the following line to <strong>True</strong>:</p>
<pre><code>c.ServerApp.allow_remote_access = True</code></pre>
<p>To implement the changes, you need to restart the <code>jupyter service</code>:</p>
<pre><code># systemctl restart jupyter</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache as a Reverse Proxy for Jupyter Notebook</span></h2>
<p>Jupyter Notebook is started and running on port 8888.You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code># apt install apache2</code></pre>
<p>You can verify the status of the Apache service using the <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Next run the following commands to enable necessary modules:</p>
<pre><code># /usr/sbin/a2enmod proxy
# /usr/sbin/a2enmod proxy_http</code></pre>
<p>Run the commands below to create a new VirtualHost file called <strong>jupyter</strong> in the /etc/apache2/sites-available/ directory.</p>
<pre><code># nano /etc/apache2/sites-available/jupyter.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/html/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    ProxyPass / http://127.0.0.1:8888/
    ProxyPassReverse / http://127.0.0.1:8888/&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>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Then save and exit the configuration file.</p>
<p>To enable this site run the following command:</p>
<pre><code># ln -s /etc/apache2/sites-available/jupyter.conf /etc/apache2/sites-enabled/jupyter.conf</code></pre>
<p>To implement the changes, you need to restart the Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Accessing Jupyter Notebook Web Interface</span></h2>
<p>Open your web browser using the URL <code class=" prettyprinted"><span class="pln">http</span><span class="pun">:</span><span class="com">//<code>your-domain.com</code></span></code>. You should see the Jupyter login page:</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1720" src="https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-900x281.webp" alt="Jupyter Login Page" width="900" height="281" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-900x281.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-300x94.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-768x240.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-1536x480.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-1222x382.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-897x280.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login-684x214.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_login.webp 1916w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Enter your password and click on the <strong>Login</strong> button. You should see the dashboard on the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1721" src="https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-900x416.webp" alt="Jupyter Dashboard" width="900" height="416" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-900x416.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-300x139.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-1536x711.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-1222x565.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-897x415.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/03/jupyter_dasboard.webp 1915w" 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>Jupyter Notebook</code> on Debian 12.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://docs.jupyter.org/en/latest/" target="_blank" rel="noopener">the official Jupyter Notebook 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-jupyter-notebook-on-debian-12/">How to Install Jupyter Notebook 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-jupyter-notebook-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1719</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 loading="lazy" 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="auto, (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 loading="lazy" 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="auto, (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 Configure Odoo with Apache as Reverse Proxy on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 22 Jan 2024 15:30:05 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[Odoo]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1672</guid>

					<description><![CDATA[<p>Odoo is an open-source suite of integrated business applications that includes various modules for different business needs. Odoo is developed using the Python programming language...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/">How to Configure Odoo with Apache as Reverse Proxy on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Odoo is an open-source suite of integrated business applications that includes various modules for different business needs. Odoo is developed using the Python programming language and follows a modular architecture, allowing users to select and deploy the specific modules that suit their business requirements.</p>
<p>The system is highly customizable, and it covers a wide range of business functions. It provides a comprehensive set of tools to manage various aspects of a business, from sales and finance to human resources and inventory management.</p>
<p>In this tutorial, we will show you how to configure Odoo with Apache 2 as Reverse Proxy on Debian 12 OS.</p>
<p>If you do not have Odoo installed on your server you can follow our tutorial <a href="https://www.linuxtuto.com/how-to-install-odoo-17-on-debian-12/">how to install Odoo 17 on Debian 12</a>.</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>
<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>You can verify the status of the Apache service using the <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: 1127 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 1131 (apache2)
      Tasks: 6 (limit: 2273)
     Memory: 18.4M
        CPU: 86ms
     CGroup: /system.slice/apache2.service
             ├─1131 /usr/sbin/apache2 -k start
             ├─1132 /usr/sbin/apache2 -k start
             ├─1133 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Enable Apache Modules</span></h2>
<p>Next run the following commands to enable all necessary modules:</p>
<pre><code># /usr/sbin/a2enmod rewrite
# /usr/sbin/a2enmod proxy
# /usr/sbin/a2enmod proxy_http
# /usr/sbin/a2enmod proxy_html
# /usr/sbin/a2enmod headers</code></pre>
<p>Then restart the Apache web server:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Configure Apache for Odoo</span></h2>
<p>Run the commands below to create a new VirtualHost file called <kbd>odoo</kbd> in the <strong>/etc/apache2/sites-available/</strong> directory.</p>
<pre><code># nano /etc/apache2/sites-available/odoo.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/html/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    ProxyPass / http://127.0.0.1:8069/
    ProxyPassReverse / http://127.0.0.1:8069/&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>your-domain.com</strong> with the domain name of your server.</p>
<p>Then save and exit the configuration file.</p>
<p>To enable this site run the following command:</p>
<pre><code># ln -s /etc/apache2/sites-available/odoo.conf /etc/apache2/sites-enabled/odoo.conf</code></pre>
<p>To implement the changes, you need to restart the Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Install free Let’s Encrypt SSL certificate (Optional)</span></h2>
<p>First you need to install the Certbot client which is used to <a href="https://www.linuxtuto.com/how-to-install-apache-with-lets-encrypt-on-ubuntu-22-04/">create Let’s Encrypt certificates</a>:</p>
<pre><code># apt install certbot python3-certbot-apache</code></pre>
<p>Then to get the SSL certificate using the Certbot, type the following command:</p>
<pre><code># certbot --apache -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.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/your-domain.com/privkey.pem
   Your cert will expire on 2024-03-02. 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 6:  Odoo Proxy Configuration</span></h2>
<p>Make sure that Odoo is configured to work behind a proxy. In the Odoo configuration file (<code>/etc/odoo.conf</code>), you need to set the <strong>proxy_mode</strong> parameter to True:</p>
<pre><code>proxy_mode = True
</code></pre>
<p>After making the changes, it’s important to restart the Odoo service to ensure the changes take effect:</p>
<pre><code># systemctl restart odoo
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access Odoo server</span></h2>
<p>Open your web browser and type the URL <strong>https://your-domain.com</strong>. You should see the following page:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1674" src="https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-900x415.webp" alt="Odoo 17" width="900" height="415" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-900x415.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-300x138.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-768x355.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-1536x709.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-1222x564.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-897x414.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17-684x316.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/01/odoo_17.webp 1915w" 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 configured <code>Odoo</code> with Apache 2 as Reverse Proxy on your Debian 12 OS.</p>
<p>For additional information, you can check <a href="https://www.odoo.com/documentation/" target="_blank" rel="noopener">the official Odoo 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-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/">How to Configure Odoo with Apache as Reverse Proxy 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-configure-odoo-with-apache-as-reverse-proxy-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1672</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 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 AWStats with Apache on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-awstats-with-apache-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-awstats-with-apache-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 14 Aug 2023 17:30:05 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[AWStats]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1521</guid>

					<description><![CDATA[<p>AWStats (Advanced Web Statistics) is an open-source web analytics tool that analyzes and generates comprehensive reports about web server log files. It provides detailed information...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-awstats-with-apache-on-debian-12/">How to Install AWStats with Apache on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>AWStats (Advanced Web Statistics) is an open-source web analytics tool that analyzes and generates comprehensive reports about web server log files. It provides detailed information about various aspects of web traffic and visitor behavior on a website.</p>
<p>It&#8217;s important to note that AWStats relies on server log files, so it may not provide real-time data and requires proper configuration to work effectively.</p>
<p>In this tutorial, we will show you how to install <code>AWStats</code> 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>
<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 <code>Apache</code> 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: 928 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 933 (apache2)
      Tasks: 56 (limit: 2273)
     Memory: 11.2M
        CPU: 1.891s
     CGroup: /system.slice/apache2.service
             ├─933 /usr/sbin/apache2 -k start
             ├─934 /usr/sbin/apache2 -k start
             ├─935 /usr/sbin/apache2 -k start
             └─936 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install AWStats</span></h2>
<p>To install AWStats, you need to run the following command:</p>
<pre><code># apt install awstats</code></pre>
<p>This command will start the installation process. It will resolve dependencies, run a transaction check, and install the necessary packages.</p>
<p>To get GeoIP information install the following Perl packages:</p>
<pre><code># apt install libgeo-ip-perl libgeo-ipfree-perl</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Configure AWStats</span></h2>
<p>Once the installation routine is completed, edit the file <strong>awstats.conf</strong> as follows:</p>
<pre><code>LogFile="/var/log/apache2/access.log"
LogFormat=1
SiteDomain="your-domain.com"
HostAliases=”www.your-domain.com your-domain.com”
DNSLookup=0
AllowFullYearView=3
LoadPlugin="tooltips"</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Configure Apache for AWStats</span></h2>
<p>Open the Apache configuration file <strong>/etc/apache2/conf-available/awstats.conf</strong> :</p>
<pre><code># nano /etc/apache2/conf-available/awstats.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code>Alias /awstatsclasses "/usr/share/awstats/lib/"
Alias /awstats-icon "/usr/share/awstats/icon/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
</code></pre>
<p>Save and exit the configuration file.</p>
<p>To enable this conf run the command:</p>
<pre><code># ln -s /etc/apache2/conf-available/awstats.conf /etc/apache2/conf-enabled/awstats.conf</code></pre>
<p>Then enable the <code>"cgi"</code> module in Apache:</p>
<pre><code># /usr/sbin/a2enmod cgi</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<p>You can see how the installation is progressing by pointing your web browser to:</p>
<pre><code># http://your-domain.com/cgi-bin/awstats.pl</code></pre>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1522" src="https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic-900x428.webp" alt="AWStats Statistic" width="900" height="428" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic-900x428.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic-300x143.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic-768x365.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic-1536x730.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic-1222x581.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic-897x426.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic-684x325.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2023/08/awstats_statistic.webp 1893w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>The top line displays the time when statistics were updated. It probably reads ‘Never updated’. It is all right, you just have to manually run the first update.</p>
<pre><code># /usr/lib/cgi-bin/awstats.pl -config=your-domain.com -update</code></pre>
<p>After it is done, if it is successful, with no errors, you should get some output like:</p>
<pre><code>Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.8 (build 20200416)
From data in log file "/var/log/apache2/access.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 4258
 Found 0 dropped records,
 Found 0 comments,
 Found 0 blank records,
 Found 0 corrupted records,
 Found 0 old records,
 Found 4258 new qualified records.</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Secure Your AWStats via .htaccess</span></h2>
<p>A basic, simple way of restricting access is to set up a http password. Open your apache2 configuration file</p>
<pre><code># nano /etc/apache2/sites-available/your-domain.com.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code>&lt;Directory /usr/lib/cgi-bin/&gt;
    Options +ExecCGI
    AddHandler cgi-script .cgi
    AuthType Basic
    AuthName 'Password Protected Area'
    AuthUserFile '/usr/lib/cgi-bin/.htpasswd'
    Require valid-user
&lt;/Directory&gt;
</code></pre>
<p>If you don’t  have a password that can be used for this purpose, the command <strong>htpasswd</strong> can do it for you.</p>
<pre><code># htpasswd -cb /usr/lib/cgi-bin/.htpasswd admin Str0ngPassw0rd</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations! You have successfully installed <code>AWStats</code> with Apache on your Debian 12 OS.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://awstats.sourceforge.io/docs/index.html" target="_blank" rel="noopener">the official AWStats documentation.</a></p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-awstats-with-apache-on-debian-12/">How to Install AWStats with Apache 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-awstats-with-apache-on-debian-12/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1521</post-id>	</item>
	</channel>
</rss>
