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

z-push-admin broken in v60 #2178

Closed
stylnchris opened this issue Oct 16, 2022 · 8 comments · Fixed by #2263
Closed

z-push-admin broken in v60 #2178

stylnchris opened this issue Oct 16, 2022 · 8 comments · Fixed by #2263

Comments

@stylnchris
Copy link

z-push-admin broken in v60

@stylnchris
Copy link
Author

z-push-admin doesn't work.

@hija
Copy link
Contributor

hija commented Oct 21, 2022

Seems like you found the solution yourself: https://discourse.mailinabox.email/t/version-60-for-ubuntu-22-04-is-released/9558/42
@JoshData any idea why the two lines got initially deleted?

@beemach
Copy link

beemach commented Nov 1, 2022

Just adding the summary from the MIAB forum into this specific issue to help it get resolved. The link @hija has provided above only provides part of the solution.

cinergi summarises here: https://discourse.mailinabox.email/t/version-60-for-ubuntu-22-04-is-released/9558/53

I managed to get Z-Push to work with a few changes to the PHP files, without resorting to installing PHP 7.4:

Edit /usr/local/lib/z-push/backend/ipcsharedmemory/ipcsharedmemoryprovider.php as per this post.

Edit /usr/local/lib/z-push/policies.ini as per the above post.

Add the symbolic links as per this post.

Edit /usr/local/lib/z-push/backend/caldav/caldav.php as per bob4os's instructions at the end of this thread.

@hija
Copy link
Contributor

hija commented Nov 1, 2022

Good points, @beemach.

Do you know why changing the policies.ini is required? I don't see how this fixes any issues caused by using PHP8 instead of PHP7.

@memesalot
Copy link

Just adding the summary from the MIAB forum into this specific issue to help it get resolved. The link @hija has provided above only provides part of the solution.

cinergi summarises here: https://discourse.mailinabox.email/t/version-60-for-ubuntu-22-04-is-released/9558/53

I managed to get Z-Push to work with a few changes to the PHP files, without resorting to installing PHP 7.4:

Edit /usr/local/lib/z-push/backend/ipcsharedmemory/ipcsharedmemoryprovider.php as per this post.

Edit /usr/local/lib/z-push/policies.ini as per the above post.

Add the symbolic links as per this post.

Edit /usr/local/lib/z-push/backend/caldav/caldav.php as per bob4os's instructions at the end of this thread.

Will this fix be pushed to the master branch any time soon? I don't want to be messing with the filesystem on my MITB box incase these changes break an official fix that get's released.

@hughsw
Copy link
Contributor

hughsw commented Dec 19, 2022

I ran a script based on the above links and comments. It fixed z-push for some basic usage by a Microsoft Mail client... Your mileage may vary.

z-push-fix.sh.txt

@matidau
Copy link
Contributor

matidau commented Feb 21, 2023

#2236
PR to fix the z-push repo with updated repo

@matidau
Copy link
Contributor

matidau commented May 21, 2023

Now that Z-Push is updated to 2.7.0 for v62, I've opened a PR to fix the rest of this issue #2263

You can create the below bash script and run as sudo to achieve the same.

#!/bin/bash
PHP_VER=8.0
rm -f /usr/sbin/z-push-{admin,top}
echo '#!/bin/bash' > /usr/sbin/z-push-admin
echo php$PHP_VER /usr/local/lib/z-push/z-push-admin.php '"$@"' >> /usr/sbin/z-push-admin
chmod 755 /usr/sbin/z-push-admin
echo '#!/bin/bash' > /usr/sbin/z-push-top
echo php$PHP_VER /usr/local/lib/z-push/z-push-top.php '"$@"' >> /usr/sbin/z-push-top
chmod 755 /usr/sbin/z-push-top

Feedback welcome.

(Edit: spelling)

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

Successfully merging a pull request may close this issue.

6 participants