Updated, now only getting the test page

General support questions
Post Reply
cybershadow
Posts: 5
Joined: 2012/06/16 22:31:20
Contact:

Updated, now only getting the test page

Post by cybershadow » 2020/01/07 09:04:51

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.

User avatar
KernelOops
Posts: 428
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: Updated, now only getting the test page

Post by KernelOops » 2020/01/07 11:17:39

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.
--
R.I.P. CentOS :cry:
--

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Updated, now only getting the test page

Post by TrevorH » 2020/01/07 14:24:20

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

cybershadow
Posts: 5
Joined: 2012/06/16 22:31:20
Contact:

Re: Updated, now only getting the test page

Post by cybershadow » 2020/01/08 02:30:18

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!

Post Reply