<?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>PyroCMS Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/pyrocms/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/pyrocms/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Wed, 01 Mar 2023 15:30:17 +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>PyroCMS Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/pyrocms/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install PyroCMS on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-pyrocms-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-pyrocms-on-ubuntu-22-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Wed, 01 Mar 2023 15:30:17 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PyroCMS]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1168</guid>

					<description><![CDATA[<p>PyroCMS is a popular open-source content management system (CMS) that is built on top of the Laravel PHP framework. It is a powerful and flexible...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-pyrocms-on-ubuntu-22-04/">How to Install PyroCMS on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>PyroCMS is a popular open-source content management system (CMS) that is built on top of the Laravel PHP framework. It is a powerful and flexible CMS that can be used to create websites, blogs, and online stores.</p>
<p>In this tutorial, we will guide you through the process of installing PyroCMS on Ubuntu 22.04.</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>$ sudo apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Nginx Web Server</span></h2>
<p>PyroCMS requires a web server to run, and we will be using the Nginx web server in this tutorial. To install Nginx, run the following command:</p>
<pre><code>$ sudo 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>$ sudo systemctl start nginx
$ sudo systemctl enable nginx</code></pre>
<p>Verify the status of the <code>Nginx</code> service using <code>systemctl status</code> command:</p>
<pre><code>$ sudo systemctl status nginx</code></pre>
<p>Output:</p>
<pre><code><span style="color: #00ff00;">●</span> nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: <span style="color: #00ff00;">active (running)</span>
       Docs: man:nginx(8)
    Process: 64219 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 64220 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 64310 (nginx)
      Tasks: 2 (limit: 2200)
     Memory: 3.3M
        CPU: 181ms
     CGroup: /system.slice/nginx.service
             ├─64310 "nginx: master process /usr/sbin/nginx -g daemon on; master_process on;"
             └─64313 "nginx: worker process"</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP and PHP extensions for PyroCMS</span></h2>
<p>PyroCMS requires PHP version 7.4 or later to be installed on your Ubuntu system. By default, Ubuntu 22.04 comes with PHP version 8.1.</p>
<p>To install PHP and the necessary extensions, run the following command:</p>
<pre><code>$ sudo apt install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear</code></pre>
<p>Once the installation is complete verify if PHP is installed:</p>
<pre><code>php -v</code></pre>
<pre><code>Output:
PHP 8.1.2-1ubuntu2.10 (cli) (built: Jan 16 2023 15:19:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.10, Copyright (c), by Zend Technologies
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install Composer dependency manager</span></h2>
<p>Composer is a dependency manager for PHP that is required for installing PyroCMS. To install Composer, run the following commands:</p>
<pre><code>curl -sS https://getcomposer.org/installer | php
sudo 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.4 2023-02-15 13:10:06
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Install MariaDB database server</span></h2>
<p>PyroCMS requires a database to store content and other information. In this tutorial, we will be using <a href="https://www.linuxtuto.com/how-to-install-mariadb-10-7-on-debian-11/">MariaDB</a>, a popular open-source database server.</p>
<p>To install the MariaDB database server, run the following command:</p>
<pre><code>$ sudo apt install mariadb-server mariadb-client</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><span style="color: #00ff00;">●</span> mariadb.service - MariaDB 10.6.12 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
     Active: <span style="color: #00ff00;">active (running)</span>
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 60189 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
    Process: 60190 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
    Process: 60192 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] &amp;&amp; VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   &amp;&amp; &gt;
    Process: 60235 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
    Process: 60237 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
   Main PID: 60221 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 9 (limit: 2200)
     Memory: 61.0M
        CPU: 541ms
     CGroup: /system.slice/mariadb.service
             └─60221 /usr/sbin/mariadbd</code></pre>
<p>Once the installation is complete, run the following command to secure your MariaDB server:</p>
<pre><code>$ sudo 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>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Create a New Database for PyroCMS</span></h2>
<p>Once you have installed MariaDB, you&#8217;ll need to create a new database and user for PyroCMS to use.</p>
<p>To do this, log in to your MariaDB server using the following command:</p>
<pre><code>$ sudo mysql -u root -p</code></pre>
<p>You will be prompted to enter your root password. Once you have entered your password, you will be taken to the MariaDB prompt.</p>
<p>Run the following commands to create a new database and user:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE pyrocms;
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON pyrocms.* TO 'pyro'@'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 7: Download and Install PyroCMS</span></h2>
<p>Create a new directory for your PyroCMS installation using the following command:</p>
<pre><code>$ sudo mkdir /var/www/pyrocms</code></pre>
<p>Download the latest stable release of PyroCMS from the command line:</p>
<pre><code>$ cd /var/www/pyrocms
$ sudo composer create-project pyrocms/pyrocms .</code></pre>
<p>Change ownership of the <code>/var/www/pyrocms</code> directory to <code>www-data</code>.</p>
<pre><code>$ sudo chown -R www-data:www-data /var/www/pyrocms</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Configure Nginx for PyroCMS</span></h2>
<p>Run the commands below to create a new VirtualHost file called <kbd>pyrocms</kbd> in the <strong>/etc/nginx/conf.d/</strong> directory.</p>
<pre><code>$ sudo nano /etc/nginx/conf.d/pyrocms.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/pyrocms/public;
  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.1-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>$ sudo systemctl restart nginx</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 9: Access PyroCMS Web Interface</span></h2>
<p>Open your web browser and type the URL <strong><code>http://your-domain.com</code></strong>. You should see the PyroCMS installation page.</p>
<p><img fetchpriority="high" decoding="async" class="size-large wp-image-1181 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer-900x515.jpg" alt="PyroCMS Installer" width="900" height="515" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer-900x515.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer-300x172.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer-768x439.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer-1536x878.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer-1222x699.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer-897x513.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer-684x391.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_installer.jpg 1889w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Follow the on-screen instructions to complete the installation process. Agree to the license agreement and provide all the information like a database connection and creating an admin user.</p>
<p>Then click on the <strong>Install</strong> button, you should see the following page:</p>
<p><img decoding="async" class="size-large wp-image-1183 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login-900x417.jpg" alt="PyroCMS Login or Webpage" width="900" height="417" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login-900x417.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login-300x139.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login-768x356.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login-1536x712.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login-1222x566.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login-897x416.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login-684x317.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login.jpg 1888w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Now, click on <strong>Login</strong> button, you should see the following page:</p>
<p><img decoding="async" class="size-large wp-image-1184 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page-900x424.jpg" alt="PyroCMS login page" width="900" height="424" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page-900x424.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page-300x141.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page-768x362.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page-1536x724.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page-1222x576.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page-897x423.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page-684x323.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_login_page.jpg 1919w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Provide your admin credential and click on the <strong>Login</strong> button, you should see the <code>PyroCMS</code> dashboard in the following page:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-1185 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard-900x434.jpg" alt="PyroCMS dashboard" width="900" height="434" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard-900x434.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard-300x145.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard-768x371.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard-1536x742.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard-1222x590.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard-897x433.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard-684x330.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/02/pyrocms_dashboard.jpg 1885w" 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&#8217;s it! You have successfully installed <code>PyroCMS</code> on your Ubuntu 22.04 system. You can now start building your website using <code>PyroCMS</code>.</p>
<p>To access the <code>PyroCMS</code> admin area just append <code>/admin</code> to your site URL.</p>
<p>For additional help or useful information, we recommend you to check <a href="https://pyrocms.com/documentation">the official PyroCMS documentation</a>.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-pyrocms-on-ubuntu-22-04/">How to Install PyroCMS 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-pyrocms-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1168</post-id>	</item>
	</channel>
</rss>
