| Sascha Teifke 2005-09-21, 3:55 am |
| Well,
I tried it with SheBang and without.
My Apache-conf looks this way:
ScriptAlias /php/ "/opt/php5/bin/"
AddType application/x-httpd-cphp .cphp
AddHandler application/x-httpd-cphp .cphp
Action application/x-httpd-cphp /php/php
Where /opt/php5/bin/ is the place where my php5 binary resides (CGI Version)
The Output of /opt/php5/bin/php -v says:
PHP 5.0.5 (cgi-fcgi) (built: Sep 19 2005 19:56:03)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
What else may lead to the "=§% Error 500??
Thank you in advance
Sascha
replies-lists-php@listmail.innovate.net wrote:
>if you're calling this as a cgi (i.e., from your server's cgi
>directory), you have to have:
>
> #!/path/to/php/binary
>
>at the top of your file.
>
>if you've loaded php into apache (as a loadmodule or compiled in) you
>can basically just put that function on a page as you did.
>
>
>
>------------ Original Message ------------
>
>
>
>---------- End Original Message ----------
>
>
>
>
|