Over the last week I've been struggling to get Wordpress running on FreeBSD. I finally managed to get it working yesterday after much trial and error and I'm still not sure how well it is installed and configured but at least it does work, using the latest FreeBSD, Apache2, MySQL and Wordpress. I did find in the course of my struggle that installing packages was more successful than using ports.
Anyway, my query.: in the Wordpress configuration file wp-config.php I needed to define DB_HOST as 192.168.1.107 i.e. the IP address of the server I'm running, for Wordpress to be able to connect to MySQL. Definitions of 127.0.0.1 or 'localhost' would not work.
This may not be the appropriate forum to pose this question but the level of knowledge here is vast so someone may be able to help me. How can I tell how the hostname is resolved? I.e. where do I look? I do have hostname defined in /etc/rc.conf but that does not seem to apply to Wordpress, so Wordpress must be picking it up from either Apache or MySQL. Any ideas where to look?
Anyway, my query.: in the Wordpress configuration file wp-config.php I needed to define DB_HOST as 192.168.1.107 i.e. the IP address of the server I'm running, for Wordpress to be able to connect to MySQL. Definitions of 127.0.0.1 or 'localhost' would not work.
This may not be the appropriate forum to pose this question but the level of knowledge here is vast so someone may be able to help me. How can I tell how the hostname is resolved? I.e. where do I look? I do have hostname defined in /etc/rc.conf but that does not seem to apply to Wordpress, so Wordpress must be picking it up from either Apache or MySQL. Any ideas where to look?