custombuild's php5 as cgi not working? bug?

lkbryant

Verified User
Joined
Aug 16, 2005
Messages
283
hi,

i set the options.conf to php5-cgi = yes and leave others to no

and then i do ./build clean && ./build php 5

however,

after finishing the install,

i do a /usr/local/php5/bin/php -v

and it says PHP 5.2.5 (cli) (built: Nov 15 2007 04:18:24)

?

am i missing something here?

why is it compiling as CLI instead of CGI?
 
I think cli or command line interface of php will always be there...for you, cgi will be used with apache.
Check phpinfo() through a php file from browser.
 
Why don't you read CustomBuild FAQ? /usr/local/php5/bin/php is a CLI version of PHP and /usr/local/php5/bin/php-cgi is a CGI one.
 
well the reason why I asked this question is because right now, all the php files give me a Internal 500 Error.

When I check the log, it says "Premature end of script headers: index.php"

I do not get this error when i install PHP5 as CLI. Only when I do so as PHP5 as CGI.

Do i have to both enable PHP5-CLI and PHP5-CGI ? if so, can i make php5-cgi be the default?
 
You have them installed, but Apache doesn't use CLI version. Could you post me "ls -la" results and "ls -la .." (in directory of index.php)? You get this error with simple phpinfo file too?
 
Well this is just a stock open source ecommerce package called magento.

You can download it from www.magentocommerce.com

And btw, yes, all my files have correct chown ownership.

Could you try and test, and see if magentocommerce is not compatible with php5-cgi?
 
ls -la returns me this

drwxrwxr-x 6 myusername myusername 4096 Nov 13 20:03 app
-rw-rw-r-- 1 myusername myusername 770 Nov 9 15:34 cron.php
drwxrwxr-x 2 myusername myusername 4096 Nov 13 20:03 de
-rw-rw-r-- 1 myusername myusername 1150 Nov 9 15:34 favicon.ico
drwxrwxr-x 2 myusername myusername 4096 Nov 13 20:03 fr
-rw-rw-r-- 1 myusername myusername 1340 Nov 13 15:18 index.php
drwxrwxr-x 10 myusername myusername 4096 Nov 13 20:03 js
drwxrwxr-x 4 myusername myusername 4096 Nov 13 20:03 lib
-rw-rw-r-- 1 myusername myusername 10410 Nov 9 15:34 LICENSE.txt
-rw-r--r-- 1 myusername myusername 8465998 Nov 13 20:04 magento-0.6.13700.zip
drwxrwxrwx 2 myusername myusername 4096 Nov 13 20:03 media
drwxrwxr-x 5 myusername myusername 4096 Nov 13 20:03 skin
drwxrwxrwx 4 myusername myusername 4096 Nov 15 03:33 var
 
Back
Top