mailwatch / MailWatch

MailWatch for MailScanner is a web-based front-end to MailScanner
http://mailwatch.org/
GNU General Public License v2.0
115 stars 66 forks source link

Problem after upgrading from ubuntu 18.04 to 20.04 and mailwatch 1.2.16 to 1.2.21 #1296

Closed alchemist18 closed 6 months ago

alchemist18 commented 6 months ago

Steps to reproduce

  1. update from ubuntu 18.04 to 20.04
  2. update from mailwatch 1.2.16 to 1.2.21
  3. THE PROBLEM APPEARED JUST WITH THE ubuntu update. The mailwatch update was an attempt to resolve the issue

Expected result

Login to watchmail site and see the full mailwatch page with all the information about the emails etc...

Actual result

Login to watchmail site successful BUT I only see very little information, no information about my emails... (see attachment).

Installation

Version and method

Server configuration

Client configuration

alchemist18 commented 6 months ago

forgot php information: I am using 8.3

alchemist18 commented 6 months ago

SOLVED 1) used php 7.2 (probably not necessary...) a2dismod php8.3 (or what you have) a2enmod php7.2

2) at the end of: /etc/apache2/apache2.conf ADD THE LINES: . <FilesMatch .php$> . SetHandler application/x-httpd-php . <./FilesMatch> . <FilesMatch .html> . SetHandler application/x-httpd-php . <./FilesMatch>

3) CHANGE /etc/apache2/mods-available/php7.2.conf, COMMENTING OUT "< ifModule mod_userdir.c:>" ... TO ..."< /ifModule>"

.....# < ifModule mod_userdir.c> .....# <Directory /home/*/public_html> .....# php_admin_flag engine Off .....# < /Directory> .....# < /IfModule>

(see the php7.2.conf.diff patch in attachment)

endelwar commented 6 months ago

Reading the log you posted there is a permission error on the filesystem that's mounted after /boot/efi, you can look it up with cat /proc/mounts.

Could it be that php 7.2 runs on different user that php 8.3?

alchemist18 commented 6 months ago

Hello, thank you for your answer, but the issue has been solved. See: https://github.com/mailwatch/MailWatch/issues/1296 It was a matter of manual configurations of Mailscanner and php that got lost after the upgrade of Ubuntu... My best greetings, Paolo

On 1/23/24, Manuel Dalla Lana @.***> wrote:

Reading the log you posted there is a permission error on the filesystem that's mounted after /boot/efi, you can look it up with cat /proc/mounts.

Could it be that php 7.2 runs on different user that php 8.3?

-- Reply to this email directly or view it on GitHub: https://github.com/mailwatch/MailWatch/issues/1296#issuecomment-1906348985 You are receiving this because you authored the thread.

Message ID: @.***>