![]() $ sudo nano /var/lib/pgsql/12/data/pg_hba. Run the follwing command (i'am using nano editor ,if you are using vim just replace nano with vi): Now we need to configure the Postgresql files: $ sudo /usr/pgsql-12/bin/postgresql-12-setup initdb The following commands are Optional to initialize the database and enable automatic start: $ sudo yum install -y postgresql12-server See section Postgres Tuning in the installation page for the. So lets start the installation by running: Next tune the postgresql configuration, which is located in /var/lib/pgsql/data/nf. Note !: on the following commands i'am using PostgreSQL 12 so dont forget to replace the number 12 with your own version. In this tutorial we are using PostgreSQL version 12, if you would like to install any other version you can visit this website and they will provide you with necessary commands to use. Now you can check from the terminal your php version by running: $ sudo yum-config-manager -enable remi-php74 Just run the following commands and you'll have php installed $ sudo firewall-cmd -zone=public -permanent -add-port=5432/tcpīefore moving to next steps, we need first to setup php in our machine, in my case i'am using php 7.4 Just like with the command above, you will also need to press 'Y' at the prompts, rootd9d091127ce3 / yum install postgresql11-server. $ sudo firewall-cmd -zone=public -permanent -add-service=http Use YUM to pull and install the PostgreSQL 11 server (which also comes with the client). Then run the following commands and reload the firewalld service: Now lets configure our firewall, first you need to start your firewalld service by running the following command: ![]() ![]() Now run these commands to enable and start the apache service: Step 1: Install apache and Configure Firewall In this article we are going to install Postgresql-12 with PhpPgAdmin on Centos 7:Īfter connect to your server follow these Steps:
0 Comments
Leave a Reply. |