From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hqmail.nws.noaa.gov ([140.90.19.73]) by speech.braille.uwo.ca with esmtp (Exim 3.35 #1 (Debian)) id 17mG4c-0000yt-00 for ; Tue, 03 Sep 2002 11:58:38 -0400 Received: from 17158MR2 ([140.90.24.152]) by hqmail.nws.noaa.gov (Netscape Messaging Server 4.15) with SMTP id H1VDPO00.72N; Tue, 3 Sep 2002 11:58:36 -0400 Message-ID: <004d01c25362$c7bce120$98185a8c@17158MR2> From: "Mark Rew" To: Subject: Implementing php on an apache server. Date: Tue, 3 Sep 2002 11:58:44 -0400 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 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 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: 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