Page 2 of 28

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

Posted: Mon Mar 07, 2016 1:40 pm
by skamasle
baijianpeng wrote:A little different on my centos 7 server:

Code: Select all

/opt/remi/$PHPVERSION/root/etc/php.ini
PS: I have two suggestions for your multi-php installer script:

1. please add "progress bar" for installing process, to avoid users think "nothing happened, is it dead?"
2. please submit this script to VestaCP official team so that all VestaCP users will benefit from it.

Thank you.
Hi

Thanks for suggestions,

I can do it verbose, scripts is so easy only detect and install new php versión, I can enable output from yum o say wait a minute

May I add option to enable out put or progress bar :)

Still in beta, so I need add more changes, I remove some code oin next realease.

I think vesta dont add php selector because you cant do it universal, so is really easy make it working on centos whit remi repo, but in ubuntu you need or make your own repo ( or find some similar to remi ) or compile PHP,

I have some script to do the same on ubuntu 14, script download an compile PHP, but you need 25 minutos or more to compile one php versión (time vary server to server )

If vesta team whant to take this script they can ( the script dont have any license ), but I think they can do some better script because I dont have much time to programing it.

Thanks for suggestiongs and share your experience.

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

Posted: Mon Mar 07, 2016 1:58 pm
by baijianpeng
hi, VestaCP team is working on "multiple php version" feature, see:

https://bugs.vestacp.com/issues/102

and this:

https://bugs.vestacp.com/issues/103

Hope you can join them and make this feature more powerful and easier.

Thank you.

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

Posted: Mon Mar 07, 2016 2:36 pm
by skamasle
I dont see that, if know its in progress I dont do this scripts.

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

Posted: Mon Mar 07, 2016 3:31 pm
by pandabb
thanks bro does it also have diffrent template options like basedir,hosting,phpcgi and so on..

thanks agian, i will wait for the next or stable release for my production server.

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

Posted: Mon Mar 07, 2016 10:27 pm
by skamasle
No support for more templates yet.

I update script to beta 0.2.3, make some changes to reduce amount of code and downloaded files, no important changes, using simlinks and some more.

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

Posted: Tue Mar 08, 2016 9:05 am
by baijianpeng
Today I tried the 0.23 version of this script on a fresh installation of CentOS 7 minimal and VestaCP. Then I want to switch to php 7 and change some parameters of php.ini, but I can not find the php.ini for php70 now:

Code: Select all

[root@localhost root]# cd /opt/remi/php55/root/etc/
[root@localhost etc]# ls
opt  pear  pear.conf  php.d  php.ini  pki  pm  skel  sysconfig  X11  xdg  xinetd.d
[root@localhost etc]# cd /opt/remi/php56/root/etc/
[root@localhost etc]# ls
opt  pear  pear.conf  php.d  php.ini  pki  pm  skel  sysconfig  X11  xdg  xinetd.d
[root@localhost etc]# cd /opt/remi/php70/root/etc/
-bash: cd: /opt/remi/php70/root/etc/: No such file or directory
[root@localhost etc]# 
You can see that I can find php.ini files for php55 and php56 both in the same pattern of file path. But the php70 version does not use the same path.

So where is the php.ini for php70?

Thank you.

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

Posted: Tue Mar 08, 2016 1:44 pm
by pandabb
skamasle wrote:No support for more templates yet.

I update script to beta 0.2.3, make some changes to reduce amount of code and downloaded files, no important changes, using simlinks and some more.

ok so one setting for all, i just need to edit the php.ini and apply custom settings corerct?

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

Posted: Tue Mar 08, 2016 2:56 pm
by skamasle
baijianpeng wrote:Today I tried the 0.23 version of this script on a fresh installation of CentOS 7 minimal and VestaCP. Then I want to switch to php 7 and change some parameters of php.ini, but I can not find the php.ini for php70 now:

Code: Select all

[root@localhost root]# cd /opt/remi/php55/root/etc/
[root@localhost etc]# ls
opt  pear  pear.conf  php.d  php.ini  pki  pm  skel  sysconfig  X11  xdg  xinetd.d
[root@localhost etc]# cd /opt/remi/php56/root/etc/
[root@localhost etc]# ls
opt  pear  pear.conf  php.d  php.ini  pki  pm  skel  sysconfig  X11  xdg  xinetd.d
[root@localhost etc]# cd /opt/remi/php70/root/etc/
-bash: cd: /opt/remi/php70/root/etc/: No such file or directory
[root@localhost etc]# 
You can see that I can find php.ini files for php55 and php56 both in the same pattern of file path. But the php70 version does not use the same path.

So where is the php.ini for php70?

Thank you.
Hi

This is a remi problem :/ they put php.ini for php70 in /etc/opt/

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

Posted: Wed Mar 09, 2016 7:35 pm
by skamasle
pandabb wrote:
skamasle wrote:No support for more templates yet.

I update script to beta 0.2.3, make some changes to reduce amount of code and downloaded files, no important changes, using simlinks and some more.

ok so one setting for all, i just need to edit the php.ini and apply custom settings corerct?
You only need edit php.ini, you dont need do nothing more.

May I add symlinks to php.ini in next updateto to get all php.ini fileson etc /etc/php70.ini /etc/php55.ini etc.

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

Posted: Thu Mar 10, 2016 12:58 am
by pandabb
thats a good idea to add shortcut