We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it soon. Read more about it: https://vestacp.com/docs/vesta-2-development
Update Vestacp php version to 8.0
-
- Posts: 4
- Joined: Fri Feb 14, 2020 12:05 pm
- Os: Debian 8x
- Web: nginx + php-fpm
Update Vestacp php version to 8.0
Hello:
I have instaled php 8.0 in my VPS, but i can not select it as my default version for all the users and webs.
I have installed the 8.0 version in my VPS, and if I run in the terminal
It returns me
When I enter to a domain and i run phpinfo(), it returns me
How can i change it.
Thank you
I have instaled php 8.0 in my VPS, but i can not select it as my default version for all the users and webs.
I have installed the 8.0 version in my VPS, and if I run in the terminal
Code: Select all
php -v
Code: Select all
PHP 8.0.2 (cli) (built: Feb 12 2021 14:48:08) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies
Code: Select all
PHP Version 7.3.26-1+0~20210112.74+debian9~1.gbpd78724
Thank you
Re: Update Vestacp php version to 8.0
I haven't tried but maybe this helps:
https://www.trykeith.com/blog-post/how- ... on-vestacp
https://www.trykeith.com/blog-post/how- ... on-vestacp
Re: Update Vestacp php version to 8.0
I also need this featured but the link is dead.
Szektor wrote: ↑Sun Apr 25, 2021 11:46 pmI haven't tried but maybe this helps:
https://www.trykeith.com/blog-post/how- ... on-vestacp
-
- Posts: 7
- Joined: Sat Jan 02, 2021 7:03 pm
- Os: Debian 8x
- Web: apache + nginx
Re: Update Vestacp php version to 8.0
saosangmo wrote: ↑Mon Jun 21, 2021 6:44 pmI also need this featured but the link is dead.Szektor wrote: ↑Sun Apr 25, 2021 11:46 pmI haven't tried but maybe this helps:
https://www.trykeith.com/blog-post/how- ... on-vestacp
https://web.archive.org/web/20201210164 ... on-vestacp
-
- Posts: 7
- Joined: Sat Jan 02, 2021 7:03 pm
- Os: Debian 8x
- Web: apache + nginx
Re: Update Vestacp php version to 8.0
It's worked.skorpions2000 wrote: ↑Thu Jun 09, 2022 1:48 pmhttps://github.com/rikcage/vst-php-selector funny shooter 2
-
- Posts: 12
- Joined: Sat Jul 15, 2023 9:33 am
- Contact:
- Os: CentOS 7x
- Web: apache + nginx
Re: Update Vestacp php version to 8.0
You need to set PHP 8.0 as the default PHP version for Apache and PHP-FPM.
Go to the VestaCP panel > Web > Edit Web Template.
Then, in the Additional NGINX directives field,
add the following lines to set PHP 8.0...
Save it and apply the changes to all domains using this template.
then rebuild it.
Finally, restart Apache and PHP-FPM to apply the changes
I'm hoping it works.
Go to the VestaCP panel > Web > Edit Web Template.
Then, in the Additional NGINX directives field,
add the following lines to set PHP 8.0...
Code: Select all
# PHP 8.0
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php8.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
then rebuild it.
Code: Select all
v-rebuild-web-domains
Code: Select all
service apache2 restart
service php8.0-fpm restart
-
- Posts: 38
- Joined: Tue Aug 16, 2016 4:58 pm
Re: Update Vestacp php version to 8.0
tried installing this, website is down, and the github repository is not working correctly. while it installs php 8.0, after selecting it in web templates in vesta panel i receive error 500 when visiting website.
using Ubuntu 18.04
I was thinking that it was missing all the extensions,
however when going to install them via command line I receive the following response.
using Ubuntu 18.04
I was thinking that it was missing all the extensions,
Code: Select all
sudo apt install php8.0-apcu php8.0-mbstring php8.0-bcmath php8.0-cli php8.0-curl php8.0-gd php8.0-intl php8.0-mcrypt php8.0-mysql php8.0-soap php8.0-xml php8.0-xmlrpc php8.0-json php8.0-zip php8.0-memcache php8.0-memcached php8.0-ldap
Code: Select all
E: Unable to locate package php8.0
E: Couldn't find any package by glob 'php8.0'
E: Couldn't find any package by regex 'php8.0'
Re: Update Vestacp php version to 8.0
Thank you so much @skorpions2000 .. It's worked for me..