Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d32L1-0002SV-En for pgadmin-hackers@arkaria.postgresql.org; Tue, 25 Apr 2017 15:25:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d32L0-0008PU-VR for pgadmin-hackers@arkaria.postgresql.org; Tue, 25 Apr 2017 15:25:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d32Kl-0007Yi-Ra for pgadmin-hackers@postgresql.org; Tue, 25 Apr 2017 15:24:56 +0000 Received: from [64.147.108.70] (helo=sasl.smtp.pobox.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d32Ke-00084m-Oa for pgadmin-hackers@postgresql.org; Tue, 25 Apr 2017 15:24:55 +0000 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 5C9196B798; Tue, 25 Apr 2017 11:24:25 -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=Fn2H+Shhw8LO gh5N/MTpXLU4Q2U=; b=cWvTkjsPw4r1+ecP0QUPdfWac827kFKVAxrLvR8hUmcd R8n3bcOWEEuq/wwxsMy7bwwMFbFtSab+CJN9uvhqTjZZ92INvln0ERSMFLR64zzC /FfUBFiPx37U0utOgNjv06Lv31VlksO20R972NSjo3Uo+3M+98fz4uOgzkib6ps= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 52E896B796; Tue, 25 Apr 2017 11:24:25 -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-smtp1.pobox.com (Postfix) with ESMTPSA id 6106A6B794; Tue, 25 Apr 2017 11:24:24 -0400 (EDT) Subject: Re: Install of pgadmin4 from package fails ... To: Dave Page References: <8ca2ba41-b46f-a89e-6b1b-4b7277348685@berkus.org> <1492765022.3215.2.camel@gunduz.org> <9d48ca84-daaa-dca4-b6c4-ab7e99e9b74a@berkus.org> <31f14480-46d0-03d8-8f13-b1ff6294f326@berkus.org> Cc: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= , pgadmin-hackers From: Josh Berkus Message-ID: <5c1f671e-ef59-ff82-5bd1-d6f9cf22abfd@berkus.org> Date: Tue, 25 Apr 2017 08:24:22 -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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: 43971280-29CB-11E7-B332-E680B56B9B0B-30013111!pb-smtp1.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=Fn2H+Shhw8LOgh5N/MTpXLU4Q2U=; b=RFhGKc7Xw9PTiDDANRRjcxVn4j4ksFshyzKY30eBBUyz1Lp236x/IV3tsfNR9LLFJJmVUKaZt8KBkEyB53kJtVpEDwCL+NJHpHPKt7Feza8VIysAi5R4c856fgOQcUBrZcxNMWyqG5tWA6N1O9EVwBvOSbsDJt1paFqGjJLtzhc= X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.108.70 (deferred) X-Pg-Spam-Score: -1.8 (-) 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/24/2017 01:23 AM, Dave Page wrote: > 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? > > > This is covered in the docs: > https://www.pgadmin.org/docs4/1.x/server_deployment.html > > Create a directory, setup the config to use it as required, then chown > the database after running setup (which is probably easier than trying > to run it as the apache user directly). > I know how to fix my personal install (and container image). But I want to fix the RPM package so that it's fixed for most users. Right now, install from RPM is kind of broken. Here's the changes that need to happen on the RPM: 1. Remove the QT dependencies for pgadmin4-v1-web 2. Have the RPM create /usr/share/httpd/.pgadmin, owned by apache user. (is this the best location? If not, what is?) 3. Fix the systemd unit file so that the pgadmin4 unit is owned by apache. 4. (optional) set up files according to FDL standards, putting configs for pgadmin4 in /etc/pgadmin and the db in /var/run/pgadmin (or similar). Devrim, where is the source for this rpm build? -- Josh Berkus Containers & Databases Oh My! -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers