Hello guys,
I've used Virtualmin long time ago and I wanted to freshly install it for one client, since I have never done it from scratch,
So I installed Virtualmin with install script on Ubuntu16.04, updated all modules, then run Virtualmin hostmaster.
Then created virtual server and it all went smoothly. But when I got to install script for wordpress, I wanted to be on root path public_html due that I want my website to be run as example.com and not example.com/wordpress/.
Thing is, the website didn't load up and it gave me possibility to save a file called randomly and calling up application/x-httpd-php .
2 important information:
1) this doesn't happen when you create a website under some folder, but website ends up as example.com/wordpress/ adress
2) if you create website under wordpress folder, makeshift solution is to dump database, change path of website from example.com/wordpress/ to example.com Website can load up normally, you can access webmin and usermin.
I've seen many issues about this on forum, but I still haven't found solution other than workaround I came up. And that requires certain micromanagement and access to server which some users wont have and they cant create proper wordpress website.
I even tried editing /etc/apache2/mods-enabled/php7.0.conf and commenting out
SetHandler application/x-httpd-php
php_admin_flag engine Off
Didn't work.
I must be doing something wrong, tho these are really simple steps and workaround seems feezable that current Virtualmin has a bug a feezable fix we can come up with?
Thanks in advance, Shwele
Update:
When I clone a website that I fixed as explained, frontpage is broken and as if I created it in public_html folder. As well since it was manual change, when I clone it install wordpress script puts website under wordpress folder (you cant change install path from install script) but in database its stored as domain name (as I made the change).
Sidenote: What is strong point of clone feature if it doesn't clone domain1.org to domain2.org in database when it gets cloned?