php-install Digest 21 Oct 2001 08:22:44 -0000 Issue 515

Topics (messages 4677 through 4682):

Re: [PHP] PHP/CGI problem: #!/path/php at top of CGI script appears in output
        4677 by: Dave Goodrich
        4678 by: Stefan Siefert

Help with PHP and my (self-made) webserver
        4679 by: Peter Jukel

PHP4 on Windows98 with PWS
        4680 by: Yim Lee

compliing problem of php+mysql 4.0:undefined reference to 'mysql_module_entry'
        4681 by: Harrison

Solaris install issues
        4682 by: Dariush

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


It's not you. I just built a bare cgi version of php, nothing but
'./configure' and got the same result.

I used this simple script to be sure I was in fact running the cgi binary
and it showed I was.

info.cgi
#!/usr/local/bin/php
<?php
        phpinfo();
?>

I got the correct info page, but with the #!/usr/local/bin/php at the top
as you stated. Odd, but I've never used the cgi version so other than
confirming your problem I am afraid I'm no help.

DAve

On Sat, Oct 20, 2001 at 03:31:06PM +0000, Philippe wrote:
> Hi,
> I'll synthetize the problem with the response I have givven to Curt. 
> 
> I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6
> I've installed PHP in Apache, it works very well
> I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's 
> 
> the problem) but I've a problem. 
> 
> In CGI mode, the path of PHP is always written at the top of the result 
> 
> I'll take for example this script which is in the cgi-bin with the execute 
> mod (755), the extension is .cgi : 
> 
> ----
> #!/usr/local/bin/php
> <?
> print "Hello World";
> ?>
> ---- 
> 
> When the file is called by the browser, the result is :
> ----
> #!/usr/local/bin/php
> Hello World
> ---- 
> 
> Does someone know the problem and the solution ?
> Have I forgotten something ? 
> 
> I think that's a misconfiguration in PHP 
> 
> Thanks for your help 
> 
> Philippe 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
My other computer is your Windows machine...






Hi @all..

I'm not sure if this can fix (or explain) your problem (cause I didn't tried
it in lack of time) but theoretical it could be :).

I think you only need the #!/usr/local/bin/php if you would like to run
scripts from the bash, or as a "real" cgi. But I think, there could be
another solution .. compile your php as cgi like you did and add these lines
in your httpd.conf

ScriptAlias /php/ "/usr/local/bin/"

AddType application/x-httpd-php .php .phtml .cgi

Action application/x-httpd-php "/php/php"

This should also launch the cgi - version of php, but doesn't requires the
#! line in the scripts. I'm not sure, but it should work.

Hope this helps you,

Stefan Siefert



----- Original Message -----
From: Dave Goodrich <[EMAIL PROTECTED]>
To: Philippe <[EMAIL PROTECTED]>
Cc: php-general <[EMAIL PROTECTED]>; php-install
<[EMAIL PROTECTED]>
Sent: Saturday, October 20, 2001 6:05 PM
Subject: [PHP-INST] Re: [PHP] PHP/CGI problem: #!/path/php at top of CGI
script appears in output


> It's not you. I just built a bare cgi version of php, nothing but
> './configure' and got the same result.
>
> I used this simple script to be sure I was in fact running the cgi binary
> and it showed I was.
>
> info.cgi
> #!/usr/local/bin/php
> <?php
> phpinfo();
> ?>
>
> I got the correct info page, but with the #!/usr/local/bin/php at the top
> as you stated. Odd, but I've never used the cgi version so other than
> confirming your problem I am afraid I'm no help.
>
> DAve
>
> On Sat, Oct 20, 2001 at 03:31:06PM +0000, Philippe wrote:
> > Hi,
> > I'll synthetize the problem with the response I have givven to Curt.
> >
> > I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6
> > I've installed PHP in Apache, it works very well
> > I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think
it's
> >
> > the problem) but I've a problem.
> >
> > In CGI mode, the path of PHP is always written at the top of the result
> >
> > I'll take for example this script which is in the cgi-bin with the
execute
> > mod (755), the extension is .cgi :
> >
> > ----
> > #!/usr/local/bin/php
> > <?
> > print "Hello World";
> > ?>
> > ----
> >
> > When the file is called by the browser, the result is :
> > ----
> > #!/usr/local/bin/php
> > Hello World
> > ----
> >
> > Does someone know the problem and the solution ?
> > Have I forgotten something ?
> >
> > I think that's a misconfiguration in PHP
> >
> > Thanks for your help
> >
> > Philippe
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> My other computer is your Windows machine...
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>





Hi

How can I get PHP to reload data from the environment variables?  At the
moment it is only refreshing QUERY_STRING after I restart the computer.

I am running it from the command-line under Windows (95/98/me/2000) as a
CGI.

Is there a command-line parameter I can use?

Also, how does one pass parameters to PHP when using the GET method? Also
through environment variables?

Regards

Peter






Hi.  Several times, I had tried to install PHP4 on Windows 98 with PWS, following the 
instruction on www.php.net installatin section.  But it did not work.  PWS seems to 
work well.  Some part of the manual is not clear, particularly in editing 'php.ini' 
file.  Would you give me a practical guide to make it work?  Thanks.

OKCOM




Hi there,
   I encounter the following problem when trying to build a LAMP Box with
Mysql-4.0.0+PHP-4.0.5+Apache-1.3.22.
   1. Mysql Installed ok
   2. when trying to make php with
"./configure --with-apache=/home/user/apache_1.3.22 --with-mysql=/usr/local/
db/mysql --with-config-file-path=/usr/local/apache/ini --enable-track-vars;m
ake;make install", it response :
  /usr/local/php-4.0.5/main/internal_functions.c:60: undefined reference to
`mysql_module_entry', and of course the same happend when trying to build
apache.

  Any Help will be very appreciated, Thanks in advance.








I'm running Solaris 8 on a netra X1(64 bit sparc), but for some reason it
dies during 'Configuring Extensions', the error is "checking for int8...
configure: error: can not run test program while cross compiling"

the machine is running software added (mostly) from www.sunfreeware.com,
including their version of GCC 3.0.

any help would be appreciated,
Dariush






Reply via email to