When I navigate to my website (e.g. www.mydomain.com), the browser opens a pop-up window to download a file.
In my httpdocs folder i have: - index.html - index.php () - I do NOT have .htaccess file
Checking in the browser: - www.mydomain.com/index.html -> it works fine - www.mydomain.com/index.php -> it works WRONG (it downloads the index.php file) - www.mydomain.com -> it works WRONG (it download "descarga" file with index.php contents).
PHP is installed, and when I run the php -v
command, it says that I am using PHP 5.3
I have other domains on the same server working fine with php files, so AddHandler or LoadModule should not be the problem as far as PHP is a constant for all my domains.
This is my php.conf and looks like everythin is right:
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
What should I try to navigate to my domain successfully?