<?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>pgadmin4 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/pgadmin4/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 18 Jan 2021 14:45:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install pgAdmin4 on CentOS 8?</title>
		<link>https://www.osradar.com/install-pgadmin4-centos-8/</link>
					<comments>https://www.osradar.com/install-pgadmin4-centos-8/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 21 Jan 2021 02:44:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos8]]></category>
		<category><![CDATA[Pgadmin]]></category>
		<category><![CDATA[pgadmin4]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27815</guid>

					<description><![CDATA[<p>Hello friends in this post, you will learn how to install pgAdmin4 on CentOS 8. This process is quite simple but requires some steps. pgAdmin is the most popular and features rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world. Thanks to this application, you can [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pgadmin4-centos-8/">How to install pgAdmin4 on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p id="introduction"><a name="introduction" href="#introduction"></a>Hello friends in this post, you will learn how to install pgAdmin4 on CentOS 8. This process is quite simple but requires some steps.</p>



<p><a href="https://www.pgadmin.org/">pgAdmin</a> is the most popular and features rich Open Source administration and development platform for <a href="https://www.osradar.com/tag/postgresql/">PostgreSQL</a>, the most advanced Open Source database in the world.</p>



<p>Thanks to this application, you can have a graphical interface to manage everything related to PostgreSQL. The main advantage of this program is the ability to view all the records we have stored. On the other hand, we can create connections and customize them to achieve even more security. It is also possible to create, modify, and delete databases.</p>



<p>So, pgAdmin4 becomes a printable application if you use a lot of PostgreSQL or if you want to use it for educational purposes.</p>



<p>So, let us install pgAdmin4 on CentOS 8.</p>



<h2 id="install-postgresql-on-centos-8"><a href="#install-postgresql-on-centos-8" name="install-postgresql-on-centos-8"></a>Install PostgreSQL on CentOS 8</h2>



<p>The first step we have to do is to have an instance of PostgreSQL up and running on our server. For this we have a post that can help you with this:</p>



<p><a href="https://www.osradar.com/install-postgresql-12-centos-8/">How to install PostgreSQL 12 on CentOS 8 / RHEL 8 / Oracle Linux 8?</a></p>



<p>Once PostgreSQL is correctly installed and configured then we can proceed to install PgAdmin4 without any problems.</p>



<h2 id="install-pgadmin4-on-centos-8"><a name="install-pgadmin4-on-centos-8" href="#install-pgadmin4-on-centos-8"></a>Install pgAdmin4 on CentOS 8</h2>



<p>The first thing we have to do is update the operating system.</p>



<pre class="wp-block-preformatted">dnf update</pre>



<p>Then, enable the EPEL repository that we will need to enhance the installation:</p>



<pre class="wp-block-preformatted">dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm</pre>



<p>Within this repository, there is one called <code>powertool</code> that we also have to enable.</p>



<pre class="wp-block-preformatted">dnf config-manager --set-enabled powertools</pre>



<p>And finally, install pgAdmin4 by running the following command:</p>



<pre class="wp-block-preformatted">dnf --enablerepo=powertools install pgadmin4</pre>



<p>After accepting the changes, the download and installation process will begin.</p>



<h3 id="preparing-pgadmin4-for-the-firt-use"><a href="#preparing-pgadmin4-for-the-firt-use" name="preparing-pgadmin4-for-the-firt-use"></a>Preparing pgAdmin4 for the firt use</h3>



<p>Before using pgAdmin4 it is advisable to make a few settings so as not to have problems of any kind.</p>



<p>First, start and enable the Apache webserver that was installed during the process.</p>



<pre class="wp-block-preformatted">systemctl enable httpd
systemctl start httpd</pre>



<p>pgAdmin comes with a default Apache configuration, which we can use or modify. In this case, we will copy it to take advantage of it.</p>



<pre class="wp-block-preformatted">cp /etc/httpd/conf.d/pgadmin4.conf.sample /etc/httpd/conf.d/pgadmin4.conf</pre>



<p>Apply the changes by restarting Apache:</p>



<pre class="wp-block-preformatted">systemctl restart httpd</pre>



<p>The next step is to create dedicated folders for pgAdmin log and lib. You can choose another location but the most pertinent is <code>/var/</code></p>



<pre class="wp-block-preformatted">mkdir -p /var/lib/pgadmin4/
mkdir -p /var/log/pgadmin4/</pre>



<p>You can then configure pgAdmin4 to tell it to use the paths of the folders you have created.</p>



<pre class="wp-block-preformatted">nano /usr/lib/python3.6/site-packages/pgadmin4-web/config_distro.py</pre>



<p> And add the following lines:</p>



<pre class="wp-block-preformatted"><code data-origin="<pre&gt;<code&gt;LOG_FILE = '/var/log/pgadmin4/pgadmin4.log
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions
STORAGE_DIR = '/var/lib/pgadmin4/storage
</code&gt;</pre&gt;
<p&gt;">LOG_FILE = '/var/log/pgadmin4/pgadmin4.log</code>
<code data-origin="<pre&gt;<code&gt;LOG_FILE = '/var/log/pgadmin4/pgadmin4.log
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions
STORAGE_DIR = '/var/lib/pgadmin4/storage
</code&gt;</pre&gt;
<p&gt;">SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db</code>
<code data-origin="<pre&gt;<code&gt;LOG_FILE = '/var/log/pgadmin4/pgadmin4.log
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions
STORAGE_DIR = '/var/lib/pgadmin4/storage
</code&gt;</pre&gt;
<p&gt;">SESSION_DB_PATH = '/var/lib/pgadmin4/sessions</code>
<code data-origin="<pre&gt;<code&gt;LOG_FILE = '/var/log/pgadmin4/pgadmin4.log
SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db
SESSION_DB_PATH = '/var/lib/pgadmin4/sessions
STORAGE_DIR = '/var/lib/pgadmin4/storage
</code&gt;</pre&gt;
<p&gt;">STORAGE_DIR = '/var/lib/pgadmin4/storage </code></pre>



<p>Save the changes, and then close the file.</p>



<p>Now define the username and password that we will use to access pgAdmin4.</p>



<pre class="wp-block-preformatted">python3 /usr/lib/python3.6/site-packages/pgadmin4-web/setup.py </pre>



<p>And there you will have to set the password.</p>



<figure class="wp-block-image alignnone size-full wp-image-27819"><img loading="lazy" width="991" height="218" src="https://www.osradar.com/wp-content/uploads/2021/01/1-8.png" alt="1.- Configure a new admin for pgAdmin4" class="wp-image-27819" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-8.png 991w, https://www.osradar.com/wp-content/uploads/2021/01/1-8-300x66.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-8-768x169.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-8-696x153.png 696w" sizes="(max-width: 991px) 100vw, 991px" /><figcaption>1.- Configure a new admin for pgAdmin4</figcaption></figure>



<p>Assign Apache to be the owner of the created directories.</p>



<pre class="wp-block-preformatted">chown -R apache:apache /var/lib/pgadmin4
chown -R apache:apache /var/log/pgadmin4</pre>



<p>Apply all changes by restarting Apache and PostgreSQL.</p>



<pre class="wp-block-preformatted">systemctl restart httpd
systemctl restart postgresql-12 </pre>



<p>Now we can use it.</p>



<h2 id="testing-the-installation"><a href="#testing-the-installation" name="testing-the-installation"></a>Testing the installation</h2>



<p>Now we can access <code>http://your-server/pgadmin4</code> and you should see the following screen</p>



<figure class="wp-block-image alignnone size-full wp-image-27817"><img loading="lazy" width="1366" height="669" src="https://www.osradar.com/wp-content/uploads/2021/01/1-7.png" alt="2.- pgAdmin login screen" class="wp-image-27817" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-7.png 1366w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/1-7-1068x523.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption>2.- pgAdmin login screen</figcaption></figure>



<p>Now login with your credentials and you will see the pgAdmin main screen. This proves that everything works.</p>



<figure class="wp-block-image alignnone size-full wp-image-27818"><img loading="lazy" width="1366" height="669" src="https://www.osradar.com/wp-content/uploads/2021/01/2-8.png" alt="3.- pgAdmin4 running on CentOS 8" class="wp-image-27818" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2-8.png 1366w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2-8-1068x523.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption>3.- pgAdmin4 running on CentOS 8</figcaption></figure>



<p>All you have to do now is add your PostgreSQL instance.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>pgAdmin4 is a vital tool to manipulate PostgreSQL visually and very easily. Its potentials are vast and it is recommended that you visit the project website to learn more about it.</p>



<footer style="position: fixed; font-size: .8em; text-align: right; bottom: 0px; margin-left: -25px; height: 20px; width: 100%;">generated by <a href="http://pad.haroopress.com" target="_blank" rel="noopener">haroopad</a></footer>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-pgadmin4-centos-8/">How to install pgAdmin4 on CentOS 8?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-pgadmin4-centos-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
