![]() ![]() Doing so is not hard and it can be a good exercise. If you are not sure whether PostgreSQL is already available or whether you can use it for your experimentation then you can install it yourself. If that is the case, you should obtain information from the operating system documentation or your system administrator about how to access PostgreSQL. It is possible that PostgreSQL is already installed at your site, either because it was included in your operating system distribution or because the system administrator already installed it. $ sudo nano /var/lib/pgsql/12/data/pg_hba.Before you can use PostgreSQL you need to install it, of course. 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 |