I've recently installed the LAMP platform on my Fedora machine (Linux apache mysql php) and I am having a weird issue when I type "localhost" in my browser. When I do this, I receive the download pop up that says
"You have chosen to open
which is a application/x-httpd-php
from
http://localhost
I can only assume it is refering to the "AddType" line that is in my httpd.conf file that instructs the server to process php files as a php script
Code:
<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
AddType application/x-httpd-php .php .html
TypesConfig conf/mime.types
#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
When I enter my ip address 10.3.0.99, I receive the typical "IT works page". When I enter the phpinfo page "http://localhost/phpinfo.php" I receive the correct PHP version information.
Within the httpd.conf file, I have ServerName designated as the 10.3.0.99 private address since this is a machine on a private network at work.
When I enter the loop back address 127.0.0.1, I receive the proper "it works" page.
My /etc/hosts file looks correct:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 FireCracker localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
Not sure why the private ip address and not the Localhost name is returning the "IT works" index.html.
Anybody have any idea where I should look?