From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailhub.datafast.net.au ([203.123.67.14]) by speech.braille.uwo.ca with smtp (Exim 3.35 #1 (Debian)) id 17mHBR-0003rp-00 for ; Tue, 03 Sep 2002 13:09:45 -0400 Received: (qmail 13023 invoked from network); 3 Sep 2002 17:09:45 -0000 Received: from unknown (HELO silver) (202.76.159.18) by mailhub.datafast.net.au with SMTP; 3 Sep 2002 17:09:45 -0000 Message-ID: <007601c2536d$1aa72ee0$fe01a8c0@blitztechnology.net> From: "Mitchell Smith" To: References: <004d01c25362$c7bce120$98185a8c@17158MR2> Subject: Re: Implementing php on an apache server. Date: Wed, 4 Sep 2002 03:12:37 +1000 Organization: Blitz Technology MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: speakup@braille.uwo.ca List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: remove the line AddHandler cgi-script .php mod_php should be executing this file, but your web server is trying to execute it as a cgi. hope this helps. ----- Original Message ----- From: "Mark Rew" To: Sent: Wednesday, September 04, 2002 1:58 AM Subject: Implementing php on an apache server. > List, > > I'm getting an internal apache error when I use my lynx browser to test my > .php script referencing it via the url: > lynx http://17158-accl.nws.noaa.gov/cgi-bin/experimental.php > > The error is: > "[Tue Sep 3 08:37:01 2002] [error] (13)Permission denied: exec of > /var/www/cgi-bin/experimental.php failed > [Tue Sep 3 08:37:01 2002] [error] [client 140.90.24.51] Premature end of > script headers: /var/www/cgi-bin/experimental.php" > > The script appears to work if I execute it from the command line with: > php experimental.php > > I think the problem is in my httpd.conf file. Do I need the lines: > > " > SetOutputFilter PHP > " > > Currently I have my httpd.conf with the following lines uncommented for > triggering php. > > "# from httpd.conf > > LoadModule php_module modules/mod_php.so > > > LoadModule php3_module modules/libphp3.so > > > LoadModule php4_module modules/libphp4.so > > > > DirectoryIndex index.html index.htm index.shtml index.php index.php4 > index.php3 index.phtml index.cgi > > > > AddType application/x-httpd-php .php .php4 .php3 .phtml > AddType application/x-httpd-php-source .phps > > > AddType application/x-httpd-php3 .php3 > AddType application/x-httpd-php3-source .phps > > > AddType application/x-httpd-php .phtml > > > AddHandler cgi-script .cgi > AddHandler cgi-script .pl > AddHandler cgi-script .php > > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"" > > What am I missing here? > > thanks > > ps: Thanks for the suggestion to change my /etc/sysconfig/network file. Now > my hostname command is showing the correct information for ythe host name and > domain name. > > Mark Rew > e-mail: mark.rew@noaa.gov > > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup >