Afterlogic邮件客户端安装错误

Afterlogic邮件客户端安装错误

我正在尝试手动安装Afterlogic邮件客户端Ubuntu 20.04 (x86_64)。我已从 下载了 zip 文件https://afterlogic.org/webmail-lite.Afterlogic位于此处:/var/lib/afterlogic

我使用Hestia控制面板。问题是当我运行http://XX.XXX.XX.XX/afterlogic/adminpanel进行配置,然后我收到以下错误:

页面未找到 糟糕!我们找不到您要查找的页面。请检查地址并重试。错误代码:404

网络服务器:

Proxy Server: nginx 
Web Server: apache2 
Backend Server: php-fpm

我认为 Web 服务器没有检测到Afterlogic路径。因此,我需要提供它。我已创建文件afterlogic.conf并将其放在此处:/etc/apache2/sites-available

afterlogic.conf文件内容:

<VirtualHost *:80>
ServerName MY_WEBSERVER_IP;
DocumentRoot /var/lib/afterlogic;
ServerAdmin [email protected];

ErrorLog ${APACHE_LOG_DIR}/afterlogic-error.log
CustomLog ${APACHE_LOG_DIR}/afterlogic-access.log combined

<Directory /var/lib/afterlogic>
      Options -Indexes
      AllowOverride All
      Order allow,deny
      allow from all
</Directory>
</VirtualHost>

我已经重启了服务器,清除了浏览器缓存,但仍然显示 404 错误。有什么办法可以修复它吗?谢谢。

另外,我还运行了这些命令来通过安装程序进行安装:https://afterlogic.com/docs/webmail-lite/installation/installing-on-debian-ubuntu-linux

