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?