<?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>PHP Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/php/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Tue, 04 Nov 2025 07:16:09 +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>PHP Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/php/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install PHP 8.4 on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-php-8-4-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-php-8-4-on-ubuntu-24-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 25 Nov 2024 13:00:17 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1824</guid>

					<description><![CDATA[<p>PHP (Hypertext Preprocessor) is a widely-used, open-source, server-side scripting language designed for web development. It is especially suited for creating dynamic web pages and applications....</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-php-8-4-on-ubuntu-24-04/">How to Install PHP 8.4 on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PHP (Hypertext Preprocessor) is a widely-used, open-source, server-side scripting language designed for web development. It is especially suited for creating dynamic web pages and applications.</p>
<p>In this tutorial, we will show you how to install PHP 8.4 on a Ubuntu 24.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Update Operating System</span></h2>
<p>Update your <strong>Ubuntu 22.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">Add PHP Repository</span></h2>
<p>By default, <strong>PHP 8.4</strong> is not included in the Ubuntu 24.04 default repository.  So you will need to add <a href="https://deb.sury.org/">Ondrej Sury PPA</a> into your system.</p>
<p>First, install the required packages using the following command:</p>
<pre><code># apt-get install ca-certificates apt-transport-https software-properties-common</code></pre>
<p>Once all the packages are installed, add this PPA using the following command:</p>
<pre><code># add-apt-repository ppa:ondrej/php</code></pre>
<p>Once you are done, update the repository with the following command:</p>
<pre><code># apt-get update</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install PHP 8.4</span></h2>
<p>Now, you can install the PHP 8.4 using the following command:</p>
<pre><code># apt-get install php8.4</code></pre>
<p>Once the PHP is installed, you can check the PHP version on your system with the following command:</p>
<pre><code># php8.4 --version</code></pre>
<p>Output:</p>
<pre><code># PHP 8.4.1 (cli) (built: Nov 21 2024 14:54:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.1, Copyright (c), by Zend Technologies
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install PHP 8.4 for Apache</span></h2>
<p>To install PHP as an Apache module, execute:</p>
<pre><code># apt install libapache2-mod-php8.4</code></pre>
<p>Then, restart Apache to integrate the new PHP module:</p>
<pre><code># systemctl restart apache2</code></pre>
<p>To verify that PHP is working with the Apache web server, you can create a test PHP file:</p>
<pre><code>echo "&lt;?php phpinfo(); ?&gt;" | tee /var/www/html/info.php</code></pre>
<p>Then open your web browser and type <strong>http://your-IP-address/info.php</strong> and you should see the PHP information page.</p>
<h2><img fetchpriority="high" decoding="async" class="aligncenter size-large wp-image-1825" src="https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4-900x511.webp" alt="PHP 8.4" width="900" height="511" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4-900x511.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4-300x170.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4-768x436.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4-1536x872.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4-1222x694.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4-897x509.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4-684x388.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/11/php-8.4.webp 1892w" sizes="(max-width: 900px) 100vw, 900px" /></h2>
<h2><span class="has-inline-color has-vivid-purple-color">Install PHP 8.4 FPM for Nginx</span></h2>
<p>For the Nginx web server, you need to install the FPM service, you can install it using the following command:</p>
<pre><code># apt install php8.4-fpm</code></pre>
<p>Once the installation has been completed, you can confirm that the <code>PHP-FPM</code> service has been installed correctly with the following command:</p>
<pre><code># systemctl status php8.4-fpm</code></pre>
<p>Output:</p>
<pre><code>● php8.4-fpm.service - The PHP 8.4 FastCGI Process Manager
     Loaded: loaded (/usr/lib/systemd/system/php8.4-fpm.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:php-fpm8.4(8)
    Process: 11741 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.4/fpm/pool.d/www.conf 84 (code=exited, status=0/SUCCESS)
   Main PID: 11737 (php-fpm8.4)
     Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0.00req/sec"
      Tasks: 3 (limit: 2218)
     Memory: 8.0M (peak: 9.0M)
        CPU: 116ms
     CGroup: /system.slice/php8.4-fpm.service
             ├─11737 "php-fpm: master process (/etc/php/8.4/fpm/php-fpm.conf)"
             ├─11739 "php-fpm: pool www"
             └─11740 "php-fpm: pool www"</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Test PHP and PHP-FPM</span></h2>
<p>To configure Nginx to use PHP-FPM, you need to edit the default Nginx configuration file:</p>
<pre><code># nano /etc/nginx/sites-available/default</code></pre>
<p>Add the following configurations to the file.</p>
<pre><code>location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/var/run/php/php8.4-fpm.sock;
}</code></pre>
<p>Check Nginx syntax:</p>
<pre><code># nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful</code></pre>
<p>Then create a test PHP file similar to the Apache setup:</p>
<pre><code>echo "&lt;?php phpinfo(); ?&gt;" | tee /var/www/html/info.php</code></pre>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<p>Then open your web browser and type <strong>http://your-IP-address/info.php</strong> and you should see the PHP information page.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Install PHP Extension</span></h2>
<p>Installing PHP extensions are simple with the below-mentioned syntax:</p>
<pre><code># sudo apt install php8.4-[extension]</code></pre>
<p>Replace [extension] with the extension you want to install, if you want to add multiple extensions then include them in braces:</p>
<pre><code># apt install php8.4-mysql php8.4-imap php8.4-ldap php8.4-xml php8.4-curl php8.4-mbstring php8.4-zip</code></pre>
<p>To check loaded PHP modules use the command:</p>
<pre><code># php8.4 -m</code></pre>
<p>Example Output:</p>
<pre><code>[PHP Modules]
..............
imap
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
..............

[Zend Modules]
Zend OPcache</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Running PHP 8.4 with Other Versions </span></h2>
<p>Instead of removing old <a href="https://www.linuxtuto.com/how-to-install-php-8-3-on-ubuntu-22-04/">PHP versions</a>, it is also possible to run multiple PHP versions side-by-side.</p>
<p>The <strong>update-alternatives</strong> command provides an easy way to switch between PHP versions for PHP CLI.</p>
<pre><code># update-alternatives --config php</code></pre>
<p>This brings up a prompt to interactively select the alternative PHP binary path that <code>php</code> points to.</p>
<pre><code>There are 2 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/php.default   100       auto mode
  1            /usr/bin/php.default   100       manual mode
  2            /usr/bin/php8.3        83        manual mode
  3            /usr/bin/php8.4        84        manual mode</code></pre>
<p>To set the path without the interactive prompt:</p>
<pre><code># update-alternatives --set php /usr/bin/php8.4</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>In the tutorial, you have learned how to install PHP 8.4 on Ubuntu 24.04.</p>
<p>For additional help or useful information, we recommend you to check <a href="https://www.php.net/releases/8.4/en.php">the official PHP 8.4 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-php-8-4-on-ubuntu-24-04/">How to Install PHP 8.4 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-php-8-4-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1824</post-id>	</item>
		<item>
		<title>How to Install Drupal on Ubuntu 24.04</title>
		<link>https://www.linuxtuto.com/how-to-install-drupal-on-ubuntu-24-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-drupal-on-ubuntu-24-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 05 Aug 2024 13:30:01 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1779</guid>

					<description><![CDATA[<p>Drupal is an open-source content management system (CMS) used for building and managing websites and web applications. It is highly flexible and customizable, making it...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-drupal-on-ubuntu-24-04/">How to Install Drupal on Ubuntu 24.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Drupal is an open-source content management system (CMS) used for building and managing websites and web applications. It is highly flexible and customizable, making it suitable for a wide range of web projects, from simple blogs to complex enterprise websites.</p>
<p>It is used by a wide range of organizations, including educational institutions, non-profits, businesses, and government agencies, to build websites that require robust content management, high security, and flexibility.</p>
<p>In this tutorial, we will show you how to install Drupal on your 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>Ubuntu</strong> <strong>24.04</strong> operating system to make sure all existing packages are up to date:</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 Nginx webserver</span></h2>
<p>You can install Nginx via <strong>apt</strong> package manager by executing the following command.</p>
<pre><code># apt install nginx</code></pre>
<p>You can start the Nginx service and configure it to run on startup by entering the following commands:</p>
<pre><code># systemctl start nginx
# systemctl enable nginx</code></pre>
<p>Verify the status of the Nginx service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status nginx</code></pre>
<p>Output:</p>
<pre><code>● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:nginx(8)
   Main PID: 10412 (nginx)
      Tasks: 2 (limit: 2218)
     Memory: 1.7M (peak: 1.9M)
        CPU: 23ms
     CGroup: /system.slice/nginx.service
             ├─10412 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─10413 "nginx: worker process"</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and PHP extensions for Drupal</span></h2>
<p>By default, Ubuntu 24.04 comes with <a href="https://www.linuxtuto.com/how-to-install-php-8-3-on-ubuntu-22-04/">PHP version 8.3</a>.  You can install PHP and other supporting packages using the following command:</p>
<pre><code># apt install php php-{opcache,gd,curl,mysqlnd,intl,json,ldap,mbstring,mysqlnd,xml,zip}</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.3.6 (cli) (built: Jun 13 2024 15:23:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.6, Copyright (c), by Zend Technologies</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>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 mysql
# systemctl enable mysql</code></pre>
<p>Verify the status of the MySQL service using <strong>systemctl status</strong> command:</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: 24565 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
   Main PID: 24574 (mysqld)
     Status: "Server is operational"
      Tasks: 38 (limit: 2218)
     Memory: 362.8M (peak: 379.1M)
        CPU: 1.160s
     CGroup: /system.slice/mysql.service
             └─24574 /usr/sbin/mysqld</code></pre>
<p>By default, MySQL is not hardened. You can secure MySQL 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 MySQL 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 Drupal installation:</p>
<pre><code>mysql&gt; CREATE DATABASE drupaldb;
mysql&gt; CREATE USER 'drupaluser'@'localhost' IDENTIFIED BY 'Str0ngP@ss';
mysql&gt; GRANT ALL PRIVILEGES ON drupaldb. * TO 'drupaluser'@'localhost';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; exit;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Drupal</span></h2>
<p>The latest version of Drupal is available to <a href="https://www.drupal.org/project/drupal/releases/11.0.0">download</a> from their website. You can download it with the following command:</p>
<pre><code># wget https://ftp.drupal.org/files/projects/drupal-11.0.0.zip</code></pre>
<p>Extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip drupal-11.0.0.zip -d /var/www/</code></pre>
<p>Rename it to make it simpler:</p>
<pre><code># mv /var/www/drupal-11.0.0/ /var/www/drupal</code></pre>
<p>Enable permission for the Nginx webserver user to access the files:</p>
<pre><code># chown -R www-data:www-data /var/www/drupal/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Nginx for Drupal</span></h2>
<p>Create a new Nginx virtual host configuration file:</p>
<pre><code># nano /etc/nginx/conf.d/drupal.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code>server {
  listen 80;
  server_name your-domain.com www.your-domain.com;
  root /var/www/drupal;
  index index.php index.html;
  charset utf-8;
  location / {
    try_files $uri $uri/ /index.php?$args;
  }
  location ~ .php$ {
    fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
  }
}</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>To implement the changes, restart Nginx webserver:</p>
<pre><code># systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access Drupal Web Interface</span></h2>
<p>Open your web browser and type the URL <strong><code>https://your-domain.com</code></strong>. You should see the Drupal installation page.</p>
<p><img decoding="async" class="aligncenter size-large wp-image-1781" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-900x392.webp" alt="Drupal Choose Language" width="900" height="392" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-900x392.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-300x131.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-768x334.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-1536x668.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-1222x532.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-897x390.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01-684x298.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_01.webp 1914w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Choose your preferred language and hit <strong>Save and continue.</strong> You will get the following screen:</p>
<p><img decoding="async" class="aligncenter wp-image-1783 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-900x392.webp" alt="Drupal Choose profile" width="900" height="392" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-900x392.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-300x131.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-768x334.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-1536x669.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-1222x532.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-897x390.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02-684x298.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_02.webp 1916w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Choose <strong>Standard </strong>and hit<strong> Save and continue</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1784 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-900x507.webp" alt="Set up database" width="900" height="507" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-900x507.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-300x169.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-768x433.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-1536x865.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-1222x688.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-897x505.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03-684x385.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_03.webp 1916w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Fill in your database settings and hit <strong>Save and continue</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1785 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-900x391.webp" alt="Drupal Install site" width="900" height="391" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-900x391.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-300x130.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-768x334.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-1536x668.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-1222x532.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-897x390.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04-684x298.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_04.webp 1915w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Then fill in some basic information about your site and then hit <strong><code>Save and continue</code></strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-1786" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-900x514.webp" alt="" width="900" height="514" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-900x514.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-768x438.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-1536x877.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-1222x698.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-897x512.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05-684x390.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_05.webp 1890w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>You will get the dashboard in the following screen:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-1787 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-900x513.webp" alt="Drupal Dashboard" width="900" height="513" srcset="https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-900x513.webp 900w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-300x171.webp 300w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-768x438.webp 768w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-1536x876.webp 1536w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-1222x697.webp 1222w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-897x512.webp 897w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06-684x390.webp 684w, https://www.linuxtuto.com/wp-content/uploads/2024/08/drupal11_06.webp 1892w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Installation of Drupal has been completed. Now revert the permissions for the <strong>settings.php</strong> file:<span id="ezoic-pub-ad-placeholder-116" class="ezoic-adpicker-ad"></span></p>
<pre><code># chmod 644 /var/www/html/drupal/sites/default/settings.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 Drupal on Ubuntu 24.04 OS.</p>
<p>For additional help or useful information, we recommend you to check  <a href="https://www.drupal.org/documentation" target="_blank" rel="noopener">the official Drupal 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-drupal-on-ubuntu-24-04/">How to Install Drupal 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-drupal-on-ubuntu-24-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1779</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 loading="lazy" 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="auto, (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 loading="lazy" 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="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 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 Laravel on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-laravel-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-laravel-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Wed, 28 Feb 2024 16:00:38 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1707</guid>

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

					<description><![CDATA[<p>Dolibarr ERP is an open-source software suite designed to help businesses and organizations manage various aspects of their operations. It provides modules for a wide...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-dolibarr-erp-on-debian-12/">How to Install Dolibarr ERP on Debian 12</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Dolibarr ERP is an open-source software suite designed to help businesses and organizations manage various aspects of their operations. It provides modules for a wide range of business functions, making it a comprehensive solution for small and medium-sized enterprises (SMEs). Dolibarr is written in PHP and is often used as a web application, making it accessible from different devices with a web browser.</p>
<p>Dolibarr ERP is suitable for a variety of businesses, particularly those in the SME sector. It provides a cost-effective solution for managing key business processes and can be adapted to different industries and sectors. As an open-source solution, it offers flexibility and the ability to tailor the system to specific organizational needs.</p>
<p>In this tutorial, we will show you how to install Dolibarr ERP on Debian 12 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>Debian 12</b> operating system to the latest version with the following command:</p>
<pre><code># apt update &amp;&amp; apt upgrade</code></pre>
<p>Also, install necessary packages.</p>
<pre><code translate="no"># apt install curl nano wget unzip zip</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache webserver</span></h2>
<p>You can install it via <strong>apt</strong> package manager by executing the following command.</p>
<pre><code># apt install apache2</code></pre>
<p>Verify the status of the <strong>Apache</strong> service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code>● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running)
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 13773 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 13777 (apache2)
      Tasks: 7 (limit: 2273)
     Memory: 37.4M
        CPU: 494ms
     CGroup: /system.slice/apache2.service
             ├─13777 /usr/sbin/apache2 -k start
             ├─13778 /usr/sbin/apache2 -k start
             ├─13779 /usr/sbin/apache2 -k start
             ├─13780 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and required extensions</span></h2>
<p>By default, Debian12 comes with PHP version 8.2. To install PHP and the necessary extensions, run the following command:</p>
<pre><code># apt install php libapache2-mod-php php-cli php-intl php-json php-common php-mbstring php-imap php-mysql php-zip php-gd php-mbstring php-curl php-xml</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.2.7 (cli) (built: Jun  9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies</code></pre>
<p>Then edit the <strong>php.ini</strong> file:</p>
<pre><code># nano /etc/php/8.2/apache2/php.ini</code></pre>
<p>Change the following settings:</p>
<pre><code>memory_limit = 512M
post_max_size = 32M
upload_max_filesize = 32M
date.timezone = America/Chicago
</code></pre>
<p>Restart the Apache service to apply the changes:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p><a href="https://www.linuxtuto.com/how-to-install-mariadb-10-7-on-debian-11/">To install MariaDB</a> run the following command:</p>
<pre><code># apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the MariaDB service using <strong>systemctl status</strong> command:</p>
<pre><code># systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code>● mariadb.service - MariaDB 10.11.6 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
     Active: active (running)
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 10002 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 9 (limit: 2273)
     Memory: 242.0M
        CPU: 1.918s
     CGroup: /system.slice/mariadb.service
             └─10002 /usr/sbin/mariadbd
</code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code># mysql -u root</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Dolibarr installation:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE dolibarr;
MariaDB [(none)]&gt; CREATE USER 'dolibarr'@'localhost' IDENTIFIED BY 'Str0ngPassw0rd';
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON dolibarr. * TO 'dolibarr'@'localhost';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; EXIT;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Dolibarr</span></h2>
<p>The latest version of Dolibarr is available to <strong><a href="https://github.com/dolibarr/dolibarr/releases">download from GitHub</a></strong>. You can download it with the following command:</p>
<pre><code># wget https://github.com/Dolibarr/dolibarr/archive/refs/tags/19.0.0.zip</code></pre>
<p>Then extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code># unzip 19.0.0.zip -d /var/www/
# mkdir /var/www/dolibarr
# mv /var/www/dolibarr-19.0.0/htdocs/* /var/www/dolibarr
</code></pre>
<p>Then enable permission for the Apache webserver user to access the files:</p>
<pre><code># chown -R www-data:www-data /var/www/dolibarr/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache for Dolibarr</span></h2>
<p>To create a new VirtualHost file run the following commands:</p>
<pre><code># nano /etc/apache2/sites-available/dolibarr.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code> &lt;VirtualHost *:80&gt;
    ServerAdmin admin@your-domain.com
    DocumentRoot /var/www/dolibarr/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    &lt;Directory /var/www/dolibarr/&gt; 
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
    &lt;/Directory&gt; 

    ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
    CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined

 &lt;/VirtualHost&gt;</code></pre>
<p>Remember to replace <strong>your-domain.com</strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>To enable this site run the command:</p>
<pre><code># /usr/sbin/a2ensite dolibarr.conf</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code># systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access Dolibarr Web Interface</span></h2>
<p>To complete the setup go to your browser and visit <strong>http://your-domain.com.</strong></p>
<p><img 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 Install RainLoop on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-rainloop-on-debian-12/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Thu, 28 Dec 2023 13:30:11 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Let's Encrypt]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RainLoop]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1656</guid>

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

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

					<description><![CDATA[<p>PHP, which stands for &#8220;Hypertext Preprocessor,&#8221; is a server-side scripting language widely used for web development. PHP is often used to create dynamic web pages,...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-php-8-3-on-ubuntu-22-04/">How to Install PHP 8.3 on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PHP, which stands for &#8220;Hypertext Preprocessor,&#8221; is a server-side scripting language widely used for web development. PHP is often used to create dynamic web pages, handle forms, interact with databases, and perform various server-side tasks.</p>
<p>It has been a popular choice for web development for many years, and despite the emergence of other languages and frameworks, it continues to be widely used in the industry.</p>
<p>In this tutorial, we will show you how to install PHP 8.3 on a Ubuntu 22.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Update Operating System</span></h2>
<p>Update your <strong>Ubuntu 22.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">Add PHP Repository</span></h2>
<p>By default, <strong>PHP 8.3</strong> is not included in the Ubuntu 22.04 default repository.  So you will need to add <a href="https://deb.sury.org/">Ondrej Sury PPA</a> into your system.</p>
<p>First, install the required packages using the following command:</p>
<pre><code># apt-get install ca-certificates apt-transport-https software-properties-common</code></pre>
<p>Once all the packages are installed, add this PPA using the following command:</p>
<pre><code># add-apt-repository ppa:ondrej/php</code></pre>
<p>Once you are done, update the repository with the following command:</p>
<pre><code># apt-get update</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install PHP 8.3</span></h2>
<p>Now, you can install the PHP 8.3 using the following command:</p>
<pre><code># apt-get install php8.3</code></pre>
<p>Once the PHP is installed, you can check the PHP version on your system with the following command:</p>
<pre><code># php8.3 --version</code></pre>
<p>Output:</p>
<pre><code># PHP 8.3.0 (cli) (built: Nov 24 2023 08:50:08) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.0, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.0, Copyright (c), by Zend Technologies
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install PHP 8.3 for Apache</span></h2>
<p>To install PHP as an Apache module, execute:</p>
<pre class="wp-block-code language-bash" tabindex="0"><code class="language-bash" lang="bash"><span class="token function">#</span> <span class="token function">apt</span> <span class="token function">install</span> libapache2-mod-php8.3</code></pre>
<p>Then, restart Apache to integrate the new PHP module:</p>
<pre class="wp-block-code language-bash" tabindex="0"><code class="language-bash" lang="bash"><span class="token function">#</span> systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install PHP 8.3 FPM for Nginx</span></h2>
<p>For the Nginx web server, you need to install the FPM service, you can install it using the following command:</p>
<pre><code># apt install php8.3-fpm</code></pre>
<p>Once the installation has been completed, you can confirm that the <code>PHP-FPM</code> service has been installed correctly with the following command:</p>
<pre><code># systemctl status php8.3-fpm</code></pre>
<p>Output:</p>
<pre><code>● php8.3-fpm.service - The PHP 8.3 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php8.3-fpm.service; enabled; vendor preset: enabled)
     Active: active (running)
       Docs: man:php-fpm8.3(8)
    Process: 58796 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.3/fpm/pool.d/www.conf 83 (code=exited, status=0&gt;
   Main PID: 58793 (php-fpm8.3)
     Status: "Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req/sec"
      Tasks: 3 (limit: 2178)
     Memory: 7.5M
        CPU: 34ms
     CGroup: /system.slice/php8.3-fpm.service
             ├─58793 "php-fpm: master process (/etc/php/8.3/fpm/php-fpm.conf)
├─58794 php-fpm: pool www
└─58795 php-fpm: pool www</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Install PHP Extension</span></h2>
<p>Installing PHP extensions are simple with the below-mentioned syntax:</p>
<pre><code># sudo apt install php8.3-[extension]</code></pre>
<p>Replace [extension] with the extension you want to install, if you want to add multiple extensions then include them in braces:</p>
<pre><code># apt install php8.3-mysql php8.3-imap php8.3-ldap php8.3-xml php8.3-curl php8.3-mbstring php8.3-zip</code></pre>
<p>To check loaded PHP modules use the command:</p>
<pre><code># php8.3 -m</code></pre>
<p>Example Output:</p>
<pre><code>[PHP Modules]
..............
fileinfo
filter
ftp
gettext
hash
iconv
imap
json
ldap
libxml
mbstring
mysqli
mysqlnd
..............

[Zend Modules]
Zend OPcache</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Running PHP 8.3 with Other Versions </span></h2>
<p>Instead of removing <a href="https://www.linuxtuto.com/how-to-install-php-8-1-on-debian-11/">old PHP versions</a>, it is also possible to run multiple PHP versions side-by-side.</p>
<p>The <strong>update-alternatives</strong> command provides an easy way to switch between PHP versions for PHP CLI.</p>
<pre><code># update-alternatives --config php</code></pre>
<p>This brings up a prompt to interactively select the alternative PHP binary path that <code>php</code> points to.</p>
<pre><code>There are 2 choices for the alternative php (providing /usr/bin/php).

  Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/php8.3   81        auto mode
  1            /usr/bin/php8.1   81        manual mode
  2            /usr/bin/php8.3   83        manual mode</code></pre>
<p>To set the path without the interactive prompt:</p>
<pre><code># update-alternatives --set php /usr/bin/php8.1</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>In the tutorial, you have learned how to install PHP 8.3 on Ubuntu 22.04.</p>
<p>For additional help or useful information, we recommend you to check <a href="https://www.php.net/releases/8.3/en.php">the official PHP 8.3 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-php-8-3-on-ubuntu-22-04/">How to Install PHP 8.3 on Ubuntu 22.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-php-8-3-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1624</post-id>	</item>
	</channel>
</rss>
