How to update php to 7.4 in nginx + php-fpm mode?

verydima
Posts: 4
Joined: Fri Feb 12, 2021 12:21 am

Hi. First of all, I want to thank this super guy who creates MyVesta. Really good panel and I almost haven't any problems with this panel.
Admin, you need to add a big button at the website like "Say thank - just donate" :)
I have 3 questions.
1 How can I update PHP to 7.4 in config nginx + php-fpm?
2 What do you think about these nginx configs _https://gitlab.gridpane.net/gp-public/nginx-configs ?
3 Can you add nginx template with restricted access to the wp-admin and wp-login.php by IP.
Thanks.

P.S. Sorry for my bad English - it's not my native language.

Tags:
User avatar
myVesta
Site Admin
Posts: 802
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 4 times
Been thanked: 5 times

verydima wrote: Fri Feb 12, 2021 6:49 pm 1 How can I update PHP to 7.4 in config nginx + php-fpm?
Try this - viewtopic.php?p=426#p426
And please give us feedback, is this method working (i never tried).
verydima
Posts: 4
Joined: Fri Feb 12, 2021 12:21 am

Hm. Thanks.
I read your recommendation "install default variant with Apache." and "many other PHP software strictly require php7.3 and does not works with php7.4" And decided to reinstall the server :)

I have several VPS and a dedicated server - there is Vesta everywhere in the Apache + Nginx config. But I recently read that option Nginx+php-fpm is faster. So I decided to try it.
User avatar
myVesta
Site Admin
Posts: 802
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 4 times
Been thanked: 5 times

Plus, myVesta keeps apache in mpm_event mode, which is fast as nginx.
User avatar
myVesta
Site Admin
Posts: 802
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 4 times
Been thanked: 5 times

verydima wrote: Fri Feb 12, 2021 6:49 pm 2 What do you think about these nginx configs _https://gitlab.gridpane.net/gp-public/nginx-configs ?
Never seen before :)
So I don't have experience.
User avatar
myVesta
Site Admin
Posts: 802
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 4 times
Been thanked: 5 times

verydima wrote: Fri Feb 12, 2021 6:49 pm 3 Can you add nginx template with restricted access to the wp-admin and wp-login.php by IP.
In Apache variant, you can do easily with .htaccess
void-god
Posts: 4
Joined: Sat Apr 10, 2021 3:08 pm

dpeca wrote: Fri Feb 12, 2021 6:57 pm
verydima wrote: Fri Feb 12, 2021 6:49 pm 1 How can I update PHP to 7.4 in config nginx + php-fpm?
Try this - viewtopic.php?p=426#p426
And please give us feedback, is this method working (i never tried).
Not works, php-frm cant restart and 7.3 remained. Apache is slow for shops where more images then calculation. Even with mpm.
User avatar
myVesta
Site Admin
Posts: 802
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 4 times
Been thanked: 5 times

In default myVesta installation, images are served by nginx.
void-god
Posts: 4
Joined: Sat Apr 10, 2021 3:08 pm

dpeca wrote: Sat Apr 24, 2021 12:16 am In default myVesta installation, images are served by nginx.
Yes, i see, thanks
lonjoe
Posts: 8
Joined: Wed Sep 28, 2022 12:38 am

void-god wrote: Thu Apr 22, 2021 8:47 am
dpeca wrote: Fri Feb 12, 2021 6:57 pm
verydima wrote: Fri Feb 12, 2021 6:49 pm 1 How can I update PHP to 7.4 in config nginx + php-fpm?
Try this - viewtopic.php?p=426#p426
And please give us feedback, is this method working (i never tried).
/etc/apt/trusted.gpg.d/php.gpg: Permission denied
Post Reply