Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postfix admin don't work after moving from php 7.4 to 8.0.5 #481

Closed
Arturitu12 opened this issue May 2, 2021 · 18 comments
Closed

Postfix admin don't work after moving from php 7.4 to 8.0.5 #481

Arturitu12 opened this issue May 2, 2021 · 18 comments

Comments

@Arturitu12
Copy link

After I moved from php 7.4 to 8.0.4 postfixadmin don't work, i didn't change any postfixadmin or database settings. When I try to connect to my domain under /postfixadmin i see HTTP 500 error, before update all works well.

@DavidGoodwin
Copy link
Member

Hi - what version of Postfixadmin are you using?

If you're using the latest version, please check 'setup.php' after authenticating with the setup password; it might give you some hints.

Failing that, check the Apache ( ? ) error log - sometimes this is /var/log/apache2/error.log but your configuration may differ.

@Arturitu12
Copy link
Author

Arturitu12 commented May 2, 2021

It's newest version
I have that error in log: PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/postfixadmin/functions.inc.php on line 730, i go to the following line:
image

Also any postfixadmin-cli commands don't work returning:

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /usr/share/postfixadmin/scripts/postfixadmin-cli.php on line 331

@DavidGoodwin
Copy link
Member

i think your version of postfixadmin is old; updating will fix it.

@Arturitu12
Copy link
Author

"postfixadmin is already the newest version (3.2.1-3)."

@DavidGoodwin
Copy link
Member

there are newer versions than that ... https://github.com/postfixadmin/postfixadmin/releases

@Arturitu12
Copy link
Author

So why ubuntu repository don't see it after apt-get update? Git clone downloading 3.2 too, I need manually extract this tar.gz?

@Arturitu12
Copy link
Author

When i try to run new version after manually extracted this tar.gz it says postfixadmin is no installed

@Arturitu12
Copy link
Author

i running my server at ubuntu 20.04

@DavidGoodwin
Copy link
Member

'this new version'

  • what version are you trying to install / use ?
  • I personally wouldn't mix a debian package and installing from source. I'd do: dpkg -r --purge postfixadmin and then configure / setup PostfixAdmin from a .tar.gz file

@Arturitu12
Copy link
Author

Arturitu12 commented May 2, 2021

When I installed postfixadmin 1st time i used this tutorial: https://www.linuxbabe.com/mail-server/postfixadmin-create-virtual-mailboxes-ubuntu-20-04 , it installed me 3.2.1.3 , ubuntu commands apt-get update and apt-get upgrade sees postfixadmin 3.2.1.3 as newest version, i really don't know how to install it from tar.gz

@Arturitu12
Copy link
Author

Arturitu12 commented May 2, 2021

I tried to install manually following the INSTALL.TXT but when i go to cinfigured url, setu.php doesen't display

@DavidGoodwin
Copy link
Member

are you sure there isn't another postfixadmin configuration within the webserver that's conflicting with what you're trying to use?

(dpkg --purge -r postfixadmin ?)

@Arturitu12
Copy link
Author

I purged, apache virualhost config is ok too

@Arturitu12
Copy link
Author

I just wondering why apt see only 3.2.1.3 when there is 3.3.8

@DavidGoodwin
Copy link
Member

because Debian/Ubuntu don't roll out version updates within a release - they will patch bugs / security issues, but that's all.

@Arturitu12
Copy link
Author

I turned off all other virtual apache hosts and still when i go to postfixadmin nothing load, when i type /setup.php i see error 403 even when www-data has priviliges to it

@Arturitu12
Copy link
Author

So ubuntu apt dont work for postfixadmin mhm

@Arturitu12
Copy link
Author

Ok I think better for to just switch back to php7.4 and wait for new erpository package ill close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants