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 6 of 28
    • Jump to page:
  • Previous
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 28
  • Next
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 12, 2016 1:56 pm

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

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

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

Post by baijianpeng » Tue Apr 12, 2016 2:39 pm

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.
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 12, 2016 7:00 pm

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:

Code: Select all

export PHP_FCGI_CHILDREN=10
Then rebuild vhost or just swich to php 5.6 and then to php70 this will regenerate wrapper to that website.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

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

Post by baijianpeng » Wed Apr 13, 2016 11:06 am

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

ytel2006
Posts: 1
Joined: Tue Apr 19, 2016 2:02 am

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

Post by ytel2006 » Tue Apr 19, 2016 2:18 am

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 =(
Top

iosefk2
Posts: 2
Joined: Tue Apr 19, 2016 4:55 pm

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

Post by iosefk2 » Tue Apr 19, 2016 5:26 pm

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
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 19, 2016 5:45 pm

Hi iosefk2

You not give enough details to reproduce your error.
Top

iosefk2
Posts: 2
Joined: Tue Apr 19, 2016 4:55 pm

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

Post by iosefk2 » Wed Apr 20, 2016 2:49 am

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
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 » Wed Apr 20, 2016 1:25 pm

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

sarathorn
Posts: 4
Joined: Fri Apr 15, 2016 12:43 am

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

Post by sarathorn » Mon Apr 25, 2016 4:18 pm

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


Post Reply
  • Print view

272 posts
  • Page 6 of 28
    • Jump to page:
  • Previous
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 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
 

 

Login  •  Register

I forgot my password