安装的输出:

Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management:     https://landscape.canonical.com
* Support:        https://ubuntu.com/advantage
Last login: Tue Apr 5 12:34:49 2022 from XXX.XXX.XX.XXX
root@my-server:~# wget -qO - http://apt.afterlogic.com/afterlogic.asc | apt-key add -
OK
root@my-server:~# apt install gnupg
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnupg is already the newest version (2.2.19-3ubuntu2.1).
The following packages were automatically installed and are no longer required:
debugedit geoip-database libarchive13 libdw1 libgeoip1 liblua5.2-0 libnspr4 libnss3 librpm8 librpmbuild8 librpmio8
librpmsign8 rpm-common rpm2cpio
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
root@my-server:~# apt update
Hit:1 http://ppa.launchpad.net/ondrej/apache2/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:4 http://mirror.fra10.de.leaseweb.net/ubuntu focal InRelease
Get:5 http://mirror.fra10.de.leaseweb.net/ubuntu focal-updates InRelease [114 kB]
Hit:6 https://nginx.org/packages/mainline/ubuntu focal InRelease
Hit:7 https://apt.hestiacp.com focal InRelease
Get:8 http://mirror.fra10.de.leaseweb.net/ubuntu focal-backports InRelease [108 kB]
Get:9 http://apt.afterlogic.com/stable InRelease [1,086 B]
Get:10 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [415 kB]
Get:11 https://dlm.mariadb.com/repo/mariadb-server/10.6/repo/ubuntu focal InRelease [7,767 B]
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,381 kB]
Get:13 http://mirror.fra10.de.leaseweb.net/ubuntu focal-updates/main amd64 Packages [1,708 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [239 kB]
Get:15 http://mirror.fra10.de.leaseweb.net/ubuntu focal-updates/main i386 Packages [627 kB]
Get:16 http://mirror.fra10.de.leaseweb.net/ubuntu focal-updates/universe i386 Packages [676 kB]
Get:17 http://mirror.fra10.de.leaseweb.net/ubuntu focal-updates/universe amd64 Packages [915 kB]
Get:18 http://apt.afterlogic.com/stable Packages [5,733 B]
Fetched 6,312 kB in 1s (4,267 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
25 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@my-server:~# apt install afterlogic-lite
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
debugedit geoip-database libarchive13 libdw1 libgeoip1 liblua5.2-0 libnspr4 libnss3 librpm8 librpmbuild8 librpmio8
librpmsign8 rpm-common rpm2cpio
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
libapache2-mod-php libapache2-mod-php8.1 php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-dev
php8.1-fpm php8.1-gd php8.1-imap php8.1-intl php8.1-ldap php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-pspell
php8.1-readline php8.1-soap php8.1-xml php8.1-zip
Suggested packages:
dh-php
The following NEW packages will be installed:
afterlogic-lite libapache2-mod-php libapache2-mod-php8.1
The following packages will be upgraded:
php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-dev php8.1-fpm php8.1-gd php8.1-imap
php8.1-intl php8.1-ldap php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-pspell php8.1-readline php8.1-soap
php8.1-xml php8.1-zip
19 upgraded, 3 newly installed, 0 to remove and 6 not upgraded.
Need to get 26.3 MB of archives.
After this operation, 99.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-bcmath amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [15.5 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-zip amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [24.2 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-xml amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [106 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-soap amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [121 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-readline amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [12.8 kB]
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-pspell amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [8,924 B]
Get:7 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-opcache amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [333 kB]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-mysql amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [116 kB]
Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-mbstring amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [392 kB]
Get:10 http://apt.afterlogic.com/stable afterlogic-lite 9.3.2.build6 [18.4 MB]
Get:11 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-ldap amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [30.8 kB]
Get:12 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-intl amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [126 kB]
Get:13 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-imap amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [31.6 kB]
Get:14 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-gd amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [28.7 kB]
Get:15 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-fpm amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [1,673 kB]
Get:16 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-dev amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [487 kB]
Get:17 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-curl amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [33.7 kB]
Get:18 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-bz2 amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [10.7 kB]
Get:19 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-cli amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [1,659 kB]
Get:20 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-common amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [1,092 kB]
Get:21 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 libapache2-mod-php8.1 amd64 8.1.4-1+ubuntu20.04.1+deb.sury.org+1 [1,598 kB]
Get:22 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 libapache2-mod-php all 2:8.1+92+ubuntu20.04.1+deb.sury.org+2 [7,464 B]
Fetched 26.3 MB in 4s (7,426 kB/s)
(Reading database ... 91243 files and directories currently installed.)
Preparing to unpack .../00-php8.1-bcmath_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-bcmath (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../01-php8.1-zip_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-zip (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../02-php8.1-xml_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-xml (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../03-php8.1-soap_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-soap (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../04-php8.1-readline_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-readline (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../05-php8.1-pspell_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-pspell (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../06-php8.1-opcache_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-opcache (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../07-php8.1-mysql_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-mysql (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../08-php8.1-mbstring_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-mbstring (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../09-php8.1-ldap_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-ldap (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../10-php8.1-intl_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-intl (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../11-php8.1-imap_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-imap (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../12-php8.1-gd_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-gd (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../13-php8.1-fpm_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-fpm (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../14-php8.1-dev_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-dev (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../15-php8.1-curl_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-curl (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../16-php8.1-bz2_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-bz2 (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../17-php8.1-cli_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-cli (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Preparing to unpack .../18-php8.1-common_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-common (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) over (8.1.3-1+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package libapache2-mod-php8.1......................................................]
Preparing to unpack .../19-libapache2-mod-php8.1_8.1.4-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libapache2-mod-php8.1 (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ............................................]
Selecting previously unselected package libapache2-mod-php.##......................................................]
Preparing to unpack .../20-libapache2-mod-php_2%3a8.1+92+ubuntu20.04.1+deb.sury.org+2_all.deb ...
Unpacking libapache2-mod-php (2:8.1+92+ubuntu20.04.1+deb.sury.org+2) ..............................................]
Selecting previously unselected package afterlogic-lite.#######....................................................]
Preparing to unpack .../21-afterlogic-lite_9.3.2.build6_all.deb ...
Unpacking afterlogic-lite (9.3.2.build6) ...####################...................................................]
Setting up php8.1-common (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...................................................]
Setting up php8.1-imap (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...###...............................................]
Setting up php8.1-gd (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...#######.............................................]
Setting up php8.1-curl (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...#######...........................................]
Setting up php8.1-xml (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...##########.........................................]
Setting up php8.1-soap (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...###########.......................................]
Setting up php8.1-mysql (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...#############....................................]
Setting up php8.1-zip (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...#################..................................]
Setting up php8.1-pspell (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...################................................]
Setting up php8.1-readline (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...################..............................]
Setting up php8.1-opcache (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...###################............................]
Setting up php8.1-intl (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...########################..........................]
Setting up php8.1-ldap (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...###########################.......................]
Setting up php8.1-bcmath (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...###########################.....................]
Setting up php8.1-bz2 (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...################################...................]
Setting up php8.1-mbstring (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...#############################.................]
Setting up php8.1-cli (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...####################################...............]
Setting up php8.1-dev (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...#######################################............]
Setting up libapache2-mod-php8.1 (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...
Progress: [ 89%] [######################################################################################...........]
Creating config file /etc/php/8.1/apache2/php.ini with new version
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php8.1
Setting up afterlogic-lite (9.3.2.build6) ...############################################################..........]
PHP Warning: Module 'geoip' already loaded in Unknown on line 0
Installation is completed successfully.
Log into WebMail admin interface at:
http://localhost/afterlogic/adminpanel/
using login superadmin with empty password to configure product.
Users will be able to log into WebMail at:
http://localhost/afterlogic/
Setting up php8.1-fpm (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 8.1 FPM by default.##############################################################.........]
NOTICE: To enable PHP 8.1 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.1-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up libapache2-mod-php (2:8.1+92+ubuntu20.04.1+deb.sury.org+2) ...##################################........]
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.15) ...
Processing triggers for php8.1-cli (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for libapache2-mod-php8.1 (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...#####################......]
Processing triggers for php8.1-fpm (8.1.4-1+ubuntu20.04.1+deb.sury.org+1) ...##################################....]
NOTICE: Not enabling PHP 8.1 FPM by default.####################################################################...]
NOTICE: To enable PHP 8.1 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.1-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
root@my-server:~# reboot
Connection to XX.XXX.XX.XX closed by remote host.
Connection to XX.XXX.XX.XX closed.

C:\Windows\system32>ssh -R 8080:localhost:80 [email protected]
[email protected]'s password:
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-107-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management:     https://landscape.canonical.com
* Support:        https://ubuntu.com/advantage
Last login: Tue Apr 5 14:03:36 2022 from XXX.XXX.XX.XXX
root@my-server:~find / -name afterlogic
/etc/afterlogic
/usr/share/doc/afterlogic
/usr/share/afterlogic
/usr/share/afterlogic/vendor/afterlogic
root@my-server:~#

但它仍然显示 404 错误。

截屏: 错误 404 图片

答案1

我已经修复了这个 Afterlogic 问题。

解决方案:

  1. 在此处创建afterlogic目录:/var/www/html/,因此路径将是:/var/www/html/afterlogic
  2. 导航到此目录并将档案内容解压缩afterlogic到此目录:unzip afterlogic.zip
  3. 打开浏览器并导航至:http://XX.XXX.XX.XX/afterlogic/,您将收到 500 错误。
  4. 导航到文件/var/www/html/afterlogic并删除它.htaccess。此文件不是必需的,因为该/data目录受另一个文件的保护,如果有人试图通过互联网访问它,.htaccess将会导致错误。500
  5. 您将进入登录页面:http://XX.XXX.XX.XX/afterlogic/,但由于存在另一个错误,您将无法对其进行配置:系统未配置。因此,要修复此问题,请运行以下命令:chown -R www-data:www-data /var/www/html/afterlogic。此命令将设置适当的权限。
  6. 现在,您可以配置Afterlogic邮件客户端,一切都应该正常工作。

问题已解决。谢谢。

相关内容