I have files in public_html (index.html). When I go to the main page it gives me "Apache Test Page". When I try to add link to them manually (domain_name/index.html or index2.php) it gives me only code, like in .txt editor. I would really appreciate any help.
you would need to ensure that the php is installed correctly. See the output of
This last step is generally achieved by installing the
Then check that php-script is configured as the php interpreter is used for scripts with the php suffix;
on centos these directives show up in
It certainly looks like that your apache installation is configured to load mime module.
and check if you can see any mime module in the list. If not, then install the mime module. Please have a look at this, http://httpd.apache.org/docs/2.0/mod/mod_mime.html
Generally apache ships with mime module and you may not need to recompile it.