Re: [PHP] php like cgi
On Tue, 17 Apr 2001, Christian Reiniger wrote: Are you 100% sure that it's /bin/php ? That's a pretty unusual location for PHP to be installed in. /usr/bin/php or /usr/local/bin/php are the common ones Yeah, my php interpreter is on /usr/bin/php, i just made a symlink on /bin..., but it's not the problem, i tried with /usr/bin/php too! unneccessary if you leave out the -q I note this, i was just in test, 'cos without "q" dos not work too... I can execute the script on command line, and i get the expected output, but when i request it on my browser i get the Internal Server Error... .~. Ulysses Almeida / V \ [EMAIL PROTECTED] / ( ) \ Seja livre, use GNU/Linux! ^^-^^ -- 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]
[PHP] php like cgi
Hi.. I'm tring to use a php-script like cgi, but the only thing i got is "Internal Server Error..." That's my test-script.. --- #!/bin/php -q ?php echo "Content-type: text/html\n\n"; echo "Hello World!\n"; ? I tried whithout "-q" and "echo "Content-", but i got the same error! That's my httpd_error.log - [Mon Apr 16 17:19:24 2001] [error] [client 127.0.0.1] Premature end of script headers: /home/httpd/cgi-bin/teste.cgi How can i do it? I have bash, perl, C, cgis working here, just my php-script dosn't work. Before asking, Yeah, i need to exec it like cgi, 'cos that was the only way that i find to use posix_setuid(). Thanks... []s .~. Ulysses Almeida / V \ [EMAIL PROTECTED] / ( ) \ Seja livre, use GNU/Linux! ^^-^^ -- 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]
[PHP] setuid
Hi... Is there a way to use posix_setuid without set Apache to run as root? Or, is there some other function to do the same thing? []s .~. Ulysses Almeida / V \ [EMAIL PROTECTED] / ( ) \ Seja livre, use GNU/Linux! ^^-^^ -- 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]