php - Apache not handling files correctly (Handler Help) -


I am trying to set up my .htaccess file correctly and I have a problem.

The only file for my .htaccess file is:

AddType application / x-httpd-php .php .html .htm

P> This is because my server is unable to find PHP in my html files.

However when it is included in my .htaccess file, when I open a page in my browser, the user is asked to save or open the file locally.

I believe that setting up an action to complete the answer to my issues (running with php) though I can not find the path to my php files.

Any help is appreciated.

You will need to edit the configuration for the enabled module. On the Debian / Ubuntu type system it will be on / etc / apache2 / mods-enabled The file you want is php5.conf

So far everything you have done is specified (dot) HTML, HTML Or php files - by default - should be served as / application-x-httpd-php, and in my knowledge there is no web browser that will try to explain such content - so save- Like dialogue

Either you can not decide to break your .htaccess file (this is a broken behavior to serve HTML files as an application / x-httpd-php), or you Manually the PHP header () function.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -