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.


Messages - whiterabbitz

Pages: [1]
1
Technical Help / Re: PHP in html file config please
« on: September 10, 2018, 03:17:05 pm »
You are a star!

Works .. with a small caveat.

Being a long term cynic.. been in IT too long.

1) Remove the pseudo  subdomain  devel.mydomain.com

2) Ran update

3) Added new subdomain devel.mydomain,com

4) Tested devel.mydomain,com - Ok

5) Modified index.php in devel.mydomain.com to make sure i was looking at the right file - all good

6) Made the modes - template and /etc/php/7.0/fpm/pool.d/www.conf

7) Re-tested devel.mydomain.com - file not found

8) Re Re tested devel.mydomain,com/index.php - ok

9) added index.html in devel.mydomain.com

10) and tested devel.mydomain.com  - ok showed content of index.html

11) Added <?php phpinfo(); ?>  to index.html - Worked like a charm!!

So Only issue - which I can live with, is that the .html is the default extension and .php must be specified.

Not a problem for this site

Thanks again




2
Technical Help / Re: PHP in html file config please
« on: September 10, 2018, 12:17:28 am »
Hi,

Thanks so much for that.

I will give it a try tomorrow and let you know the results.

WR

3
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]