FS#62579 - [postfixadmin] not available after upgrade from 3.2-1 to 3.2.2-3

Attached to Project: Community Packages
Opened by M.K. (schickel) - Thursday, 09 May 2019, 10:47 GMT
Last edited by David Runge (dvzrv) - Monday, 02 September 2019, 22:11 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After upgrading to 3.2.2-1 and reorganisation of installfolder and moving files to the new folder, postfixadmin is not available any more.

Additional info:
* package version: 3.2.2-3

apache-log:
[Thu May 09 12:45:54.866228 2019] [php7:warn] [pid 6785] [client 62.245.156.58:19533] PHP Warning: require_once(/etc/webapps/postfixadmin/config.inc.php): failed to open stream: Permission deni
ed in /usr/share/webapps/postfixadmin/public/index.php on line 26
[Thu May 09 12:45:54.866639 2019] [php7:error] [pid 6785] [client 62.245.156.58:19533] PHP Fatal error: require_once(): Failed opening required '/usr/share/webapps/postfixadmin/public/../config
.inc.php' (include_path='.:') in /usr/share/webapps/postfixadmin/public/index.php on line 26

Steps to reproduce:

Upgrade from 3.2-1 to 3.2.2-3
This task depends upon

Closed by  David Runge (dvzrv)
Monday, 02 September 2019, 22:11 GMT
Reason for closing:  Not a bug
Comment by M.K. (schickel) - Thursday, 09 May 2019, 11:01 GMT
I have change some permissions:

/var/cache/postfixadmin/templates_c must be writable für http
config.inc.php and config.local.php must be readable for others (http)

Afer this changes postfixadmin was available.

Maybe there must be included automaticly the change of permissions in the update/upgrade process
Comment by David Runge (dvzrv) - Saturday, 31 August 2019, 23:52 GMT
@schickel: Did you follow the instructions during upgrade and the updated wiki article? https://wiki.archlinux.org/index.php/PostfixAdmin#Apache
Postfixadmin _should not_ be run as the http user.
Comment by M.K. (schickel) - Monday, 02 September 2019, 08:39 GMT
@david: Why should I do this? ;) OK - I've missed this - my bad. Now add/change/implement everything and hopefully it will work as expected.

Thank you for the hint

Loading...