I have set up a new web server, clean install, and used the install script to install virtualmin. After that, I imported my backup from the previous install and have a couple issues.
For one server, I am getting a forbidden error when trying to browse to a location other than the root that is protected with an htaccess file. I think it has something to do with overrides, but I would like to understand how I can make this change stick between backups and restores. The apache config for this server is included at the end.
I have restored 3 servers and the all three show the first server's files that I restored. dvigroup.net is the first domain I restored and that domain resolves the correct doc root. pawspc.org was restored as well, but is not showing it's own doc root, but the dvigroup.net doc root.
What does this happen and can I prevent it in the future? I seem to remember this happening every time I restore a backup.
Thank you in advance!
Comments
Submitted by archaic0 on Fri, 11/07/2014 - 15:10 Pro Licensee Comment #1
.
Submitted by archaic0 on Fri, 11/07/2014 - 15:20 Pro Licensee Comment #2
Sorry, I found out that the allowoverride setting needs to be in the main apache.conf file. Got that changed. I guess that could not really have been preserved in my case because I went from apache 2.2 on ubuntu 12 to apache 2.4 on ubuntu 14. Starting with a clean conf file was better. I just need to remember that setting.
However, now that I can get into a directory, my PHP file there is just dumping to the screen. And another place I have a php file just isn't running. This page should show the phpinfo(); output.
dvigroup.net/info/php
Submitted by archaic0 on Fri, 11/07/2014 - 15:24 Pro Licensee Comment #3
Changing the PHP execution method from Apache mod_php to fcgid made the info page work, but another page is still dumping to the screen.
Submitted by archaic0 on Fri, 11/07/2014 - 16:13 Pro Licensee Comment #4
I did not see a php mime type in apache for some reason. This is a new server that I just ran the virtualmin install script on, why are these things so out of whack?
I added a mime type for php application/x-httpd-php but nothing changed.
I installed phpmyadmin and that prompts with a file download instead of loading. So PHP still seems to be misconfigured.
Submitted by archaic0 on Fri, 11/07/2014 - 16:14 Pro Licensee Comment #5
And as a note, the re-check config says the system is ready for use by virtualmin.
Submitted by archaic0 on Fri, 11/07/2014 - 16:20 Pro Licensee Comment #6
Switched PHP mode back to mod_php and now everything works. What the heck?
The only thing left broken is that all of my various domains resolve to my root doc root.
Submitted by archaic0 on Fri, 11/07/2014 - 16:32 Pro Licensee Comment #7
This has gotten complex, I'm starting a clean issue with just the last problem.