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
General / Re: Support for multiple versions of php
« on: March 03, 2022, 05:38:55 pm »
On testing

Uncommenting the ProxyFCGISetEnvIf line put back all the environmental goodies like upload directory and session directory

2
General / Re: Support for multiple versions of php
« on: March 01, 2022, 10:44:50 pm »
Hi Again,

Update

Currently testing but appears to work.
Ubantu 20.4

Loaded php5.5-fpm  and started service

Edited the Apache2 template for the domain as follows

#   ProxyPassMatch ^(.*\.php)$ fcgi://127.0.0.1:9000{homedir}/httpdocs/$1
#   ProxyFCGISetEnvIf "true" PHP_ADMIN_VALUE "open_basedir={homedir}:/usr/share/php:/usr/share/pear; \n upload_tmp_dir={homedir}/phptmpdir; \n session.save_path={homedir}/phptmpdir;"
<FilesMatch \.php$>
        # From the Apache version 2.4.10 and above, use the SetHandler to run PHP as a fastCGI process server
         SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost"
    </FilesMatch>

Still yet to test lets encrypt and mysql acess etc .. but phpinfo() in the index file on this site shows 5.6, and another generic domain with the original template shows 7.4.




3
General / Support for multiple versions of php
« on: February 28, 2022, 07:01:29 pm »
Hi,

and thanks for the great product been using it for a while now.

I have come up against the need to host a legacy site that only runs php 5.5, while the other sites run well on the latest..

Is it possible fior ehcp forced to  support multiple versions of php for sites?

Thanks in advance

4
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




5
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

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