Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Claudio
gw:/usr/local/php-4.3.10/bin # ./php -v
PHP 4.3.10 (cli) (built: Feb  3 2005 17:58:19)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Your guess was correct...

after a new configure without axp2s...

gw:/usr/local/php-4.3.10/bin # ./php -v
PHP 4.3.10 (cgi) (built: Feb  3 2005 22:59:02)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

now it runs... PHP4 as CGI and PHP5 as module
Thanks!!

"Marek Kilimajer" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]
> Claudio wrote:
>> Maybe... What is the diference?
>>
>> In /usr/local/php-4.3.10/ I have 5 files after "make install"
>>
>> (pear php php-config phpextdist phpsize)
>>
>> What should I do? How can I "make" the cgi-executable?
>>
>> "Marek Kilimajer" wrote:
>>
>>>My guess cli binary is executed instead of cgi.
>
> Try
>
> $ /usr/local/php-4.3.10/php -v
>
> If the output is
>
> PHP 4.3.10 (cli) (built: .
> ^^^
>
> it's CLI and CGI version was installed somewhere else. Try to locate it, 
> or check the output of make install. cgi version is installed by default 
> unless you include --disable-cgi in ./configure arguments 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Richard Lynch
Claudio wrote:
> Maybe... What is the diference?
>
> In /usr/local/php-4.3.10/ I have 5 files after "make install"

Leave off the --with-apxs2 in your ./configure should make the CGI binary.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Marek Kilimajer
Claudio wrote:
Maybe... What is the diference?
In /usr/local/php-4.3.10/ I have 5 files after "make install"
(pear php php-config phpextdist phpsize)
What should I do? How can I "make" the cgi-executable?
"Marek Kilimajer" wrote:
My guess cli binary is executed instead of cgi.
Try
$ /usr/local/php-4.3.10/php -v
If the output is
PHP 4.3.10 (cli) (built: .
^^^
it's CLI and CGI version was installed somewhere else. Try to locate it, 
or check the output of make install. cgi version is installed by default 
unless you include --disable-cgi in ./configure arguments

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Claudio
Maybe... What is the diference?

In /usr/local/php-4.3.10/ I have 5 files after "make install"

(pear php php-config phpextdist phpsize)

What should I do? How can I "make" the cgi-executable?

"Marek Kilimajer" wrote:
> My guess cli binary is executed instead of cgi.
>
> Claudio wrote:
>> Hi,
>> Im trying to use PHP4 and PHP5 at the same time. PHP4 as CGI and PHP5 as
>> module.
>> PHP5 ist actually not present and not installed
>> PHP4 runs find as module, when I try to use it as CGI I receive the error
>> message:
>> "Premature end of script headers: php"
>>
>> Can someone help me?
>>
>>
>> Here my used configurations:
>>
>> Testfile: 
>>
>> Webserver: Apache 2.0.50 (Linux/Suse) installed as RPM
>>
>> PHP4 version 4.3.10 self compiled from downloaded tar
>>./configure \
>> --with-apxs2=/usr/sbin/apxs2-prefork \
>> --prefix=/usr/local/php-4.3.10 \
>> --with-mysql --with-ldap
>>
>> httpd.conf:
>> #
>> # If PHP4 is loaded as module
>> #
>> #
>> 
>> AddType application/x-httpd-php .php
>> AddType application/x-httpd-php .php3
>> AddType application/x-httpd-php .php4
>> AddType application/x-httpd-php-source .phps
>> DirectoryIndex index.php
>> DirectoryIndex index.php3
>> DirectoryIndex index.php4
>> 
>>
>> #
>> # To load PHP4 as CGI
>> #
>> 
>> ScriptAlias /php4/ /usr/local/php-4.3.10/bin/
>> 
>> AllowOverride None
>> Options +ExecCGI -Includes
>> Order allow,deny
>> Allow from 192.168.11
>> 
>> AddType application/x-httpd-php4 .php
>> AddType application/x-httpd-php4 .php3
>> AddType application/x-httpd-php4 .php4
>> AddType application/x-httpd-php-source .phps
>>
>> Action application/x-httpd-php4 /php4/php
>>
>> DirectoryIndex index.php
>> DirectoryIndex index.php3
>> DirectoryIndex index.php4
>> 
>> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Premature end of script headers: php

2005-02-03 Thread Marek Kilimajer
My guess cli binary is executed instead of cgi.
Claudio wrote:
Hi,
Im trying to use PHP4 and PHP5 at the same time. PHP4 as CGI and PHP5 as
module.
PHP5 ist actually not present and not installed
PHP4 runs find as module, when I try to use it as CGI I receive the error
message:
"Premature end of script headers: php"
Can someone help me?
Here my used configurations:
Testfile: 
Webserver: Apache 2.0.50 (Linux/Suse) installed as RPM
PHP4 version 4.3.10 self compiled from downloaded tar
   ./configure \
--with-apxs2=/usr/sbin/apxs2-prefork \
--prefix=/usr/local/php-4.3.10 \
--with-mysql --with-ldap
httpd.conf:
#
# If PHP4 is loaded as module
#
#

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4

#
# To load PHP4 as CGI
#

ScriptAlias /php4/ /usr/local/php-4.3.10/bin/

AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from 192.168.11

AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php4 /php4/php
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Premature end of script headers: php

2005-02-03 Thread Claudio
Hi,
Im trying to use PHP4 and PHP5 at the same time. PHP4 as CGI and PHP5 as
module.
PHP5 ist actually not present and not installed
PHP4 runs find as module, when I try to use it as CGI I receive the error
message:
"Premature end of script headers: php"

Can someone help me?


Here my used configurations:

Testfile: 

Webserver: Apache 2.0.50 (Linux/Suse) installed as RPM

PHP4 version 4.3.10 self compiled from downloaded tar
   ./configure \
--with-apxs2=/usr/sbin/apxs2-prefork \
--prefix=/usr/local/php-4.3.10 \
--with-mysql --with-ldap

httpd.conf:
#
# If PHP4 is loaded as module
#
#

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4


#
# To load PHP4 as CGI
#

ScriptAlias /php4/ /usr/local/php-4.3.10/bin/

AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from 192.168.11

AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php3
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php-source .phps

Action application/x-httpd-php4 /php4/php

DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php