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 188.8.131.52-97.fc9.i686
Virtual Directory Support: disabled
Apache Version: Apache/2.2.8 (Fedora)
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://184.108.40.206/wordpress/
) it begins to execute something, but then the next request the browser makes is to 220.127.116.11 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', '18.104.22.168'); // was 'localhost' with same results