public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
From: "Mark Rew" <Mark.Rew@noaa.gov>
To: <speakup@braille.uwo.ca>
Subject: Implementing php on an apache server.
Date: Tue, 3 Sep 2002 11:58:44 -0400	[thread overview]
Message-ID: <004d01c25362$c7bce120$98185a8c@17158MR2> (raw)

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:

"<FilesMatch "\.php(\..+)?$">
SetOutputFilter PHP
</FilesMatch> "

Currently I have my httpd.conf with the following lines uncommented for
triggering php.

"# from httpd.conf
<IfDefine HAVE_PHP>
LoadModule php_module         modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module        modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module        modules/libphp4.so
</IfDefine>

<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.php index.php4
index.php3 index.phtml index.cgi
</IfModule>

    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php .php4 .php3 .phtml
        AddType application/x-httpd-php-source .phps
    </IfModule>
    <IfModule mod_php3.c>
        AddType application/x-httpd-php3 .php3
        AddType application/x-httpd-php3-source .phps
    </IfModule>
    <IfModule mod_php.c>
        AddType application/x-httpd-php .phtml
    </IfModule>

    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




             reply	other threads:[~ UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Mark Rew [this message]
 ` Mitchell Smith
 ` Aaron Howell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004d01c25362$c7bce120$98185a8c@17158MR2' \
    --to=mark.rew@noaa.gov \
    --cc=speakup@braille.uwo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).