I updated my version of CentOS 6 to 6.10. This seemed to work fine. However, now all of the websites and mailservers are not working. Websites now take me to the Apache 2 Test Page and mailservers return a 404. The sites are still there, but not being accessed.
Likely I have missed a simple step somewhere.
Any advice would be appreciated.
Thanks.
Updated, now only getting the test page
-
- Posts: 5
- Joined: 2012/06/16 22:31:20
- Contact:
- KernelOops
- Posts: 417
- Joined: 2013/12/18 15:04:03
- Location: xfs file system
Re: Updated, now only getting the test page
Usually that happens when you update httpd packages that re-create /etc/httpd/conf.d/*.conf files.
All *.conf files under /etc/httpd/conf.d/ will be automatically loaded by httpd, so whatever extra files appeared with the updated packages will cause havoc on many installations. My suggestion is to look there for new .conf files and remove them.
Also check the base /etc/httpd/conf/httpd.conf file for any modifications that you are not aware of.
All *.conf files under /etc/httpd/conf.d/ will be automatically loaded by httpd, so whatever extra files appeared with the updated packages will cause havoc on many installations. My suggestion is to look there for new .conf files and remove them.
Also check the base /etc/httpd/conf/httpd.conf file for any modifications that you are not aware of.
--
R.I.P. CentOS
--
R.I.P. CentOS

--
Re: Updated, now only getting the test page
Also, and perhaps more likely, an update to the httpd package will reset all modified permissions and ownership on all files and directories that are owned by the httpd package. So, for example, if you changed the permission on /var/www/html, it will have been reset to default.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke
-
- Posts: 5
- Joined: 2012/06/16 22:31:20
- Contact:
Re: Updated, now only getting the test page
Many thanks for your replies. I am still learning about all of this.
Looking at etc/httpd/conf.d and there don't appear to be any files with a creation date of yesterday.
Similarly, httpd.conf was last edited two weeks ago, and I never touched this to make any changes.
I also never changed permissions in the past.
I assume that a pathway is not set correctly somewhere. Would this also affect the mailserver, as I am getting a 404 on my webmail too?
Thanks.
EDIT - After consulting with my web hosts, they suggested rebuilding the config files via --reconfigure-all..... and it worked!
Looking at etc/httpd/conf.d and there don't appear to be any files with a creation date of yesterday.
Similarly, httpd.conf was last edited two weeks ago, and I never touched this to make any changes.
I also never changed permissions in the past.
I assume that a pathway is not set correctly somewhere. Would this also affect the mailserver, as I am getting a 404 on my webmail too?
Thanks.
EDIT - After consulting with my web hosts, they suggested rebuilding the config files via --reconfigure-all..... and it worked!