.htaccess: Option FollowSymLinks not allowed here


New to webmin/virtualmin, love everything about the system but have an issue. I am using this just to host my own sites on my dedicated server,

I have migrated my magento 2 site to a new virtual server I created in virtualmin, changed the relevant env file with database details etc and also the links in core_config_data.

The front end website just gives me internal server error, the log file in home/mysite/logs/error_log has the following:

/home/mysite/public_html/.htaccess: Option FollowSymLinks not allowed here

After checking the web and here it says to change FollowSymLinks to SymLinksIfOwnerMatch, which I did in the Magento 2 public_html directory but all it does after that, is download a file every time I access it with a disk and windows tiny blue logo with the name “download” and numbers increment every time I access or reload the site.

I also ran this command: find /home -name “.htaccess” -type f -exec sed -i ‘s/FollowSymLinks/SymLinksIfOwnerMatch/g’ {} “;”

And now the magentto 2 site simply downloads a file as above every time I access it or reload the url.

Please help on how to resolve this as it is driving me nuts for the last three days!

Thanks in advance for any help to resolve this.

Are you by any chance using php? Ie index.php instead of index.html?

A quick google search landed me here,
[Solved] Virtualmin Error .htaccess: Option FollowSymLinks not allowed here

It might be what you’re looking for.