How to get php-cgi with phpbrew (PHP5.3.x)

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I installed php-5.6.40 php-7.1.14 with phpbrew">phpbrew and I've got php-cgi binaries on these both version. I used this command for get php-cgi 5.6.40

phpbrew">phpbrew install 5.6.40 +default+fpm+mysql+sqlite+mb+iconv+json+iconv+exif+fileinfo +curl=/opt/CURL/curl-7.26.0 +openssl=/opt/OpenSSL/openssl-1.0.1u

and I get

~# /opt/phpbrew">phpbrew/php/php-5.6.40/bin/php-cgi -v
PHP 5.6.40 (cgi-fcgi) (built: Jan 14 2019 12:19:43)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

On the same system, I'm trying to do the same with an old version with this command

phpbrew">phpbrew install --old 5.3.29 +default+fpm+cgi+cli+mysql+sqlite+mb+iconv+json+iconv+exif+fileinfo  +curl=/opt/CURL/curl-7.26.0 +openssl=/opt/OpenSSL/openssl-1.0.1u -- --enable-cgi

The compilation has been finished without error but php-cgi is not present in the bin directory of php version 5.3.29

profilepic.png
manpreet 2 years ago

This command installs php-cgi

phpbrew install --old 5.3.29 +default+openssl=/opt/OpenSSL/openssl-1.0.1u

Without error That's odd because when I try to force the variants I don't have php-cgi. Anyway I've got the issue. It's working with PHP 5.3.7 too


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.