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.
Hi
Is a part of fastcgi directives:
https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
You can edit fcgiwaper or php56.sh and add your directives then rebuild vhosts )
Is a part of fastcgi directives:
https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
You can edit fcgiwaper or php56.sh and add your directives then rebuild vhosts )
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
It is difficult for me to do that. Do you know Joomla? If you use Joomla, could you please test Joomla with PHP7 provided by your multi-php script? Try to install a big extension (file size about 500KB) to see if there is any error message?
Thank you.
Thank you.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
This not is php-selector error, is a fastcgi configuration problem.
So it may happen whit wordpress, prestashop,joomla, drupal, etc etc if you whant send big file,also happen if you use default vesta phpfcgid template.
You can solve it adding
In:
Under of:
Then rebuild vhost or just swich to php 5.6 and then to php70 this will regenerate wrapper to that website.
So it may happen whit wordpress, prestashop,joomla, drupal, etc etc if you whant send big file,also happen if you use default vesta phpfcgid template.
You can solve it adding
Code: Select all
export PHP_FCGI_MAX_REQUEST_LEN=604857600
Code: Select all
/usr/local/vesta/data/templates/web/httpd/sk-php70.sh
Code: Select all
export PHP_FCGI_CHILDREN=10
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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) :
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:
Why?
Thank you.
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.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Hello!skamasle wrote:Code: Select all
Beta 0.2.3 - Remove some code and tests. - Using simlinks for templates.
Thank you for your script. It is very necessary and useful thing. After the stable will, I offer VestaCP developers to take it to the release branch panel.
Any errors, suggestions, corrections:
1. When using the yum install package, it is easier to do so:
yum install -y php54-php- {pspell, process, imap, xml}, etc.
2. Add, please, PHP 5.3
3. Files, /etc/httpd/conf.d/php56-php.conf, /etc/httpd/conf.d/php55-php.conf, /etc/httpd/conf.d/php70-php.conf have the same parameters session.save_path and others, but as lie in /etc/httpd/conf.d/ used together at the same time and thus, even in the standard version of PHP, or any other, we get a value of session.save_path php56 =) I propose to remove these parameters of /etc/httpd/conf.d/php*.conf and move in templates
4. Offer to transfer session.save_path etc. parameters in templates and using for each version of PHP your template without using links.
UPD: I added PHP 5.3 and this work fine, but configure PHP 5.3 from source
Sorry my bad english =(
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
my sites is not allowed to connect the database and it is impossible to make a backup of my data by phpmyadmin
http://smartconcepts.us/
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
http://smartconcepts.us/webmail/
Data transfer has failed, probably due to server error. Please contact system administrator.
Enable Mariadb Service
mariadb
database server
CPU: 0Memory: 538 mb
Uptime: 25 minutes
http://smartconcepts.us/
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
http://smartconcepts.us/webmail/
Data transfer has failed, probably due to server error. Please contact system administrator.
Enable Mariadb Service
mariadb
database server
CPU: 0Memory: 538 mb
Uptime: 25 minutes
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Hi iosefk2
You not give enough details to reproduce your error.
You not give enough details to reproduce your error.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
install your programming selection php, php not work, and httpd stop working, so it was impossible to connect the Apache server, then follow the steps, indicating your post, to delete the php.conf and boot the server apache again, but now you do not connect any database
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Hi
Check your error_log please
Sayme your SO versión.
And sendme your install log: /var/log/skphp.log
If sk-php-selector fail you can run always your site on vesta default templates.
Check your error_log please
Sayme your SO versión.
And sendme your install log: /var/log/skphp.log
If sk-php-selector fail you can run always your site on vesta default templates.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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...
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...