To Virtualmin
I have some issues with some sites after migration to a new server. I followed the guide below to move from a Centos 5 to Centos 6 solution. http://www.virtualmin.com/documentation/system/migrate
Please be advised that the reason for Centos 6 instead of Centos 7 is due to some PHP legacy code.
I have found a couple of sites having issues showing their sites after the migration. The first three sites I ended up deleting them and creating them from scratch. But now I have received another message with the same content, site doesn't show.
So I started digging a little round and noticed that the site seems empty when opening the URL. I only receive the following.
Index of / Name Last modified Size Description
If I look into the public_html directory it's not empty but I can't paste the FQDN / URL into the browser for JPG files etc. located directly in the public_html folder?? Then I went into the Apache Access Log and Error Log and I noticed the following in the error log. File does not exist: /var/www/html/06.jpg
It seems that the site is located in /var/www/html/ and not under /home/hagstroem/public_html as defined in the httpd.conf. When I look into the httpd.conf file the directory configuration looks just fine.
Options -Indexes +IncludesNOEXEC +SymLinksifOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/hagstroem/fcgi-bin/php5.fcgi .php FCGIWrapper /home/hagstroem/fcgi-bin/php5.fcgi .php5 AddType application/x-httpd-php .php
So what's going on here that the Apache service looks into a different directory than setup in the httpd.conf file? I wonder if I have more sites with the same behavior, I haven't validated all 200 sites.
I look forward to hear from you.
PS. How do I subscribe to my own or other posts of interest, the new forum seems / feels more difficult to navigate and I don't have the same overview as the old forum :( I wasn't able to submit the support ticket using my Virtualmin Server?
- Tim
Comments
Submitted by andreychek on Mon, 06/06/2016 - 08:45 Comment #1
Howdy -- yeah CentOS 6 is no problem, and you're right that not all web apps would support the PHP version available on newer distros.
It sounds like you're seeing an issue of the wrong site showing up. There could be some sort of IP address mismatch between what Apache is using, and what the server is configured to use.
There are details on how to resolve that issue here:
https://www.virtualmin.com/documentation/web/troubleshooting#toc-webserv...
Take a peek at that, and let us know if that helps!
Yeah there are some improvements that need to be made as far as the new site is concerned... what you described is one of them. I'll follow up with Joe to see about making it possible to subscribe to posts. He did attempt that previously, but I don't think it's working properly.
Submitted by -eclipse- on Tue, 06/21/2016 - 06:16 Pro Licensee Comment #2
Hi Eric
I noticed that the DocumentRoot directory was missing. When I added that it started working.
Submitted by andreychek on Tue, 06/21/2016 - 10:18 Comment #3
Ah, well that's certainly a problem... nice find though!
So some of your migrated domains are working just fine, but this one in particular was missing it's DocumentRoot? To your knowledge, no others (except perhaps the ones you deleted) are missing that?