RE: PHP
> How did you set up PHP???
using dselect, I installed PHP and apache-php.
> First you tell you installed Apache-modules, second you're
> writing about 'sent
> to PHP' & 'Error 500'.
> The second point looks like you could find the error in
> error-logs of Apache
I'm not sure where they are. At a guess I'd say /var/apache ? I'm very new
to this!
> because it seems .php is threaded as CGI (therefor in every
> .php-file should
> be a first line like
> #!/usr/local/bin/php
> where ever the PHP-binary is located)
That's what I thought (as a Perl user).
> But installing the Apache-modules makes it senseless to
> proceed .php as CGI
> ...
>
> Have a look in your Apache-configuration file. Search for 'php'.
> Is there a line like:
>
> LoadModule php3_module /etc/httpd/modules/libphp3.so
> or
> LoadModule php4_module /etc/httpd/modules/libphp4.so
OK, php3 is installed (Potato).
> and
>
> AddModule mod_php3.c
> or
> AddModule mod_php4.c
again php3.
> ???
> if so there should also be following lines:
>
> <IfModule mod_php3.c>
> AddType application/x-httpd-php3 .php3
> AddType application/x-httpd-php3-source .php3s
> </IfModule>
Didn't exist - just added it. I assume this tells apache to use the php3
module to execute scipts with the extension .php3 and .php3s? Does this
negate the need to use the #! usr/bin/php3 line and the cgi-bin directory?
Is it ok to change the extension to .php rather than .php3 for ease of use
with the users?
> or
>
> <IfModule mod_php4.c>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
> </IfModule>
>
> If in your Apache-configuration there is a line like
>
> AddHandler cgi-script .php
>
> you should remove it and instead switch to LoadModules-Syntax.
That line does not exist.
Cheers for the help.
Andy
Reply to:
- Follow-Ups:
- Re: PHP
- From: Peter Palmreuther <lists@pitpalme.de>
- References:
- Re: PHP
- From: Peter Palmreuther <lists@pitpalme.de>