.htaccess: Option FollowSymLinks not allowed here

Hi,

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.

Status: 
Active

Comments

It also happens when I extract files and attempting to install a brand new magento 2, loads nothing, the site just gives internal server error and the apache error log is as follows:

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

any help would be appreciated here.

Howdy -- thanks for giving Virtualmin a try!

It looks like you're using Virtualmin GPL though, the area here is for folks using Virtualmin Pro.

It's no problem to get support!

But for folks using Virtualmin GPL, you'd want to use the Forums for support. We monitor the Forums, along with lots of wonderful folks in the community.

What you can do is just copy and paste what you have there into a new Forum thread.

Thanks!

Thanks for the information, how does paid/pro support work? Is it through monthly fee? How much is a month?

I don't mind paying a monthly price if it is affordable so I can have issues resolved quicker.

Thanks.

You can see details on the professional licenses here, which include support:

https://www.virtualmin.com/buy/virtualmin

If you have any questions on those, feel free to let us know!

Note that while the Virtualmin 10 and Virtualmin 50 that you'll see in the above link currently include unlimited support, we're looking to limit those licenses to roughly 3 questions a month and 6 questions a month in the near future (the others should remain the same though).

It's just the 4 of us here, and as much as we love helping folks, we have very finite time/resources :-)

You can of course upgrade or downgrade your license at any time.

Note that for this particular question, one of the solutions we'd offer were you using Virtualmin Pro is to use the Install Script for Magento 2.

Virtualmin Pro provides an installer for it, along with a number of other web apps, and offers a simple method of getting that installed and performing the initial configuration.