Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section 3rd Party Software
  • Search

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

Section with additional software for Vesta
Post Reply
  • Print view
Advanced search
272 posts
  • Page 16 of 28
    • Jump to page:
  • Previous
  • 1
  • …
  • 14
  • 15
  • 16
  • 17
  • 18
  • …
  • 28
  • Next
balinese
Posts: 13
Joined: Thu Nov 26, 2015 9:36 am

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

Post by balinese » Thu Mar 30, 2017 7:51 pm

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.+
Top

head
Posts: 168
Joined: Mon Aug 25, 2014 11:22 am

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

Post by head » Thu Mar 30, 2017 10:11 pm

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. :)
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

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

Post by skamasle » Fri Mar 31, 2017 1:01 pm

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
Top

keirhosting
Posts: 1
Joined: Tue Apr 04, 2017 9:37 am

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

Post by keirhosting » Tue Apr 04, 2017 9:57 am

Is it possible to add version 7.1? Someone knows? Thank you
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

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

Post by skamasle » Tue Apr 04, 2017 7:36 pm

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
Top

ohioiproject
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.
  • Quote

Post by ohioiproject » Wed Apr 19, 2017 10:14 pm

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).
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

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

Post by skamasle » Fri Apr 21, 2017 9:06 pm

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 :)
Top

marciocamello
Posts: 1
Joined: Sat May 06, 2017 1:17 am

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

Post by marciocamello » Sat May 06, 2017 1:19 am

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]
Top

s3inc
Posts: 42
Joined: Mon Mar 14, 2016 5:18 am

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

Post by s3inc » Sat May 06, 2017 4:31 pm

Я правильно понимаю, если у меня стоит NGINX + PHP-FPM то этот патч не заработает, да?
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

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

Post by skamasle » Sat May 06, 2017 7:42 pm

s3inc wrote:Я правильно понимаю, если у меня стоит NGINX + PHP-FPM то этот патч не заработает, да?
Ñet, tolka na apache rabotait
Top


Post Reply
  • Print view

272 posts
  • Page 16 of 28
    • Jump to page:
  • Previous
  • 1
  • …
  • 14
  • 15
  • 16
  • 17
  • 18
  • …
  • 28
  • Next

Return to “3rd Party Software”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password