<?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>WordPress Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/wordpress/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Mon, 10 Jul 2023 13:00:04 +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>WordPress Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/wordpress/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install WordPress on Debian 12</title>
		<link>https://www.linuxtuto.com/how-to-install-wordpress-on-debian-12/</link>
					<comments>https://www.linuxtuto.com/how-to-install-wordpress-on-debian-12/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 10 Jul 2023 13:00:04 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1435</guid>

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

					<description><![CDATA[<p>WordPress is a free, open-source and one of the most popular Content Management System (CMS) written in PHP, combined with MySQL/MariaDB database. Millions of websites...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-wordpress-on-almalinux-9/">How to Install WordPress on AlmaLinux 9</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>WordPress</strong> is a free, open-source and one of the most popular Content Management System (CMS) written in <strong>PHP</strong>, combined with <strong>MySQL/MariaDB</strong> database. Millions of websites are currently running on it and remains perhaps the most popular CMS for blogging, which was its original use case.</p>
<p>In this tutorial we&#8217;ll show you how to setup a <a href="https://www.linuxtuto.com/how-to-install-lamp-stack-on-almalinux-8-5/">LAMP (Linux, Apache, MySQL/MariaDB, PHP)</a> stack and install WordPress on AlmaLinux 9 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <b>AlmaLinux 9</b> operating system to make sure all existing packages are up to date:</p>
<pre><code>$ sudo dnf update &amp;&amp; sudo dnf upgrade -y</code></pre>
<p>Also, install:</p>
<pre><code>$ sudo dnf install nano wget unzip</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache web server on AlmaLinux 9</span></h2>
<p>You can install Apache via <code>dnf</code> package manager by executing the following command.</p>
<pre><code>$ sudo dnf install httpd</code></pre>
<p>You can start the <code>httpd</code> service and configure it to run on startup by entering the following commands:</p>
<pre><code>$ sudo systemctl start httpd
$ sudo systemctl enable httpd</code></pre>
<p>Verify the status of the <code>httpd</code> service using <code>systemctl status</code> command:</p>
<pre><code>$ sudo systemctl status httpd</code></pre>
<p>Output:</p>
<pre><code>● httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
     Active: active (running)
       Docs: man:httpd.service(8)
   Main PID: 10643 (httpd)
     Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec:   0 B/sec"
      Tasks: 213 (limit: 5738)
     Memory: 28.9M
        CPU: 198ms
     CGroup: /system.slice/httpd.service
             ├─10643 /usr/sbin/httpd -DFOREGROUND
             ├─10644 /usr/sbin/httpd -DFOREGROUND
             ├─10645 /usr/sbin/httpd -DFOREGROUND
             ├─10646 /usr/sbin/httpd -DFOREGROUND
             └─10647 /usr/sbin/httpd -DFOREGROUND</code></pre>
<p>If <code>firewalld</code> is enabled consider allowing <code>HTTP</code> and <code>HTTPS</code> services:</p>
<pre><code>$ sudo firewall-cmd --permanent --add-service={http,https}
$ sudo firewall-cmd --reload</code></pre>
<p>You can test to make sure everything is working correctly by navigating to:</p>
<pre><code>http://your-IP-address</code></pre>
<p>If everything is configured properly, you should be greeted by the default Apache2 Page, as seen below.</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-418 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page-1024x488.jpg" alt="AlmaLinux 9 Test Page" width="1024" height="488" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page-1024x488.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page-300x143.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page-768x366.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page-1536x732.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page-1222x582.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page-897x427.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page-684x326.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/AlmaLinux_Test_Page.jpg 1915w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install PHP and PHP extensions for WordPress</span></h2>
<p>You can install PHP and other supporting packages using the following command:</p>
<pre><code>$ sudo dnf install php php-curl php-bcmath php-gd php-soap php-zip php-curl php-mbstring php-mysqlnd php-gd php-xml php-intl php-zip</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code>php -v</code></pre>
<p>Output:</p>
<pre><code>PHP 8.0.13 (cli) (built: Nov 16 2021 18:07:21) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.13, Copyright (c) Zend Technologies
with Zend OPcache v8.0.13, 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>You can install MariaDB with the following command:</p>
<pre><code>$ sudo dnf install mariadb-server mariadb</code></pre>
<p>Start the database server daemon, and also enable it to start automatically at the next boot with the following commands:</p>
<pre><code>$ systemctl start mariadb
$ systemctl enable mariadb</code></pre>
<p>Verify the status of the <code>MariaDB</code> service using <code>systemctl status</code> command:</p>
<pre><code>$ sudo systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code>● mariadb.service - MariaDB 10.5 database server
     Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
     Active: active (running)
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 13088 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 11 (limit: 5738)
     Memory: 73.5M
        CPU: 390ms
     CGroup: /system.slice/mariadb.service
             └─13088 /usr/libexec/mariadbd --basedir=/usr
</code></pre>
<p>Once the database server is installed, run the following command to secure your MariaDB server:</p>
<pre><code>$ sudo mysql_secure_installation</code></pre>
<p>Use the following options for the prompt.</p>
<pre><code>Enter current password for root (enter for none): <strong>Just press the Enter</strong>
Set root password? [Y/n]: <strong>Y</strong>
New password: <strong>Enter your password</strong>
Re-enter new password: <strong>Repeat your password</strong>
Remove anonymous users? [Y/n]: <strong>Y</strong>
Disallow root login remotely? [Y/n]: <strong>Y</strong>
Remove test database and access to it? [Y/n]:  <strong>Y</strong>
Reload privilege tables now? [Y/n]:  <strong>Y</strong></code></pre>
<p>Restart the database server for the changes to take effect.</p>
<pre><code>$ sudo systemctl restart mariadb</code></pre>
<p>Login to MariDB shell using the following command:</p>
<pre><code>$ sudo  mysql -u root -p</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 wordpress_db;
MariaDB [(none)]&gt; CREATE USER 'wordpress_user'@'localhost' IDENTIFIED BY 'PaSSw0rd';
MariaDB [(none)]&gt; GRANT ALL ON wordpress_db.* TO 'wordpress_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: Download WordPress on AlmaLinux 9</span></h2>
<p>We will now download the latest version of WordPress from the <a href="https://wordpress.org/download/">WordPress Official site</a>.</p>
<p>Use the following command to download WordPress:</p>
<pre><code>$ sudo wget https://wordpress.org/latest.zip</code></pre>
<p>Extract file into the folder <strong>/var/www/html/</strong> with the following command,</p>
<pre><code>$ sudo unzip latest.zip -d /var/www/html/</code></pre>
<p>Change the permission of the website directory:</p>
<pre><code>$ sudo chown -R apache:apache /var/www/html/wordpress/
$ sudo chcon -t httpd_sys_rw_content_t /var/www/html/wordpress -R</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache Web Server for WordPress</span></h2>
<p>Navigate to <code>/etc/httpd/conf.d</code> directory and run the following command to create a configuration file for your installation:</p>
<pre><code class="hljs shell"><span class="hljs-meta">$</span><span class="bash"> sudo nano /etc/httpd/conf.d/wordpress.conf</span></code></pre>
<p>Add the following content:</p>
<pre><code>&lt;VirtualHost *:80&gt;

ServerAdmin webmaster@your-domain.com

ServerName your-domain.com
ServerAlias www.your-domain.com
DocumentRoot /var/www/html/wordpress

&lt;Directory /var/www/html/wordpress/&gt;
        Options FollowSymlinks
        AllowOverride All
        Require all granted
&lt;/Directory&gt;

ErrorLog /var/log/httpd/your-domain.com_error.log
CustomLog /var/log/httpd/your-domain.com_access.log combined

&lt;/VirtualHost&gt;
</code></pre>
<p>Save the file and Exit.</p>
<p>Restart the Apache web server.</p>
<pre><code>$ sudo systemctl restart httpd</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Access WordPress Web Installer</span></h2>
<p>Open your browser type your domain e.g <code>http://your-domain.com</code>  and click on the <strong><code>Let's go!</code></strong> button to complete the required steps:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-424 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install-1024x487.jpg" alt="WordPress install Almalinux 9" width="1024" height="487" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install-1024x487.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install-300x143.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install-768x365.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install-1536x731.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install-1222x581.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install-897x427.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install-684x325.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/WordPress_Install.jpg 1911w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Provide the requested database information and click on the<strong> <code>Submit</code> </strong>button:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-427 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database-1024x487.jpg" alt="WordPress install database" width="1024" height="487" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database-1024x487.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database-300x143.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database-768x365.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database-1536x730.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database-1222x581.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database-897x426.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database-684x325.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-install-database.jpg 1915w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Start WordPress Installation by clicking on the <strong><code>Run the installation</code></strong> button:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-428 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation-1024x293.jpg" alt="WordPress run the installation" width="1024" height="293" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation-1024x293.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation-300x86.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation-768x220.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation-1536x440.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation-1222x350.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation-897x257.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation-684x196.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-run-installation.jpg 1916w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Provide the requested information and click on the<strong> <code>Install WordPress</code> </strong>button:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-429 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page-1024x584.jpg" alt="WordPress Welcome Page" width="1024" height="584" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page-1024x584.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page-300x171.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page-768x438.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page-1536x876.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page-1222x697.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page-897x512.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page-684x390.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-welcome-page.jpg 1888w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>Once the WordPress is installed, enter your administrator user, password and click on the<strong> <code>Log In</code></strong> button:</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-431 size-large" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login-1024x446.jpg" alt="WP Login Page" width="1024" height="446" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login-1024x446.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login-300x131.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login-768x334.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login-1536x669.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login-1222x532.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login-897x391.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login-684x298.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-login.jpg 1918w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>You will get the dashboard in the following screen:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-432 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard-1024x493.jpg" alt="WordPress Dashboard" width="1024" height="493" srcset="https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard-1024x493.jpg 1024w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard-300x145.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard-768x370.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard-1536x740.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard-1222x589.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard-897x432.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard-684x330.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2022/05/wordpress-dashboard.jpg 1891w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>That’s it. You have successfully installed WordPress CMS (Content Management System) on AlmaLinux 9 OS.</p>
<p>If you have any questions please leave a comment below.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-wordpress-on-almalinux-9/">How to Install WordPress on AlmaLinux 9</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-wordpress-on-almalinux-9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">415</post-id>	</item>
	</channel>
</rss>
