Hello Andy, Tuesday, August 28, 2001, 5:41:17 PM, you wrote:
>> How did you set up PHP??? AL> using dselect, I installed PHP and apache-php. Setup not install :-) But that doesn't matter right now .. >> 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 AL> I'm not sure where they are. At a guess I'd say /var/apache ? I'm very new AL> to this! I don't know ... I don't have a Potato w/ Apache installed to look for default values ... Have a look in the config file your Apache is running with ... (maybe you could try 'ps auxwww |grep [h]ttpd' so see what httpd.conf is used.) >> 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) AL> That's what I thought (as a Perl user). If that is want you intend to do you have to install and configure 'suexec' ... that's something completely different and is not directly related to Apache + PHP AL> OK, php3 is installed (Potato). AL> again php3. OK ... just posted both possible lines, it does not really matter which version it is ... >> ??? >> 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> AL> Didn't exist - just added it. I assume this tells apache to use the php3 AL> module to execute scipts with the extension .php3 and .php3s? Does this AL> negate the need to use the #! usr/bin/php3 line and the cgi-bin directory? AL> Is it ok to change the extension to .php rather than .php3 for ease of use AL> with the users? Correct ... it tells files ending with '.php3' are handled as 'application/x-httpd-php3' and this MIME-Type is registered to PHP while PHP module is loaded. >> If in your Apache-configuration there is a line like >> >> AddHandler cgi-script .php AL> That line does not exist. Quite good ... But now there would be the question what Apache told to try to execute .php3 files as CGI? No worry, that also does not matter anymore as you've configured to use internal module instead of 'external' cgi ... AL> Cheers for the help. You're welcome :-) One thing left: running PHP as module executes PHP-Scripts as user Apache is running!!! If you _need_ to execute them with a different UID you _have to_ use CGI or change the UID Apache is running with! Ciao Pit -- Best regards, Peter mailto:[EMAIL PROTECTED]