Page 1 of 1

How to change default PHP interpreter?

Posted: Sat 25. Apr 2020, 22:34
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?

Re: How to change default PHP interpreter?

Posted: Sat 25. Apr 2020, 23:00
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.

Re: How to change default PHP interpreter?

Posted: Sat 25. Apr 2020, 23:15
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?

Re: How to change default PHP interpreter?

Posted: Sat 25. Apr 2020, 23:25
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:

Re: How to change default PHP interpreter?

Posted: Sun 26. Apr 2020, 08:02
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 ?

Re: How to change default PHP interpreter?

Posted: Sun 26. Apr 2020, 08:17
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.

Re: How to change default PHP interpreter?

Posted: Sun 26. Apr 2020, 08:18
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.

Re: How to change default PHP interpreter?

Posted: Sun 26. Apr 2020, 08:25
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:

Re: How to change default PHP interpreter?

Posted: Sun 26. Apr 2020, 08:42
by frajer
Ok thanks! And i have another question. Where i can see a php.ini, if im using KeyHelp?

Re: How to change default PHP interpreter?

Posted: Sun 26. Apr 2020, 08:48
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

Re: How to change default PHP interpreter?

Posted: Sun 26. Apr 2020, 08:53
by frajer
Ok thanks! And if i can ask, where is php.ini or info.php file location on VPS server?

Re: How to change default PHP interpreter?

Posted: Sun 26. Apr 2020, 08:57
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