Group forums not working? On a DV?
I haven’t been able to get group forums up and running. Until now that is.
If you have problems getting this up and running and you are on a Dedicated Virtual Server (DV) then you may need to edit the /etc/hosts file on your box. bp uses a goodie from sambauers that uses xmlrpc to talk to bbpress.
The little goodie relies on a php lib called curl. curl goes out and gets some stuff from bbpress to find an xmlrpc connection endpoint to talk to. Well, curl relies on the operating system to tell it the ip address of the url we need to talk to. I want to connect to ‘ourcommoninterest.org/bbpress/’ in my case.
To resove the host ‘ourcommoninterest.org’ into an ip address it first looks in my local /etc/hosts file. If it can’t find what it’s looking for then it goes out and uses dns to resolve the host name.
Since I’m running on a dv my hosts file just contains a standard entry for my domain with an alias for ‘localhost’. It read:
127.0.0.1 ourcommoninterest.org localhost localhost.localdomain
Evidently apache pays some attention to this hosts file but not much since it’s been resolving my domain name to the proper ip address all along and it’s only 127.0.0.1 to utils that run on the box.
mu is a util that runs on the box if it is using the curl lib to GET results from an url. So sam’s goodie, mu and bp were being told by the curl lib that my domain didn’t exist. That the url I have bbpres setup at was 404. The curl, thru the hosts file thought my ip address was 127.0.0.1
I went to tech support at my host and explained that I was using curl and getting 404s for valid urls on my domain. They explained that ‘well yah ya dummy’ the hosts file contains such and such and is returning so and so.
I changed my hosts file to the following and everything is happy now.
127.0.0.1 localhost localhost.localdomain
18.104.22.1689 ourcommoninterest.org ourcommoninterest
The 99’s are obviously not my actual ip address. curl goes out and finds my domain and my ip address and purrs merrily along.
Don’t forget to keep the localhost line in there. Just add your ip/hostname to the list.
If you want to know *way* more than you care to about the linux hosts file just google ‘linux hosts file’.
Welcome to linux sysadmin 101. This is your first lesson Burt. Pay attention now.
(can I go back to hacking my theme up again?)
The topic ‘Group forums not working? On a DV?’ is closed to new replies.