If you’re working from a default PostgreSQL installation, then PostgreSQL will be configured with the user postgres. rpm Install PostgreSQL: sudo yum install -y postgresql15-server Optionally initialize the database and enable automatic start: sudo / usr / pgsql-15 / bin / postgresql-15. org / pub / repos / yum / reporpms / EL-7-x8664 / pgdg-redhat-repo-latest. ![]() Step 1: Switch to the PostgreSQL User: postgres. Install the repository RPM: sudo yum install -y https: / / download. $ sudo nano /var/lib/pgsql/12/data/pg_hba. PostgreSQL is installed per our tutorial on: How to Install and Connect to PostgreSQL on CentOS 7. 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 So lets start the installation by running: 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 $ sudo firewall-cmd -zone=public -permanent -add-service=http 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |