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 21 of 28
    • Jump to page:
  • Previous
  • 1
  • …
  • 19
  • 20
  • 21
  • 22
  • 23
  • …
  • 28
  • Next
altayevrim
Posts: 4
Joined: Mon Apr 02, 2018 4:53 pm

Os: CentOS 6x
Web: apache + nginx
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
  • Quote

Post by altayevrim » Tue May 29, 2018 9:06 pm

PHP codes not running. Including the phpinfo();

Firstly I used your codes. But then after, I realized that I couldn't install php 7.1 so I installed them from the github version.
Top

altayevrim
Posts: 4
Joined: Mon Apr 02, 2018 4:53 pm

Os: CentOS 6x
Web: apache + nginx
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
  • Quote

Post by altayevrim » Mon Jun 04, 2018 9:46 pm

Hi,

Still I have problems. I installed a fresh VestaCP too. I am using CentOS 7 and I can't use any php version that installed with this system.
The error is;

Code: Select all

[Mon Jun 04 21:24:57.183939 2018] [fcgid:warn] [pid 9390] (104)Connection reset by peer: [client xxxxx] mod_fcgid: error reading data from FastCGI server
[Mon Jun 04 21:24:57.184021 2018] [core:error] [pid 9390] [client xxxxx] End of script output before headers: info.php
[Mon Jun 04 21:33:53.821619 2018] [fcgid:warn] [pid 3981] (104)Connection reset by peer: [client xxxxx] mod_fcgid: error reading data from FastCGI server
[Mon Jun 04 21:33:53.822071 2018] [core:error] [pid 3981] [client xxxxx] End of script output before headers: info.php
I tried to change the fcgid.conf file to fix the issue but still the same.

Code: Select all

# This is the Apache server configuration file for providing FastCGI support
# through mod_fcgid
#
# Documentation is available at
# http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

# Use FastCGI to process .fcg .fcgi & .fpl scripts
AddHandler fcgid-script fcg fcgi fpl

FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 3800
FcgidBusyTimeout 3600
FcgidIdleScanInterval 10

# Sane place to put sockets and shared memory file
FcgidIPCDir /run/mod_fcgid
FcgidProcessTableFile /run/mod_fcgid/fcgid_shm
I can't run any php code.

Code: Select all

<?php phpinfo();
too.
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

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

Post by dpeca » Fri Jun 15, 2018 6:34 pm

This post is not related with this script.
I just want to inform people that I made a tutorial for PHP-switcher for Debian9.
viewtopic.php?f=41&t=17129
Top

Kumigy
Posts: 46
Joined: Thu Nov 13, 2014 6:16 am
Contact:
Contact Kumigy
Website

Os: CentOS 6x
Web: apache + nginx
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
  • Quote

Post by Kumigy » Mon Sep 10, 2018 10:34 am

Hello.
I've successfully installed this script.
I've changed web template to sk-php70.
Try to open http://site.ru/phpinfo.php and nothing (white screen).
/home/admin/web/site.ru/logs/site.ru.error.log - empty

Any ideas?

CentOS 7
Top

AlexFlexo
Posts: 1
Joined: Mon Oct 15, 2018 6:13 am

Os: CentOS 6x
Web: apache + nginx
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
  • Quote

Post by AlexFlexo » Mon Oct 15, 2018 6:20 am

Hi.
I installed the modification, everything worked out and it worked, but there is a problem (sk-php71). When I try to install something (add-ons for CMS), I get error 500.
In the logs the following

Code: Select all

[Sun Oct 14 23:35:48.667401 2018] [fcgid:warn] [pid 26120] [client 192.168.1.233:32926] mod_fcgid: HTTP request length 138080 (so far) exceeds MaxRequestLen (131072), referer: https://xxxxxx.ru/administrator/index.php?option=com_installer
The engine itself is installed without problems.
Where to look for a problem?
Sorry for my english...

UPDATE!

This decision helped!

viewtopic.php?f=19&t=10854&start=70#p43749
Top

popers
Posts: 3
Joined: Thu Oct 18, 2018 4:54 pm

Os: CentOS 6x
Web: apache + nginx
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
  • Quote

