How to change default PHP interpreter?

Locked
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

How to change default PHP interpreter?

Post by frajer »

Hello, i have one question. Im using XenForo, and i want to use PHP 7.4, but i can install it only for domain. Is there way, how to install it like a default version?
User avatar
Jolinar
Community Moderator
Posts: 3560
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: How to change default PHP interpreter?

Post by Jolinar »

frajer wrote: Sat 25. Apr 2020, 22:34 Is there way, how to install it like a default version?
No, because the functionality of the panel is optimized for the default PHP version.

frajer wrote: Sat 25. Apr 2020, 22:34 but i can install it only for domain
This is the right way.
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Re: How to change default PHP interpreter?

Post by frajer »

Hello, i changed PHP to 7.4.3, but in my XenForo ACP i still see 7.2. Have i to restart apache2 or a whole server for changes?
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: How to change default PHP interpreter?

Post by OlliTheDarkness »

frajer wrote: Sat 25. Apr 2020, 23:15 Hello, i changed PHP to 7.4.3, but in my XenForo ACP i still see 7.2. Have i to restart apache2 or a whole server for changes?
Changed for the Server or for the Domain ?

Right Way: Login as admin >> Domains >> Edit Domain >> PHP-Interpreter >> change PHP Version >> Save ...

Now wait ~60 Seconds and it run ... normaly :roll:
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
User avatar
chaiavi
Posts: 34
Joined: Wed 22. Apr 2020, 22:02

Re: How to change default PHP interpreter?

Post by chaiavi »

What is the best recommendation for PHP interpreter ?

Should I install the latest - currently 7.4.3 or something) and attempt to use the latest version for each site ?

Or is it recommended to stick to the v7.2 default version ?
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: How to change default PHP interpreter?

Post by OlliTheDarkness »

It's a matter of taste, I think.
Everyone as he needs it.
Personally, I use the default of the OS in productive operation.
To develop and tinker, mostly the latest available.
Everyone has to decide for themselves.
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Re: How to change default PHP interpreter?

Post by frajer »

I installed 7.4, but im having some issues with SSL handshake, so i will probably move back to 7.2, because on 7.2 it was fine.
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: How to change default PHP interpreter?

Post by OlliTheDarkness »

So I haven't had any problems in that direction.
At least not that I consciously noticed them.
The only negative is that some old-established functions have been blown out, but you already know that. :lol:
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Re: How to change default PHP interpreter?

Post by frajer »

Ok thanks! And i have another question. Where i can see a php.ini, if im using KeyHelp?
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: How to change default PHP interpreter?

Post by OlliTheDarkness »

As usual, PHP Info.
Shows you all current configuration settings.

info.php

Code: Select all

<?php
phpinfo();
?>
https://www.php.net/manual/en/function.phpinfo.php
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
User avatar
frajer
Posts: 29
Joined: Thu 23. Apr 2020, 22:00

Re: How to change default PHP interpreter?

Post by frajer »

Ok thanks! And if i can ask, where is php.ini or info.php file location on VPS server?
User avatar
OlliTheDarkness
Posts: 1854
Joined: Tue 14. Aug 2018, 16:41
Location: Essen (NRW)

Re: How to change default PHP interpreter?

Post by OlliTheDarkness »

info.php you create yourself on your web space with the posted content.
Then you call them up as normal via the browser.
You will be shown all PHP values e.g. loaded modules etc., including the path to the php.ini used.
1.png
2.png
Mit freundlichen Grüßen
OlliTheDarkness

**************************************************************
Helden leben lange, Legenden sterben nie

:!: World Hack Organization :!:
**************************************************************
Locked