pearlygate Posted March 26, 2007 Share Posted March 26, 2007 I came across an executable php-cgi in my bin directory for php4. Now I am upgrading to php5.21, but I don't know how to get php-cgi ? can somebody help ? Thank you very much. Quote Link to comment https://forums.phpfreaks.com/topic/44366-solved-is-there-a-way-to-install-php-cgi/ Share on other sites More sharing options...
wildteen88 Posted March 27, 2007 Share Posted March 27, 2007 PHP5 comes with php-cgi. Just download the PHP5 package from php.net. When you have installed PHP go to the PHP installation folder (C:/PHP - default installation path) and look for a file called php-cgi.exe Quote Link to comment https://forums.phpfreaks.com/topic/44366-solved-is-there-a-way-to-install-php-cgi/#findComment-216204 Share on other sites More sharing options...
pearlygate Posted March 27, 2007 Author Share Posted March 27, 2007 oh I'm using linux gentoo and I tried locate php-cgi and I couldn't find it. There is only php executable in /usr/local/php5/bin/ Quote Link to comment https://forums.phpfreaks.com/topic/44366-solved-is-there-a-way-to-install-php-cgi/#findComment-216385 Share on other sites More sharing options...
trq Posted March 27, 2007 Share Posted March 27, 2007 Add cgi to your USE flags and recompile php. Quote Link to comment https://forums.phpfreaks.com/topic/44366-solved-is-there-a-way-to-install-php-cgi/#findComment-216450 Share on other sites More sharing options...
Koobi Posted March 28, 2007 Share Posted March 28, 2007 if you are sure that you have CGI enabled, try updating your slocate db first: # sudo updatedb # locate php-cgi if not, thorpe's suggestion should sort that out for you. also, this might help clear some confusion, if any: Migrating from PHP 4 to PHP 5 > Backward Incompatible Changes > CLI and CGI Quote Link to comment https://forums.phpfreaks.com/topic/44366-solved-is-there-a-way-to-install-php-cgi/#findComment-216990 Share on other sites More sharing options...
pearlygate Posted March 28, 2007 Author Share Posted March 28, 2007 aha so the php in /bin is php-cgi. That solved it thanks guys. Quote Link to comment https://forums.phpfreaks.com/topic/44366-solved-is-there-a-way-to-install-php-cgi/#findComment-217090 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.