Skip to main content
Topic: Minimum php version for Elk 2.0 (Read 5711 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Minimum php version for Elk 2.0

Reply #15

Quote from: live627 – Yaass! Null coalescence operators can be used!

Not true ...
PHP 7 introduced a real coalesce operator:
Code: [Select]
echo $_GET['doesNotExist'] ?? 'fallback'; // prints 'fallback'
If the value before the ?? does not exists or is null the value after the ?? is taken.
The improvement over the mentioned ?: operator is, that the ?? also handles undefined variables without throwing an E_NOTICE.

Fel
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com

Re: Minimum php version for Elk 2.0

Reply #16

Quote from: Frenzie –
Quote from: Feline – Well .. I lift up our forum to PHP 7.2 Beta and activate Opcode Cache ..
Wow .. Very fast .. half time as on PHP 7.1 without Opcode Cache  :)
So what about 7.1 with opcode cache? :P
A little bit slower then 7.2 ..

Fel
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com

Re: Minimum php version for Elk 2.0

Reply #17

Quote from: Feline – Well .. I lift up our forum to PHP 7.2 Beta and activate Opcode Cache ..
Wow .. Very fast .. half time as on PHP 7.1 without Opcode Cache  :)
How did one activate opcode cache for one's php? I am kinda confused on its implementation while reading about it.

Re: Minimum php version for Elk 2.0

Reply #18

You can use AWS/GCP for free. Containers are everywhere; minimum versions are a thing of the past. Build applications in the way that's easiest for developers; admins will figure out how to install it.

Re: Minimum php version for Elk 2.0

Reply #19

Quote from: ahrasis – How did one activate opcode cache for one's php? I am kinda confused on its implementation while reading about it.
Well .. I think that is different by hoster.
On my hosting I need this.
1. create a new folder in your your_base_directory_full_path with the name .opcache
2. in your php.ini  enter follow:
Code: [Select]
zend_extension=opcache.so;
opcache.enable=1;
opcache.memory_consumption=32;
opcache.interned_strings_buffer=8;
opcache.max_accelerated_files=3000;
opcache.revalidate_freq=180;
opcache.fast_shutdown=0;
opcache.enable_cli=0;
opcache.revalidate_path=0;
opcache.validate_timestamps=2;
opcache.max_file_size=0;
opcache.file_cache=/your_base_directory_full_path/.opcache;
opcache.file_cache_only=1;

I dont known if this work on your server ...

Fel
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com

 

Re: Minimum php version for Elk 2.0

Reply #20

I use my own private server and I think I should be able to do this on website-to-website basis. Thank you for the how to.

Re: Minimum php version for Elk 2.0

Reply #21

Have you tested that and works ?
Many are stubborn in relation to the path, a few in relation to the target.
Visit our new Forum Project on https://www.portamx.com

Re: Minimum php version for Elk 2.0

Reply #22

I haven't got a chance yet. Busy finishing cluster / mirror server. Hopefully I can manage before this year end.

Re: Minimum php version for Elk 2.0

Reply #23

I implemented this opcache and it seems working with level two under Alternative Php Caching. I will see how it goes from here for the coming weeks. Thank you for the tip.