We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
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.
512MB of ram is not good for fastcgisarathorn wrote:Hi!
I had a lot of troubles on CentOS 6.7 x32 (512Mb RAM), but it worked on CentOS 7.2 x64 (1Gb RAM).
Can't find php.ini for php7.0. php.ini for 5.4/5.5/5.6 are on their places.
Short open tags (<? ?>) are turned off in every php.ini by default...
And php.ini is there in some part of the system you can check here -> http://forum.vestacp.com/viewtopic.php? ... =10#p40817
And you can do info.php to know real paths on your system, may vary in centos 7 and centos 6
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Thank you! I have to be more attentive next time.skamasle wrote: And php.ini is there in some part of the system you can check here -> http://forum.vestacp.com/viewtopic.php? ... =10#p40817
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Just wanted to share a fix for thisbaijianpeng wrote:I followed above steps, inserted that line to that file, then switched Web Template to "sk-php56", then back to "sk-php70", but the same problem happened. The log file still shows (I tried twice to install the same Joomla extension as yestoday) :
I even tried to restart "httpd" and tried install it again, the same thing happened.[Wed Apr 13 17:36:54.383762 2016] [fcgid:warn] [pid 3981] [client 192.168.1.3:48591] mod_fcgid: HTTP request length 135148 (so far) exceeds MaxRequestLen (131072), referer: http://www.gate.com/administrator/index ... _installer
[Wed Apr 13 17:40:32.146088 2016] [fcgid:warn] [pid 4873] [client 192.168.1.3:48642] mod_fcgid: HTTP request length 135148 (so far) exceeds MaxRequestLen (131072), referer: http://www.gate.com/administrator/index ... _installer
This is weired. Maybe I need to edit the file "php.ini" of PHP 7.0 ? Where is it?
I also made another test: if I switch back to "Default" web template (php 5.4), and tried to install the same Joomla extension, I got different error, shown on Joomla backend page:
And no related error message in gate.com.error.log file.Copy file failed
Why?
Thank you.
Add to /usr/local/vesta/data/templates/web/httpd/sk-php70.stpl and /usr/local/vesta/data/templates/web/httpd/sk-php70.tpl
Code: Select all
FcgidMaxRequestLen 5000000
Next you need to issue the following command in terminal
Code: Select all
v-rebuild-user [user] restart
You should be ok then
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Is it possible to give us an uninstaller for this? in case we ever need it?
Thanks.
Thanks.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Is it possible to install Memcached or Xcache or Varnish or something similar, or some combination of them, at the same time when installing PHP 5.5, PHP 5.6 and PHP 7 with this script ?
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
use something like this:Syeef wrote:Is it possible to give us an uninstaller for this? in case we ever need it?
Thanks.
Code: Select all
yum remove php7-common
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Memcached is installed as default with this script.baijianpeng wrote:Is it possible to install Memcached or Xcache or Varnish or something similar, or some combination of them, at the same time when installing PHP 5.5, PHP 5.6 and PHP 7 with this script ?
it uses version 3.0.9-dev on mine.
check
for settingsetc/opt/remi/php70/php.d/40-memcache.ini
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Well I know that... but I was talking about a full uninstaller, one that removes everything including the templates installed.leisegang wrote: use something like this:Code: Select all
yum remove php7-common
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
There is none now. But basically you can remove the templates and it's gone from vesta. Will still take some space.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
To install something additional, do this:baijianpeng wrote:Is it possible to install Memcached or Xcache or Varnish or something similar, or some combination of them, at the same time when installing PHP 5.5, PHP 5.6 and PHP 7 with this script ?
Code: Select all
yum install php55-php-soap --enablerepo=remi
yum install php56-php-soap --enablerepo=remi
yum install php70-php-soap --enablerepo=remi