Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and DirectAdmin
  1. Alan V
  2. Wednesday, March 12, 2014
  3.  Subscribe via email
fcgid53.sh not support selector with php4.4 and php5.1

Cloudlinux 6.5 (Centos)
DirectAdmin v1.44.3 + custombuild 2.0.0-RC6
PHP from cloudlinux relo atl-php

problem is
PHP_FCGI_MAX_REQUESTS=0
export PHP_FCGI_MAX_REQUESTS
when this parameter present in /usr/local/safe-bin/fcgid53.sh (why fcgid53.sh??? script only switcher and compatible with any php version) and in DA php selector switched to version 4.4 or 5.1 in error log appears
PHP_FCGI_MAX_REQUESTS is not valid
for test i comment
#PHP_FCGI_MAX_REQUESTS=0
#export PHP_FCGI_MAX_REQUESTS
and update skeleton for cagefs. Now work fine, but PHP_FCGI_MAX_REQUESTS=500 (default value)

have you any solution?
Rate this post:
  1. 31.03.2014 04:03:23
  2. # 1
Alan V Accepted Answer
Posts: 1
Joined: 05.03.2014
0
Votes
Undo
After spoke with cloudlinux support and i was receive new cloudlinux version of file fcgid53.sh
#---------------
#!/bin/sh

PHP_VER=53

OPTIONS=
if [ "$1" != "" ]; then
if [ -s "$1" ]; then
OPTIONS=" -c ${1} ${OPTIONS}"
fi
fi

if php -v|grep -q 5.; then

PHP_FCGI_MAX_REQUESTS=0
export PHP_FCGI_MAX_REQUESTS
PHP_FCGI_CHILDREN=0
export PHP_FCGI_CHILDREN
exec /usr/local/php53/bin/php-cgi53 ${OPTIONS}

else exec /usr/local/php53/bin/php-cgi53 ${OPTIONS};
fi
#---------------
here is my version
[[email protected] ~]# cat /usr/local/safe-bin/fcgid53.sh

#!/bin/sh

PHP_VER=53

OPTIONS=
if [ "$1" != "" ]; then
        if [ -s "$1" ]; then
                OPTIONS=" -c ${1} ${OPTIONS}"
        fi
fi

if [ "$2" != "" ]; then
OPTIONS="${OPTIONS} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12}"
fi

CL_PHP_VER=`php -v | grep ^PHP | awk '{print $2}' | sed -e 's/\.[0-9]\+$//'`
if [ "${CL_PHP_VER}" != "4.4" ] && [ "${CL_PHP_VER}" != "5.1" ]; then
    PHP_FCGI_MAX_REQUESTS=0
    export PHP_FCGI_MAX_REQUESTS
    PHP_FCGI_CHILDREN=0
    export PHP_FCGI_CHILDREN
fi

exec /usr/local/php53/bin/php-cgi53 ${OPTIONS}
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Remove Upload Files (Maximum File Size: 2 MB)
You may insert polls into your post. The poll would then appear in the post.
Vote Options
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.