php/cgi scripts running on own username

2003-08-14 Thread jasper
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

Re: problem with php-cgi

2001-10-14 Thread Peter Billson
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

Re: problem with php-cgi

2001-10-14 Thread Sebastian Ezequiel Ovide
| 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

Re: problem with php-cgi

2001-10-14 Thread Peter Billson
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

Re: problem with php-cgi

2001-10-14 Thread Sebastian Ezequiel Ovide
| 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

Re: problem with php-cgi

2001-10-13 Thread Sebastian Ezequiel Ovide
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

Re: problem with php-cgi

2001-10-13 Thread Robert Davidson
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

Re: problem with php-cgi

2001-10-13 Thread Sebastian Ezequiel Ovide
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

Re: problem with php-cgi

2001-10-13 Thread Robert Davidson
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

Re: problem with php-cgi

2001-10-13 Thread Sebastian Ezequiel Ovide
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:

problem with php-cgi

2001-10-12 Thread Sebastian Ezequiel Ovide
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

Re: problem with php-cgi

2001-10-12 Thread Peter Billson
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

problem with php-cgi

2001-10-12 Thread Sebastian Ezequiel Ovide
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

Re: problem with php-cgi

2001-10-12 Thread Peter Billson
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:

php cgi

2001-03-20 Thread :yegon
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

Re: php cgi

2001-03-20 Thread Martin WHEELER
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

Re: php cgi

2001-03-20 Thread Tamas TEVESZ
: 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

php cgi

2001-03-20 Thread :yegon
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

Re: php cgi

2001-03-20 Thread Martin WHEELER
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

Re: php cgi

2001-03-20 Thread Jeremy L. Gaddis
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

Re: php cgi

2001-03-20 Thread Tamas TEVESZ
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