Post by popers » Thu Oct 18, 2018 5:03 pm

Hi
I have a problem with httpd default template (nginx+apache), php -v shows PHP 7.2.11 but real version is 5.4.45. How to back to PHP 7.2.11? phpmyadmin also not works.
Thanks
Top

tanquang
Posts: 14
Joined: Wed Nov 21, 2018 4:55 pm

Os: CentOS 5x
Web: apache
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
  • Quote

Post by tanquang » Sat Dec 08, 2018 3:28 pm

Can I use it on apache + nginx web server?
Top

Alex Connor
Support team
Posts: 1047
Joined: Fri Mar 21, 2014 7:49 am
Contact:
Contact Alex Connor
Website Twitter

Os: CentOS 6x
Web: apache + nginx
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
  • Quote

Post by Alex Connor » Sat Dec 08, 2018 3:59 pm

yes, you can
Top

Tonop
Posts: 1
Joined: Sat Dec 15, 2018 1:08 pm

Os: CentOS 5x
Web: apache + nginx
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
  • Quote

Post by Tonop » Sat Dec 15, 2018 1:29 pm

Hi there and skamasle thanks for the script.

I successully intalled the script with php7.1 version. Before that I used php5.6 and now there are both.
I use Magento which require php7.1 and other joomla websites on php5.6.
For Magento I need to use mod_ruid2 module but it is not compatible with mod_fcgid (combination causes error, see post 49363.

I didnt find any solution and would like to ask you for help. My quesions are:
1) How is posible to use mod_ruid2 features with mod_fcgid?
2) How to use php7.1 as Server API-Apache 2.0 Handler, not as Server API-CGI/FastCGI.
3) If I insatall php7.1 as default, and php5.6 as option, will php7.1 use Server API-Apache 2.0 Handler? If not, how to change handler from FastCGI to Apache handler?

Looking forward for your assistant.
BR,
Boris

PHP Version 5.6.38
System Linux 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018 x86_64
Build Date Oct 24 2018 12:58:58
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d

PHP Version 7.1.25
System Linux 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018 x86_64
Build Date Dec 8 2018 13:40:23
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/opt/remi/php71
Loaded Configuration File /etc/opt/remi/php71/php.ini
Scan this dir for additional .ini files /etc/opt/remi/php71/php.d
Last edited by Tonop on Thu May 12, 2022 3:01 pm, edited 1 time in total.
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 » Sat Jan 12, 2019 8:42 pm

Tonop wrote: ↑
Sat Dec 15, 2018 1:29 pm
Hi there and skamasle thanks for the script.

I successully intalled the script with php7.1 version. Before that I used php5.6 and now there are both.
I use Magento which require php7.1 and other joomla websites on php5.6.
For Magento I need to use mod_ruid2 module but it is not compatible with mod_fcgid (combination causes error, see post 49363.

I didnt find any solution and would like to ask you for help. My quesions are:
1) How is posible to use mod_ruid2 features with mod_fcgid?
2) How to use php7.1 as Server API-Apache 2.0 Handler, not as Server API-CGI/FastCGI.
3) If I insatall php7.1 as default, and php5.6 as option, will php7.1 use Server API-Apache 2.0 Handler? If not, how to change handler from FastCGI to Apache handler?

Looking forward for your assistant.
BR,
Boris

PHP Version 5.6.38
System Linux swinestudio.ru 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018 x86_64
Build Date Oct 24 2018 12:58:58
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d

PHP Version 7.1.25
System Linux swinestudio.ru 2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018 x86_64
Build Date Dec 8 2018 13:40:23
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/opt/remi/php71
Loaded Configuration File /etc/opt/remi/php71/php.ini
Scan this dir for additional .ini files /etc/opt/remi/php71/php.d
I not test mod_ruid2 so I cant help you for now, but, in any case you can run php 7.1 in default version with any orther handler supported by vesta, but in selector isnt posible
Top


Post Reply
  • Print view

272 posts
  • Page 21 of 28
    • Jump to page:
  • Previous
  • 1
  • …
  • 19
  • 20
  • 21
  • 22
  • 23
  • …
  • 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