Webmail / PHPMyadmin Apache2 doesn't work

See [Bug] Webmail Apache2 + Nginx doesn't work · Issue #4734 · hestiacp/hestiacp · GitHub

Fix:

/etc/apache2/conf.d/hestia-event.conf 
cp /usr/local/hestia/install/deb/apache2/hestia-event.conf /etc/apache2/conf.d/hestia-event.conf

1.9.1 has been released just run apt update && apt upgrade

2 Likes

Hi @eris thanks for the quick fix, jumped on the update when it came out, but now I cant update to 1.9.1. I get the following error:

root@web:~# apt update
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]
Get:2 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B]             
Hit:7 https://packages.sury.org/apache2 bookworm InRelease                     
Hit:8 https://packages.sury.org/php bookworm InRelease                         
Hit:3 https://deb.debian.org/debian bookworm InRelease                         
Hit:4 https://deb.debian.org/debian bookworm-updates InRelease                 
Hit:9 https://download.docker.com/linux/debian bookworm InRelease              
Hit:5 https://deb.debian.org/debian bookworm-backports InRelease               
Hit:6 https://deb.debian.org/debian-security bookworm-security InRelease       
Hit:10 https://deb.nodesource.com/node_20.x nodistro InRelease                 
Get:11 https://apt.hestiacp.com bookworm InRelease [24.4 kB]                   
Hit:12 https://nginx.org/packages/mainline/debian bookworm InRelease          
Get:13 https://apt.hestiacp.com bookworm/main amd64 Packages [4972 B]
Err:13 https://apt.hestiacp.com bookworm/main amd64 Packages
  File has unexpected size (4784 != 4972). Mirror sync in progress? [IP: 172.67.72.183 443]
  Hashes of expected file:
   - Filesize:4972 [weak]
   - SHA512:e68c491ca34a55b5b3934ee05126279f649246d90ecacc12dd2caf7793bedc02737e2325e830b93e5a9b836ac7040f06f74290620975f9382f2c0113db5ed5c8
   - SHA256:1ffdb556bffdf7e0fcfb0d5926e2549189d7e140b68e34bd5582c6823ae08e76
   - SHA1:bcd63aa338831c20d72b29b65a131d695911aaac [weak]
   - MD5Sum:56ec44b9d9203b93bdaf7751f31fea5c [weak]
  Release file created at: Tue, 04 Feb 2025 01:39:24 +0000
Reading package lists... Done 
E: Failed to fetch https://apt.hestiacp.com/dists/bookworm/main/binary-amd64/Packages.gz  File has unexpected size (4784 != 4972). Mirror sync in progress? [IP: 172.67.72.1]
   Hashes of expected file:
    - Filesize:4972 [weak]
    - SHA512:e68c491ca34a55b5b3934ee05126279f649246d90ecacc12dd2caf7793bedc02737e2325e830b93e5a9b836ac7040f06f74290620975f9382f2c0113db5ed5c8
    - SHA256:1ffdb556bffdf7e0fcfb0d5926e2549189d7e140b68e34bd5582c6823ae08e76
    - SHA1:bcd63aa338831c20d72b29b65a131d695911aaac [weak]
    - MD5Sum:56ec44b9d9203b93bdaf7751f31fea5c [weak]
   Release file created at: Tue, 04 Feb 2025 01:39:24 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
root@web:~#

Please try again…

Siging the packages took a bit longer then expected and Cloudflare Caching is also causing issues

2 Likes

that did it all fixed thanks @eris

I got that error on upgrade to 1.9.0 and to 1.9.1 too

nginx: [emerg] duplicate location “/pma” in /etc/nginx/conf.d/phppgadmin.inc:1
nginx: configuration file /etc/nginx/nginx.conf test failed

if [ -n “$DB_PGA_ALIAS” ]; then
old=$DB_PMA_ALIAS
$BIN/v-change-sys-db-alias pga “randomstring”
$BIN/v-change-sys-db-alias pga “$old”
fi

Should be
if [ -n “$DB_PGA_ALIAS” ]; then
old=$DB_PGA_ALIAS
$BIN/v-change-sys-db-alias pga “randomstring”
$BIN/v-change-sys-db-alias pga “$old”
fi

$BIN/v-change-sys-db-alias pga pga 

Will solve the issue

Good morning

if I run:

/etc/apache2/conf.d/hestia-event.conf
cp /usr/local/hestia/install/deb/apache2/hestia-event.conf /etc/apache2/conf.d/hestia-event.conf

I get the error:

root@panel:~# /etc/apache2/conf.d/hestia-event.conf
-bash: /etc/apache2/conf.d/hestia-event.conf: No such file or directory
root@panel:~# cp /usr/local/hestia/install/deb/apache2/hestia-event.conf /etc/apache2/conf.d/hestia-event.conf
cp: unable to create file ‘/etc/apache2/conf.d/hestia-event.conf’: No such file or directory

I understand that I have to do something else or add something but I don’t know what is missing.

it’s a mistake in their command just run this:

cp /usr/local/hestia/install/deb/apache2/hestia-event.conf /etc/apache2/conf.d/hestia-event.conf

then run this

apt update && apt upgrade

root@panel:~# cp /usr/local/hestia/install/deb/apache2/hestia-event.conf /etc/apache2/conf.d/hestia-event.conf
cp: cannot create regular file ‘/etc/apache2/conf.d/hestia-event.conf’: No such file or directory

I’m going to see if the directories and files exist or look for them where they are.

It will only work if you are at version 1.9.0 I think

Well, I have version 1.9.1, so I will have to look elsewhere for the problem.

Thank you very much for your time.

Why do you need to run that command if you are already at version 1.9.1?

ls -lah /etc/apache2/conf.d/

Sorry, I go back and forth and confused the thread, my problem is with roundcube and not with phpMyAdmin (in fact I have not tested PHPMyadmin apache

Sorry everyone, but how to fix it on nginx-only installation? Since I used flag not to install apache. Hestia cp 1.9.1

1 Like

I have the same problem, but i doesnot have apache, only nginx

Did you found any solution?