Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1gIT-0006kU-8n for pgadmin-hackers@arkaria.postgresql.org; Fri, 21 Apr 2017 21:40:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d1gIS-0003yr-Jw for pgadmin-hackers@arkaria.postgresql.org; Fri, 21 Apr 2017 21:40:56 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d1gIR-0003yh-VB for pgadmin-hackers@postgresql.org; Fri, 21 Apr 2017 21:40:56 +0000 Received: from pb-smtp2.pobox.com ([64.147.108.71] helo=sasl.smtp.pobox.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d1gIK-0001RG-MB for pgadmin-hackers@postgresql.org; Fri, 21 Apr 2017 21:40:53 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 386C88AF35; Fri, 21 Apr 2017 17:40:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=subject:to :references:cc:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=CwlYULhznbi7 Ewa2bYxt4zc7tec=; b=CBnfHIj3bCX6dNTtFlUFF90/42tp4avlijeV8Qb+84S4 Wen2RbbkyQ9XxhMjZDREcgaKl38poNLR8n99KnZKx29HLk0e+HVLKiph6PZrYy/e mAjWLz4ysdHS9xcQCvZXpGGPtMK8y1bX7VA4PeLWjrAwTf8qces/A6JR2lpEdPk= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 311118AF34; Fri, 21 Apr 2017 17:40:46 -0400 (EDT) Received: from redhat.com (unknown [76.115.138.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 7EDCB8AF33; Fri, 21 Apr 2017 17:40:45 -0400 (EDT) Subject: Re: Install of pgadmin4 from package fails ... To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= References: <8ca2ba41-b46f-a89e-6b1b-4b7277348685@berkus.org> <1492765022.3215.2.camel@gunduz.org> <9d48ca84-daaa-dca4-b6c4-ab7e99e9b74a@berkus.org> Cc: pgadmin-hackers From: Josh Berkus Message-ID: <31f14480-46d0-03d8-8f13-b1ff6294f326@berkus.org> Date: Fri, 21 Apr 2017 14:40:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <9d48ca84-daaa-dca4-b6c4-ab7e99e9b74a@berkus.org> Content-Type: text/plain; charset=utf-8 X-Pobox-Relay-ID: 2D410F88-26DB-11E7-AB37-C260AE2156B6-30013111!pb-smtp2.pobox.com DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=berkus.org; h=subject:to:references:cc:from:message-id:date:mime-version:in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=ZxSw4QhTYL0eYOopFp+4km8KoDA=; b=Q2Mn5H91lKhadDiD6yPYf/+AH+TSAUvdx6m7t9qEVhpyQV2He4dUEiHRUGl2VzKI56Ttw+pmEURiHelMoflOfDjwtpZQpuiSAXwNuacIpLMLJVKmukIHaVfPi52NpNGoDhFGiGlfuEGhIJLhtPfa1mNoloA80Si69+cFxdEzA+8= Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org On 04/21/2017 02:14 PM, Josh Berkus wrote: > On 04/21/2017 01:57 AM, Devrim G=C3=BCnd=C3=BCz wrote: >> On RHEL 7 / Fedora 25: >> >> * systemctl enable pgadmin4-v1.service; systemctl start pgadmin4-v1.serv= ice >> * cp /etc/httpd/conf.d/pgadmin4-v1.conf.sample /etc/httpd/conf.d/pgadmin= 4- >> v1.conf >> * systemctl start httpd.service >> >> should be enough, at least this is what I just tested on my Fedora 25 bo= x. >=20 > So I just tried this, and it doesn't do any of the setup. >=20 > There's no config_local, and as far as I can tell the database isn't > created. It's hard to know for sure, though, because without a > config_local I'm not sure where it would be located. >=20 > Error: [Fri Apr 21 21:02:32.080337 2017] [wsgi:error] [pid 26] [remote > 76.115.138.49:35628] FileNotFoundError: [Errno 2] No such file or > directory: '/usr/share/httpd/.pgadmin/pgadmin4.log' >=20 > ... certainly there is no /usr/share/httpd/.pgadmin directory >=20 Aha, here's the problem. Setup is getting run as root, not as the user httpd. This means it's dropping .pgadmin into /root/, which the web server can't access; it's "home" directory is /usr/share/httpd. However, that directory isn't writable by the apache user, either. There isn't an easy fix for this; on a default Fedora or CentOS system, the only directory the apache user has read/write to is /tmp, as far as I know. Ideas? --=20 Josh Berkus Containers & Databases Oh My! --=20 Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers