Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Having issues with Parsing PHP in .HTML Files

General questions about VestaCP
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
danielnr87
Posts: 2
Joined: Mon Apr 14, 2014 12:57 pm

Having issues with Parsing PHP in .HTML Files
  • Quote

Post by danielnr87 » Mon Apr 14, 2014 1:00 pm

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
Top

jimmyeao
Posts: 30
Joined: Fri Nov 27, 2015 2:13 pm

Re: Having issues with Parsing PHP in .HTML Files
  • Quote

Post by jimmyeao » Wed Dec 30, 2015 6:16 pm

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Having issues with Parsing PHP in .HTML Files
  • Quote

Post by skurudo » Thu Jan 07, 2016 2:46 pm

There is several ways:
- htaccess

Code: Select all

AddType application/x-httpd-php .htm .html
- apache2 (/home/user/conf/web/apache2.conf - directory)

Code: Select all

AddHandler application/x-httpd-php .html .htm
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password