![]() ![]() WSGIScriptAlias / /usr/lib/python2.7/site-packages/pgadmin4-web/gi WSGIDaemonProcess pgadmin processes=1 threads=25 – Create a new apache virtual host file and add the following lines # vi /etc/httpd/conf.d/nf Create the Apache Virtual Host for PGAdmin 4 # chcon -R -t httpd_sys_content_rw_t "/var/lib/pgadmin4/" Step 3. – If the SeLinux is enabled, adjust the SELinux policy using the following commands: # chcon -R -t httpd_sys_content_rw_t "/var/log/pgadmin4/" # chown -R apache:apache /var/log/pgadmin4 – Change the ownership of the configuration database directory to the user Apache: # chown -R apache:apache /var/lib/pgadmin4 NOTE: Configuring authentication for SERVER mode.Įnter the email address and password to use for the initial pgAdmin user account: # python /usr/lib/python2.7/site-packages/pgadmin4-web/setup.py – Run the following command to create the configuration database. STORAGE_DIR = '/var/lib/pgadmin4/storage' SQLITE_PATH = '/var/lib/pgadmin4/pgadmin4.db' ![]() LOG_FILE = '/var/log/pgadmin4/pgadmin4.log' # vi /usr/lib/python2.7/site-packages/pgadmin4-web/config_distro.py Open config_distro.py file and add the following settings: – In order to configure pgAdmin to run in server mode properly as a web application, it may be necessary to specify the path of the PgAdmin database, Sessions and Log file. – Use the following command to install PgAdmin 4 v2 # yum install pgadmin4-v2 Step 1. – To install PgAdmin4 v2, we are going to use the PostgreSQL RPM, use the following command to install the PostgreSQL repository: # yum install -y How to install PgAdmin 4 in Server Mode as a Web Application using WSGI on Ubuntu 18.04 LTS / Ubuntu 16.04 LTS.How to install pgAdmin 4 in Server mode on Ubuntu 16.04 LTS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |