Page 6 of 28
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Tue Apr 12, 2016 1:56 pm
by skamasle
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 )
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Tue Apr 12, 2016 2:39 pm
by baijianpeng
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.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Tue Apr 12, 2016 7:00 pm
by skamasle
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
Code: Select all
export PHP_FCGI_MAX_REQUEST_LEN=604857600
In:
Code: Select all
/usr/local/vesta/data/templates/web/httpd/sk-php70.sh
Under of:
Then rebuild vhost or just swich to php 5.6 and then to php70 this will regenerate wrapper to that website.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Wed Apr 13, 2016 11:06 am
by baijianpeng
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.
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:
Copy file failed
And no related error message in gate.com.error.log file.
Why?
Thank you.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Tue Apr 19, 2016 2:18 am
by ytel2006
skamasle wrote:
Code: Select all
Beta 0.2.3
- Remove some code and tests.
- Using simlinks for templates.
Hello!
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.
Posted: Tue Apr 19, 2016 5:26 pm
by iosefk2
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
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Tue Apr 19, 2016 5:45 pm
by skamasle
Hi iosefk2
You not give enough details to reproduce your error.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Wed Apr 20, 2016 2:49 am
by iosefk2
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.
Posted: Wed Apr 20, 2016 1:25 pm
by skamasle
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.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Mon Apr 25, 2016 4:18 pm
by sarathorn
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...