httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Haron <unixfr...@comcast.net>
Subject Re: [users@httpd] Permissions Problem
Date Mon, 26 Jan 2004 03:44:21 GMT

On Sunday, January 25, 2004, at 08:33 PM, BAO RuiXian wrote:

>
>
> Chuck Haron wrote:
>
>>
>> On Sunday, January 25, 2004, at 06:53 PM, BAO RuiXian wrote:
>>
>>     Your following configuration and permission setting look okay to
>>     me. Have you got any interesting message in the error logs? Can
>>     you run it from the command line as the web user?
> There seems no more additional information in the log entries. Have 
> you tried to run your cgi script from the command line? On your 
> server, change to directory /srv/www/cgi-bin/, then type 'su root' to 
> be root, then type 'su apache' or 'su nobody' (dependent on your 
> configuration, if you are not sure, you can find it from your 
> httpd.conf after the directive User). Now you are the web user, type 
> './spellchecker.pl' to see what happens.
>

I get the following when I run ./spellchecker.pl:
Content-type: text/html

<html>
<head>
<link rel="stylesheet" type="text/css" 
href="/speller/spellerStyle.css"/>
<script src="/speller/wordWindow.js"></script>
<script>
var suggs = new Array();
var words = new Array();
var textinputs = new Array();
var error;
Error: No word lists can be found for the language "en_US".
error = 'System error: Aspell program execution failed (`aspell -a 
--lang=en_US< /tmp/cAwzRfcnsW/3DPT2LlxkH`)';
var wordWindowObj = new wordWindow();
wordWindowObj.originalSpellings = words;
wordWindowObj.suggestions = suggs;
wordWindowObj.textInputs = textinputs;

function init_spell() {
         // check if any error occured during server-side processing
         if( error ) {
                 alert( error );
         } else {
                 // call the init_spell() function in the parent frameset
                 if (parent.frames.length) {
                         parent.init_spell( wordWindowObj );
                 } else {
                         error = "This page was loaded outside of a 
frameset. ";
                         error += "It might not display properly";
                         alert( error );
                 }
         }
}

</script>

</head>
<body onLoad="init_spell();">

<script>
wordWindowObj.writeBody();
</script>

</body>
</html>

> Best
>
> Bao
>
>>
>> Some log entries:
>>
>> error_log
>> [Sun Jan 25 17:58:44 2004] [error] [client 172.31.3.2] client denied 
>> by server configuration: /srv/www/cgi-bin/spellchecker.pl
>>
>> access_log
>> 172.31.3.2 - - [25/Jan/2004:17:58:44 -0700] "POST 
>> /cgi-bin/spellchecker.pl HTTP/1.1" 403 312
>>
>>
>>     Best
>>
>>     Bao
>>
>>
>>         Apache/1.3.26 Server at sloxmail.cognitive.com Port 80
>>         ---
>>
>>         httpd.conf contains following
>>         ---
>>         <Directory "/srv/www/cgi-bin">
>>         AllowOverride None
>>         Options None
>>         Order allow,deny
>>         Allow from all
>>         </Directory>
>>         ---
>>
>>         System permissons on '/srv/www/cgi-bin' and
>>         '/srv/www/cgi-bin/spellchecker.pl' are set to 755.
>>
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message