Tricky php issue

So, after switching over to the new server all of the sudden everything was hanging every time a comment was entered. I couldn’t figure it out for quite some time. I looked at all the error logs to no avail. I noticed that it worked for one site but not the other. What was it????

It was this seemingly unrelated message about sending an email:

Feb 23 23:55:21 topbarbee sendmail[51753]: My unqualified host name (topbarbee) unknown; sleeping for retry
Feb 23 23:56:21 topbarbee sendmail[51753]: unable to qualify my own domain name (topbarbee) — using short name
Feb 23 23:56:21 topbarbee sendmail[51753]: My unqualified host name (topbarbee) unknown; sleeping for retry

Not sure why it references sendmail since that’s off but whatever. Finally! Once I made the connection (a few hours later) a quick Google shows you need to update you /etc/hosts for both the internal and external IP address! I was missing the internal bit.

::1                     localhost localhost.my.domain topbarbee themumsy
127.0.0.1               localhost localhost.my.domain topbarbee themumsy

Leave a Reply

Your email address will not be published. Required fields are marked *