# Webmail / PHPMyadmin Apache2 doesn't work

**URL:** <https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602>\
**Category:** Uncategorized\
**Created:** [February 4, 2025, 12:53am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602 "2025-02-04T00:53:27Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 4, 2025, 12:53am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/1 "2025-02-04T00:53:27Z")

</div>

See [[Bug] Webmail Apache2 + Nginx doesn't work · Issue #4734 · hestiacp/hestiacp · GitHub](https://github.com/hestiacp/hestiacp/issues/4734)

Fix:

```auto
/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

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 4, 2025, 12:53am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/2 "2025-02-04T00:53:40Z")

</div>

Pinned globally on February 4, 2025, 12:53am UTC



---

<div class="post-metadata">

**Author:** ![johnny](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/johnny/32/282_2.png) [@johnny](https://forum.hestiacp.com/u/johnny)\
**Post date:** [February 4, 2025, 1:50am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/3 "2025-02-04T01:50:29Z")

</div>

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:

```auto
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:~#

```

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 4, 2025, 1:53am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/4 "2025-02-04T01:53:36Z")

</div>

Please try again…

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

---

<div class="post-metadata">

**Author:** ![johnny](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/johnny/32/282_2.png) [@johnny](https://forum.hestiacp.com/u/johnny)\
**Post date:** [February 4, 2025, 1:59am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/5 "2025-02-04T01:59:01Z")

</div>

> [@eris](#):
>
> expected

that did it all fixed thanks @eris

---

<div class="post-metadata">

**Author:** ![radexspox](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@radexspox](https://forum.hestiacp.com/u/radexspox)\
**Post date:** [February 4, 2025, 2:01am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/6 "2025-02-04T02:01:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 4, 2025, 2:05am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/7 "2025-02-04T02:05:10Z")

</div>

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

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

```

Will solve the issue

---

<div class="post-metadata">

**Author:** ![miguelthepoog](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/miguelthepoog/32/2580_2.png) [@miguelthepoog](https://forum.hestiacp.com/u/miguelthepoog)\
**Post date:** [February 4, 2025, 10:00am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/8 "2025-02-04T10:00:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bakkar](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@bakkar](https://forum.hestiacp.com/u/bakkar)\
**Post date:** [February 4, 2025, 10:02am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/9 "2025-02-04T10:02:42Z")

</div>

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

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

```

then run this

```auto
apt update && apt upgrade

```

---

<div class="post-metadata">

**Author:** ![miguelthepoog](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/miguelthepoog/32/2580_2.png) [@miguelthepoog](https://forum.hestiacp.com/u/miguelthepoog)\
**Post date:** [February 4, 2025, 10:04am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/10 "2025-02-04T10:04:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bakkar](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@bakkar](https://forum.hestiacp.com/u/bakkar)\
**Post date:** [February 4, 2025, 10:11am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/11 "2025-02-04T10:11:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![miguelthepoog](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/miguelthepoog/32/2580_2.png) [@miguelthepoog](https://forum.hestiacp.com/u/miguelthepoog)\
**Post date:** [February 4, 2025, 10:15am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/12 "2025-02-04T10:15:05Z")

</div>

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

Thank you very much for your time.

---

<div class="post-metadata">

**Author:** ![bakkar](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@bakkar](https://forum.hestiacp.com/u/bakkar)\
**Post date:** [February 4, 2025, 10:25am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/13 "2025-02-04T10:25:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [February 4, 2025, 10:33am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/14 "2025-02-04T10:33:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![miguelthepoog](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/miguelthepoog/32/2580_2.png) [@miguelthepoog](https://forum.hestiacp.com/u/miguelthepoog)\
**Post date:** [February 4, 2025, 10:34am UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/15 "2025-02-04T10:34:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dbbuda](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/dbbuda/32/4158_2.png) [@dbbuda](https://forum.hestiacp.com/u/dbbuda)\
**Post date:** [February 4, 2025, 2:37pm UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/16 "2025-02-04T14:37:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AndresCuellar](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/andrescuellar/32/8031_2.png) [@AndresCuellar](https://forum.hestiacp.com/u/AndresCuellar)\
**Post date:** [February 4, 2025, 10:17pm UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/17 "2025-02-04T22:17:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AndresCuellar](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/andrescuellar/32/8031_2.png) [@AndresCuellar](https://forum.hestiacp.com/u/AndresCuellar)\
**Post date:** [February 5, 2025, 9:52pm UTC](https://forum.hestiacp.com/t/webmail-phpmyadmin-apache2-doesnt-work/17602/18 "2025-02-05T21:52:59Z")

</div>

Did you found any solution?
