Page 1 of 1

Removed php

Posted: Thu Jan 14, 2016 12:43 pm
by mrex778
Hi
I just removed the old php version to install the new one but it's look like that I have a problem wit php7 now what should I do to install php again?

Re: Removed php

Posted: Thu Jan 14, 2016 3:21 pm
by tjebbeke
Install PHP from your OS again ... Wich OS do you use?

Re: Removed php

Posted: Thu Jan 14, 2016 4:31 pm
by mrex778
mrex778 wrote:Hi
I just removed the old php version to install the new one but it's look like that I have a problem wit php7 now what should I do to install php again?
I'm using centos 6.6 but every time that I tried to install any new version I got Error Package
If is it possible please tell me how to install php 5.6
( I just followed servermom.org tutorial and this happened )

Re: Removed php

Posted: Thu Jan 14, 2016 6:54 pm
by tjebbeke

Re: Removed php

Posted: Thu Apr 28, 2016 7:37 pm
by Nickrus
Hi! I install Vesta CP on Centos 7.0 but it installs PHP 5.4 by default, I always have to replace it afterwards.
How do I tell Vesta to install a newer one? Installing other repos like these didn't help:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/e ... noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/web ... elease.rpm

The same happens with the MySQL.

Re: Removed php

Posted: Thu Apr 28, 2016 7:45 pm
by gwolf2u
Nickrus wrote:Hi! I install Vesta CP on Centos 7.0 but it installs PHP 5.4 by default, I always have to replace it afterwards.
How do I tell Vesta to install a newer one? Installing other repos like these didn't help:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/e ... noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/web ... elease.rpm

The same happens with the MySQL.
tun this

Code: Select all

wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm
wget http://mirror.skamasle.com/vestacp/PHP/sk-phpinstaller_beta02_3.sh
bash sk-phpinstaller_beta02_3.sh
then change web template in VestaCP to sk-php70

for MySQL (I use MariaDB) follow link below
https://downloads.mariadb.org/mariadb/r ... rsion=10.1

Re: Removed php

Posted: Thu Apr 28, 2016 8:29 pm
by Nickrus
Thanks for a quick reply!

Will it install php 7.0? And... from an unofficial location? I actually wanted to have php 5.6.
If you also have some magic strings for php 5.6, please share.

I currently run

Code: Select all

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
service nginx stop
service httpd stop

yum install yum-plugin-replace -y
yum replace php-common --replace-with=php56w-common -y

yum install php56w-imap -y

service nginx start
service httpd start
afterwards...