Page 1 of 1
PHP 7 on Vesta
Posted: Sun Aug 21, 2016 6:18 pm
by maniek015
Hello!
It's any way to stable upragde to PHP 7 on Vesta CP on Debian server?
If it was already a topic I apologize for clone :)
Re: PHP 7 on Vesta
Posted: Sun Aug 21, 2016 6:39 pm
by mehargags
You could use the Damn search... Don't mean to be rude but its rather annoying such a common task being asked so often. The Newbies should really try search and read some existing posts.
Update PHP /Ubuntu
viewtopic.php?f=11&t=12229&p=48210&hili ... ian#p48210
[SOLVED]PHP 7 and Ubuntu
viewtopic.php?f=11&t=11549&p=45046&hili ... ian#p45046
Anyways, here are the steps
Code: Select all
echo -e "\ndeb http://packages.dotdeb.org jessie all \ndeb-src http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list
apt-get install ca-certificates
wget https://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg
apt-get update -y
apt-get install php7.0 php7.0-xml php7.0-zip php7.0-mysql libapache2-mod-php7.0 -y
a2dismod php5
a2enmod php7.0
systemctl restart apache2
Re: PHP 7 on Vesta
Posted: Sun Aug 21, 2016 7:49 pm
by maniek015
Sorry, but "Search..." dont't work on this forum.
This is a check step's ? All work?
Re: PHP 7 on Vesta
Posted: Sun Aug 21, 2016 9:02 pm
by mehargags
It works absolutely fine. Try Searching "php7"
I got these two links from search only, don't have them bookmarked
Re: PHP 7 on Vesta
Posted: Sun Aug 21, 2016 10:06 pm
by maniek015
Now it is okay, I write php 7 not php7 and maybe that I don't have results of search :)
The method of such changes PHP is safe? Future updates Vista does not overwrite the version of PHP?
Re: PHP 7 on Vesta
Posted: Mon Aug 22, 2016 8:42 am
by mehargags
Yes absolutely safe. Vesta Updates/Upgrades have nothing to do with PHP version installed on your server, PHP(x) is updated/upgraded when you yum/apt update your OS.
I use the same method for 10 of my "PHP7 only" servers, however please do check all your applications thoroughly (apache error logs for your domain) to be sure there are no major compatibility problems. Wordpress and other popular & modern php frameworks should have no problems at all but still be sure.
Re: PHP 7 on Vesta
Posted: Mon Aug 22, 2016 2:27 pm
by maniek015
Thank's for info. Have a nice day :)
Re: PHP 7 on Vesta
Posted: Mon Aug 22, 2016 5:53 pm
by mehargags
Please mark your thread Solved and "Accept an Answer" if it is resolved for you. Gives a positive impression to other readers seeking the same question
Re: PHP 7 on Vesta
Posted: Mon Aug 22, 2016 6:36 pm
by maniek015
I Mark thread as solved. Thanjs again :))