VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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.
No need to uninstall. Can be solved easier. Jump to last messages of previous page - there's answer.balinese wrote:any ideas how to correct uninstall php54 ?
As you can see - isn't done by script, but script can fix that.skamasle wrote:By default script not change default version
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.
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 fixeshead wrote:As you can see - isn't done by script, but script can fix that.balinese wrote:any ideas how to correct uninstall php54 ?
How? I dunno, you decide. What's wrong - i've found already. :)
-
- Posts: 1
- Joined: Tue Apr 04, 2017 9:37 am
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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.
New version will support it, but you can open script and see what happen inside, you can do it, is very easykeirhosting wrote:Is it possible to add version 7.1? Someone knows? Thank you
-
- Posts: 43
- Joined: Tue Apr 18, 2017 10:54 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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.
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 :)
-
- Posts: 1
- Joined: Sat May 06, 2017 1:17 am
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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
[/quote]morralletti wrote:I [/code]have installed php 71 on Centos 6.8 with
I have created /usr/local/vesta/data/templates/web/httpd/sk-php71.sh with code: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 linked sk-php71.stpl and sk-php71.tpl to phpfcgid.stpl and phpfcgid.tplCode: 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
But when I select template sk-php71 PHPinfo on my selected domain shows PHP 7.0.17RC1...
Any help?
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Я правильно понимаю, если у меня стоит NGINX + PHP-FPM то этот патч не заработает, да?
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Ñet, tolka na apache rabotaits3inc wrote:Я правильно понимаю, если у меня стоит NGINX + PHP-FPM то этот патч не заработает, да?