Re: apache virtualhost

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: Abdeldjalil FELLAH <shabakett(at)gmail(dot)com>
Cc: "pgadmin-support lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: Re: apache virtualhost
Date: 2021-01-07 05:40:41
Message-ID: CAM9w-_=XMhXKgo1V=X0Nacin2D6YTB0YiFg0KgZjFpnTCxztyA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi,

You need to provide the python-home as well. Refer -
https://www.pgadmin.org/docs/pgadmin4/4.29/server_deployment.html#apache-httpd-configuration-linux-unix

On Sat, Jan 2, 2021 at 1:20 PM Abdeldjalil FELLAH <shabakett(at)gmail(dot)com>
wrote:

> on centos8 and apache2.4 I installed postgres13 and pgadmin4 and a php
> application
>
> I configured single virtualhost as follow:
>
> <VirtualHost *:80>
> DocumentRoot /var/www/myapp1/public
>
> <Directory /var/www/myapp1>
> AllowOverride All
> </Directory>
>
> LoadModule wsgi_module modules/mod_wsgi.so
> WSGIDaemonProcess pgadmin processes=1 threads=25
> WSGIScriptAlias /pgadmin4
> /usr/lib/python3.6/site-packages/pgadmin4-web/pgAdmin4.wsgi
>
> <Location /pgadmin4>
> WSGIProcessGroup pgadmin
> WSGIApplicationGroup %{GLOBAL}
> Require all granted
> </Location>
> </VirtualHost>
>
> myapp1 works well on http://MY_PUBLIC_IP/
> but when I try to get pgadmin web interface at
> http://MY_PUBLIC_IP/pgadmin4 I got internal server error.
>
> how to configure apache virtual host to get:
>
> pgadmin4 at http://MY_PUBLIC_IP/pgadmin4 and myapp1 on http://MY_PUBLIC_IP
>
> or pgadmin4 at http://MY_PUBLIC_IP:50050/ and myapp1 at
> http://MY_PUBLIC_IP/
>

--
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | *edbpostgres.com*
<http://edbpostgres.com>
"Don't Complain about Heat, Plant a TREE"

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Chris Nicholas 2021-01-07 09:15:09 Re: CSRF Tokens Do Not Match - Kubernetes Deployment via LoadBalancer
Previous Message Aditya Toshniwal 2021-01-07 05:16:08 Re: CSRF Tokens Do Not Match - Kubernetes Deployment via LoadBalancer