Having issues with Parsing PHP in .HTML Files
-
- Posts: 2
- Joined: Mon Apr 14, 2014 12:57 pm
Having issues with Parsing PHP in .HTML Files
Hi All,
I have an issue parsing PHP in .HTML Files. I am using an install of Vesta (on digitalocean) and the domain is running fine. The site in question has AddType application/x-httpd-php4 .htm .html and AddType application/x-httpd-php5 .htm .html in the .htaccess, which before I moved it was allowing php to run in html.
I can't figure out for the life of me why its not now working? I don't get any errors in the logs either. I don't know if it is something to do with the way vesta has set up?
Has anybody got any ideas?
Thank you
Dan Williams
I have an issue parsing PHP in .HTML Files. I am using an install of Vesta (on digitalocean) and the domain is running fine. The site in question has AddType application/x-httpd-php4 .htm .html and AddType application/x-httpd-php5 .htm .html in the .htaccess, which before I moved it was allowing php to run in html.
I can't figure out for the life of me why its not now working? I don't get any errors in the logs either. I don't know if it is something to do with the way vesta has set up?
Has anybody got any ideas?
Thank you
Dan Williams
Re: Having issues with Parsing PHP in .HTML Files
Did you ever resolve this? Im having the same issue.
Using Apache+Nginx, editing the .htaccess seems to have no effect. I tried putting some junk in the .htaccess just to prove it was being read, and got a 500 error as expected.
So why is Apache ignoring the changes to the .htaccess
Using Apache+Nginx, editing the .htaccess seems to have no effect. I tried putting some junk in the .htaccess just to prove it was being read, and got a 500 error as expected.
So why is Apache ignoring the changes to the .htaccess
Re: Having issues with Parsing PHP in .HTML Files
There is several ways:
- htaccess
- apache2 (/home/user/conf/web/apache2.conf - directory)
- htaccess
Code: Select all
AddType application/x-httpd-php .htm .html
Code: Select all
AddHandler application/x-httpd-php .html .htm