Hi,
I am running Debian Woody with the Apache-SSL package and the PHP 4.1.2
package. The websites (virtual domains) of my users are in
~username/public_html
Everything runs fine... but right now all PHP (and CGI) scripts are
executed as www-data. As you will understand I want these to run under
and this is the output:
./prova.cgi
X-Powered-By: PHP/4.0.3pl1
Content-type: text/html
htmlQuesto e' solo una prova/html
why apache tel me: Premature end of script headers: ??
I can't tell you why your script isn't working correctly but Apache is
upset because you are returning
| and this is the output:
|
| ./prova.cgi
| X-Powered-By: PHP/4.0.3pl1
| Content-type: text/html
|
| htmlQuesto e' solo una prova/html
|
| why apache tel me: Premature end of script headers: ??
|
|I can't tell you why your script isn't working correctly but Apache is
|upset because you are
and this is the output:
./prova.cgi
X-Powered-By: PHP/4.0.3pl1
Content-type: text/html
htmlQuesto e' solo una prova/html
why apache tel me: Premature end of script headers: ??
I can't tell you why your script isn't working correctly but Apache is
upset because you are returning
| and this is the output:
|
| ./prova.cgi
| X-Powered-By: PHP/4.0.3pl1
| Content-type: text/html
|
| htmlQuesto e' solo una prova/html
|
| why apache tel me: Premature end of script headers: ??
|
|I can't tell you why your script isn't working correctly but Apache is
|upset because you are
yes it do.
./test.php.vgi make the same result that ./test.pl.cgi but test.pl.cgi
work fine with apache but test.php.cgi don't want to work with apach
help.
Sebastián Ezequiel Ovide ICQ:113198452
Universitá degli studi di Padova
Does your script put a blank line after the Content-type and so on,
like:
blah: blah
foo-foo: bar
Content-type: blah
html
ahello/a
/html
Maybe you could post the first few lines of output to the list.
Cya
Sebastian Ezequiel Ovide wrote:
yes it do.
./test.php.vgi make the same result
yes it do.
./test.php.vgi make the same result that ./test.pl.cgi but test.pl.cgi
work fine with apache but test.php.cgi don't want to work with apach
help.
Sebastián Ezequiel Ovide ICQ:113198452
Universitá degli studi di Padova
Does your script put a blank line after the Content-type and so on,
like:
blah: blah
foo-foo: bar
Content-type: blah
html
ahello/a
/html
Maybe you could post the first few lines of output to the list.
Cya
Sebastian Ezequiel Ovide wrote:
yes it do.
./test.php.vgi make the same result
I can't resolve my problem with my potato
my script is:
prova.cgi:
#!/usr/bin/php
?php
echo html;
echo Questo e' solo una prova;
echo /html\n;
?
and this is the output:
./prova.cgi
X-Powered-By: PHP/4.0.3pl1
Content-type:
Hi,
just installed php4-cgi, fixed bad symlink in /usr/lib/cgi-bin
The prob is,
running as a standar cgi does not work ie
#!/usr/bin/php
apache complains
[Thu Dec 21 20:18:36 2000] [error] [client 192.168.1.169] Premature end of
script headers: /var/www/home/felipe/Proyectos/hola.php4.cgi
Sebastian Ezequiel Ovide wrote:
Hi,
just installed php4-cgi, fixed bad symlink in /usr/lib/cgi-bin
The prob is,
running as a standar cgi does not work ie
#!/usr/bin/php
apache complains
[Thu Dec 21 20:18:36 2000] [error] [client 192.168.1.169] Premature end of
script
Hi,
just installed php4-cgi, fixed bad symlink in /usr/lib/cgi-bin
The prob is,
running as a standar cgi does not work ie
#!/usr/bin/php
apache complains
[Thu Dec 21 20:18:36 2000] [error] [client 192.168.1.169] Premature end of
script headers: /var/www/home/felipe/Proyectos/hola.php4.cgi
Sebastian Ezequiel Ovide wrote:
Hi,
just installed php4-cgi, fixed bad symlink in /usr/lib/cgi-bin
The prob is,
running as a standar cgi does not work ie
#!/usr/bin/php
apache complains
[Thu Dec 21 20:18:36 2000] [error] [client 192.168.1.169] Premature end of
script headers:
I'm trying to use PHP4.03pl1 as CGI for security reasons (it works as apache
module already)
When I start a php script (first row is #!/usr/bin/php) from the commandline
it works well, but when I call it in browser as cgi it fails with Internal
server error. I was trying to find out what is
On Tue, 20 Mar 2001, :yegon wrote:
When I start a php script (first row is #!/usr/bin/php) from the commandline
it works well, but when I call it in browser as cgi it fails with Internal
server error.
commandline php works well, outputing the right headers
when i invoke such script in
:
doesn't have anything to do with that. it's some php `security'
setting which doesnt let the php cgi interpreter to be invoked
directly. read the php docs, most likely ./configure --help, i don't
remember anything more specific, but this is what's happening.
--
[-]
Andras sawfish, icewm theme
I'm trying to use PHP4.03pl1 as CGI for security reasons (it works as apache
module already)
When I start a php script (first row is #!/usr/bin/php) from the commandline
it works well, but when I call it in browser as cgi it fails with Internal
server error. I was trying to find out what is
On Tue, 20 Mar 2001, :yegon wrote:
When I start a php script (first row is #!/usr/bin/php) from the commandline
it works well, but when I call it in browser as cgi it fails with Internal
server error.
commandline php works well, outputing the right headers
when i invoke such script in
At 3/20/01 03:11 PM, :yegon wrote:
when i invoke such script in browser no error message apear so I think the
php is not executed
just a standard error message in apache error log premature end of script
headers
php and script are world executable
Is the first thing your script outputs
anything to do with that. it's some php `security'
setting which doesnt let the php cgi interpreter to be invoked
directly. read the php docs, most likely ./configure --help, i don't
remember anything more specific, but this is what's happening.
--
[-]
Andras sawfish, icewm theme-mel, vagy icewm
21 matches
Mail list logo