I am setting up a web server to run a few sites, including a blog (wordpress). I am using a straight default installation of Apache, PHP, and MySql. The only thing I have done for configuration is disable SELinux (at least for now, since it was causing me problems until I am more comfortable configuring it) and change the wordpress config file (detailed below).
Directly from phpinfo() running (named index.php under root directory, /var/www/html) are some important settings you may want to know:
System: localhost.localdomain 2.6.25.11-97.fc9.i686
Virtual Directory Support: disabled
Apache Version: Apache/2.2.8 (Fedora)
Hostname/Port: localhost.localdomain:0
HTTP_HOST: 76.17.222.27
SERVER_NAME: 76.17.222.27
SERVER_ADDR: 192.168.0.100
I see that SERVER_ADDR is set to the machine's IP on the LAN, so I am wondering if that is having an effect on it? I am worried though that if I change settings like that to point to the external IP, scripts running on the server will make requests out to the ISP then bounce back rather than just accessing straight on the machine.
The behavior, is that when I enter the address in my web browser from a remote location (feel free to access this too
http://76.17.222.27/wordpress/) it begins to execute something, but then the next request the browser makes is to 192.186.0.100 which obviously is not going to work (but does when I am on my LAN).
Does anyone have any ideas or suggestions on this? I'm fairly new to administration, but am fairly savvy. Research has turned up little to nothing on this issue.
I also want to note that my wp-config.php (wordpress configuration) has a setting for the host, and it was set to localhost, but when changed to my external IP, the results are the same (even after a reboot). The setting is currently set to:
define('DB_HOST', '76.17.222.27'); // was 'localhost' with same results