Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - whiterabbitz

Pages: [1]
1
Technical Help / PHP in html file config please
« on: September 09, 2018, 02:28:51 am »
Hi All.

Firstly great product - loaded 2 days ago without a hitch. From zero to ssl in 20 mins!

I am trying to have apache2 interpret .html with php embedded.

Why you may well ask.

Migrating a site for a friend from content manager adobe catalyst - expensive and slow.

The site is heavily indexed by google... so want to maintain the .html extensions. And broke it up ... header. footer and content using php includes so it was maintainable.


Scenario

ubantu 16.04

Primary domain mydomain,com

Only want php in html on devel.mydomain.com

Both running ssl

Usually I would put in .htaccess this:

AddType text/html .shtml .shtm .htm .html
AddHandler server-parsed .shtml .shtm .htm .html
Options Indexes FollowSymLinks Includes
AddHandler application/x-httpd-php .html


and away it goes.. but can't get it running with ehcp forced addition -

the page loads ok but the php is just text in the rendered output.

Have also tinkered with  /var/www/new/ehcp/apachehcp_subdomains.conf
 but no go ..

Any assistance would be appreciated.

WR





Pages: [1]