upgrade from 1.6.19 -> 1.7.4 on Rocky 9 w/apache fails

Author: jnewman67Created Sep 9, 2026Updated Sep 9, 2026

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

Fresh Rocky install, fully updated, with Apache. Server responds with default page when internal IP put into a browser.

Installed 1.6.19 fresh from tarball, created config using /installer subfolder, configured mysql database, roundcube login page appears.

downloaded 1.7.4 tarbal, used installto.sh to update to 1.7.4 - fully updates, and indicates .htaccess.new is in the /public_html folder.

1.6.19 has no .htaccess file in the root or /public_html subfolder. 1.7.4 has an empty .htaccess file and a populated .htaccess.new file

putting the server IP/roundcubemail into a browser brings up the complaint about how /public_html must be the document root. As I'm using virtual hosts, I have Alias commands in my /etc/httpd/conf.d/roundcubemail.conf file that point to the /usr/share/roundcubemail directory (/roundcubemail and /webmail). Adding /public_html to the end of these Alias commands resolve the problem and the roundcube login page appears.

never really found a reference that spelled out where /public_html actually needed to go, just vague references to it. Figured that out.

however, if I move the .htaccess.new file to .htaccess, it breaks the installation and the httpd error_log complains: /usr/share/roundcubemail/public_html/.htaccess: RewriteEngine not allowed here as long as the .htaccess.new file is not used, it works. mod_rewrite is installed and enabled by default - something about the rules in that file are causing issues. I found some references that said it the Allowoverride commands in the roundcubemail.conf file needed to be All instead of anything else (default is set to Limit), but that did not fix it.

Seems wrong to not use the .htaccess file that was generated but since it kills the installation, i'll wait for some indication its been figured out.

my apache roundcubemail.conf file is attached

roundcubemail.txt

if I have an issue with the config, this config works in 1.6.19 - it was the result of the upgrade to 1.7.4. :: edited for code clarification

What browser(s) are you seeing the problem on?

Firefox

What version of PHP are you using?

No response

What version of Roundcube are you using?

8.1.34

JavaScript errors

No response

PHP errors

/usr/share/roundcubemail/public_html/.htaccess: RewriteEngine not allowed here