Page 1 of 1

Different PHP version on HTTP and HTTPS

Posted: Mon Jun 14, 2021 6:24 am
by irbaaz
Vesta CP is behaving weird, I were not able to set certificate using Lets encrypt or by copying 3 certificates to SSL input.
I have put certificates manually and set them in /etc/httpd/conf.d/secure.mikrobak.httpd.ssl.conf and opened 443 port in ip.conf file.
This at least opened the 443 port and now https opening with right certificate. But on https and without https it is taking different PHP version

7.4 -> http://secure.mikrobak.com/uploads/
5.4 -> https://secure.mikrobak.com/uploads/


I am out of ideas. I have forced to load specific php version through HTaccess but didn't worked. Neither setting set handler from dns.conf file worked

OS is Centos 7 + Vesta CP Nginx

Please guide.

Thanks

Re: Different PHP version on HTTP and HTTPS

Posted: Mon Jun 14, 2021 12:31 pm
by grayfolk
irbaaz wrote:
Mon Jun 14, 2021 6:24 am
Vesta CP is behaving weird, I were not able to set certificate using Lets encrypt or by copying 3 certificates to SSL input.
I have put certificates manually and set them in /etc/httpd/conf.d/secure.mikrobak.httpd.ssl.conf and opened 443 port in ip.conf file.
This at least opened the 443 port and now https opening with right certificate. But on https and without https it is taking different PHP version

7.4 -> http://secure.mikrobak.com/uploads/
5.4 -> https://secure.mikrobak.com/uploads/


I am out of ideas. I have forced to load specific php version through HTaccess but didn't worked. Neither setting set handler from dns.conf file worked

OS is Centos 7 + Vesta CP Nginx

Please guide.

Thanks
Very interesting. May be some diffs in tpl/stpl templates?

Re: Different PHP version on HTTP and HTTPS

Posted: Tue Jun 15, 2021 12:24 am
by irbaaz
grayfolk wrote:
Mon Jun 14, 2021 12:31 pm
irbaaz wrote:
Mon Jun 14, 2021 6:24 am
Vesta CP is behaving weird, I were not able to set certificate using Lets encrypt or by copying 3 certificates to SSL input.
I have put certificates manually and set them in /etc/httpd/conf.d/secure.mikrobak.httpd.ssl.conf and opened 443 port in ip.conf file.
This at least opened the 443 port and now https opening with right certificate. But on https and without https it is taking different PHP version

7.4 -> http://secure.mikrobak.com/uploads/
5.4 -> https://secure.mikrobak.com/uploads/


I am out of ideas. I have forced to load specific php version through HTaccess but didn't worked. Neither setting set handler from dns.conf file worked

OS is Centos 7 + Vesta CP Nginx

Please guide.

Thanks
Very interesting. May be some diffs in tpl/stpl templates?
I am not sure I didn't made any changes there. If you can tell me more about this I can configure them manually.