Page 16 of 28

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Thu Mar 30, 2017 7:51 pm
by balinese
any ideas how to correct uninstall php54 ? because it sit in system by default and http://ip/phpmyadmin does not work, asking for 5.5.+

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Thu Mar 30, 2017 10:11 pm
by head
balinese wrote:any ideas how to correct uninstall php54 ?
No need to uninstall. Can be solved easier. Jump to last messages of previous page - there's answer.
skamasle wrote:By default script not change default version
As you can see - isn't done by script, but script can fix that.
How? I dunno, you decide. What's wrong - i've found already. :)

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Fri Mar 31, 2017 1:01 pm
by skamasle
head wrote:
balinese wrote:any ideas how to correct uninstall php54 ?
As you can see - isn't done by script, but script can fix that.
How? I dunno, you decide. What's wrong - i've found already. :)
Yes it can be fixed by script, I not have much time to test, I do a new realease with some fixes and php 7.1 but not have time to test and release new fixes

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue Apr 04, 2017 9:57 am
by keirhosting
Is it possible to add version 7.1? Someone knows? Thank you

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue Apr 04, 2017 7:36 pm
by skamasle
keirhosting wrote:Is it possible to add version 7.1? Someone knows? Thank you
New version will support it, but you can open script and see what happen inside, you can do it, is very easy

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Wed Apr 19, 2017 10:14 pm
by ohioiproject
Dunno if this is still being supported, however I tested and it worked okay and downloaded quickly. Here are better languages (and some pseudo-code) for the next update (note items in [] are else clauses (ie: if the dependency isn't met):

Code: Select all

Initialisation: Started...
Checking dependencies...
You have [do not have] the remi repo installed [please install it and re-run this script]!
Checking OS version...
You have {OS INFO} which is okay [needs upgraded] for this install [please update to a newer version (CentOS 6.2 or newer) and re-run this script]!
#########
Begin installing additional PHP versions... Please wait as it may take some time depending on your host!

Installing PHP 5.4... [You already have PHP 5.4 installed, I'll skip this for now, to force install ALL PHP, re-run this script and use --all to install all PHP versions!]
Successfully Installed PHP 5.4...

Installing PHP 5.5... [You already have PHP 5.5 installed, I'll skip this for now, to force install ALL PHP, re-run this script and use --all to install all PHP versions!]
Successfully Installed PHP 5.5...

Installing PHP 5.6... [You already have PHP 5.6 installed, I'll skip this for now, to force install ALL PHP, re-run this script and use --all to install all PHP versions!]
Successfully Installed PHP 5.6...

Installing PHP 7.0... [You already have PHP 7.0 installed, I'll skip this for now, to force install ALL PHP, re-run this script and use --all to install all PHP versions!]
Successfully Installed PHP 7.0...

Script run successful [not successful {errors}] and additional PHP versions have been installed.

More info about the script on skamasle.com or the vestacp forums! Some translation provided by Joseph Stacklin (sstudio.pw).

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Fri Apr 21, 2017 9:06 pm
by skamasle
ohioiproject wrote:Dunno if this is still being supported, however I tested and it worked okay and downloaded quickly. Here are better languages (and some pseudo-code) for the next update (note items in [] are else clauses (ie: if the dependency isn't met):

Code: Select all

Initialisation: Started...
Checking dependencies...
You have [do not have] the remi repo installed [please install it and re-run this script]!
Checking OS version...
You have {OS INFO} which is okay [needs upgraded] for this install [please update to a newer version (CentOS 6.2 or newer) and re-run this script]!
#########
Begin installing additional PHP versions... Please wait as it may take some time depending on your host!

Installing PHP 5.4... [You already have PHP 5.4 installed, I'll skip this for now, to force install ALL PHP, re-run this script and use --all to install all PHP versions!]
Successfully Installed PHP 5.4...

Installing PHP 5.5... [You already have PHP 5.5 installed, I'll skip this for now, to force install ALL PHP, re-run this script and use --all to install all PHP versions!]
Successfully Installed PHP 5.5...

Installing PHP 5.6... [You already have PHP 5.6 installed, I'll skip this for now, to force install ALL PHP, re-run this script and use --all to install all PHP versions!]
Successfully Installed PHP 5.6...

Installing PHP 7.0... [You already have PHP 7.0 installed, I'll skip this for now, to force install ALL PHP, re-run this script and use --all to install all PHP versions!]
Successfully Installed PHP 7.0...

Script run successful [not successful {errors}] and additional PHP versions have been installed.

More info about the script on skamasle.com or the vestacp forums! Some translation provided by Joseph Stacklin (sstudio.pw).

Thanks :)

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sat May 06, 2017 1:19 am
by marciocamello

Code: Select all

curl -s /usr/local/vesta/data/templates/web/httpd/sk-php56.sh /usr/local/vesta/data/templates/web/httpd/sk-php71.sh

nano /usr/local/vesta/data/templates/web/httpd/sk-php71.sh

change php56-cgi to php71-cgi

ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.stpl /usr/local/vesta/data/templates/web/httpd/sk-php71.stpl

ln -s /usr/local/vesta/data/templates/web/httpd/phpfcgid.tpl /usr/local/vesta/data/templates/web/httpd/sk-php71.tpl

chmod +x /usr/local/vesta/data/templates/web/httpd/sk-php71.sh
	
refresh domain web create or update screen
morralletti wrote:I [/code]have installed php 71 on Centos 6.8 with

Code: Select all

yum install php71-php-imap php71-php-process php71-php-pspell php71-php-xml php71-php-xmlrpc php71-php-pdo php71-php-ldap php71-php-pecl-zip php71-php-common php71-php php71-php-mcrypt php71-php-gmp php71-php-mysqlnd php71-php-mbstring php71-php-gd php71-php-tidy php71-php-pecl-memcache --enablerepo=remi
I have created /usr/local/vesta/data/templates/web/httpd/sk-php71.sh with code:

Code: Select all

#!/bin/bash
# Adding php wrapper
user="$1"
domain="$2"
ip="$3"
home_dir="$4[/quote]"
docroot="$5"

wrapper_script="#!/bin/sh
PHPRC=/usr/local/lib
export PHPRC
export PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_CHILDREN=10
exec  /usr/bin/php71-cgi
"
wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter"

echo "$wrapper_script" > $wrapper_file
chown $user:$user $wrapper_file
chmod -f 751 $wrapper_file

exit 0
I have linked sk-php71.stpl and sk-php71.tpl to phpfcgid.stpl and phpfcgid.tpl

But when I select template sk-php71 PHPinfo on my selected domain shows PHP 7.0.17RC1...

Any help?
[/quote]

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sat May 06, 2017 4:31 pm
by s3inc
Я правильно понимаю, если у меня стоит NGINX + PHP-FPM то этот патч не заработает, да?

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sat May 06, 2017 7:42 pm
by skamasle
s3inc wrote:Я правильно понимаю, если у меня стоит NGINX + PHP-FPM то этот патч не заработает, да?
Ñet, tolka na apache rabotait